0
![Not allowed!](https://a2s.in/images/buttons/down_dis.png)
![Not allowed!](https://a2s.in/images/buttons/up_dis.png)
Thumbs Up |
Received: 7 Given: 2 |
So I have a code, basically we need to paste this in the console part of Chrome or any browser's inspect element section.
I don't know in which language it is in, but need help to decode it.
Code:Waiting for Coders Reply.Code:eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3 6=$(1("A=")).4();a(($(1("z==")).4()=="y%")&&(6>=0.x)){3 B=C(b(){$(1("F==")).d("E");3 h=r($(1("f==")).2())+r($(1("p==")+5+"-7\']").4());$(1("p==")+5+"-7\']").4(h.w(8));$(1("9==")).m(1("D="));$(1("9==")).k(1("G"));$(1("9==")).4($(1("f==")).2());v();$(1("q")+5+"-7").k(1("n="));u(b(){$(1("q")+5+"-7").m(1("n="));$(1("t")).d(1("T=="))},Z);3 10=1("Y==");3 X=1("V");$.W({H:1("12=="),16:1("15=="),13:i.g(1("14")),j:b(4){3 2=i.g(4);a(2.e.j==1("U==")){3 l=2.e.M;3 s=6-0.L;$(1("K=")).2(1("I=="));$(1("J==")).2(s);$(1("N")).2(l);O(1("S"))}}})},R)}c{a(6<$(1("Q==")).2()){o(1("P"))}c{o(1("11"))}}',62,69,'|atob|val|var|text|devise|qc|html||I3dvbi1iZXQgc3Bhbg|if|function|else|button|return|I3Byb2ZpdA|parse|qba|JSON|success|addClass|tok|removeClass|cmVzdWx0LWJldC13aW4|alert|cFtjbGFzcz0ndGV4dC10aGluIG1hci1ubyBiYWxhbmNlLQ|LmJhbGFuY2Ut|parseFloat|qc2|I2J0bi1iZXQtZGljZSwgI2J0bi1iZXQtc3RhcnQtcGlsb3QtZGljZSwgI2J0bi1iZXQtc3RhcnQtZmFzdC1kaWNl|setTimeout|show_result_bet|toFixed|01|98|I2VkaXRhYmxlLWNoYW5jZQ|cFtjbGFzcz0ndGV4dC10aGluIG1hci1ubyBiYWxhbmNlLWJ0Yy1odG1sJ10|qt|setInterval|dGV4dC1kYW5nZXI|reset|I2J0bi1iZXQtZGljZQ|dGV4dC1zdWNjZXNz|type|MUtBWmE4QTRpUVNGdm1nNkR5TTlkb2JjZlM4YmVDMnh3ZQ|I3dpdGhkcmF3LWFtb3VudA|I3dpdGhkcmF3LWFkZHJlc3M|0001|token|I3dpdGhkcmF3LXRva2Vu|eval|SW5zdWZmaWNpZW50IGJhbGFuY2Uu|I2Ftb3VudA|3000|c2VuZF93aXRoZHJhdygp|bG9hZGluZw|dHJ1ZQ|YW1vdW50|ajax|qam|YWRkcmVzcw|350|qad|UGxlYXNlIHNldCB0aGUgQ2hhbmNlIHRvIDk4JSBhbmQgQmV0IEFtb3VudCB0byAwLjAx|UE9TVA|data|eyJuYW1lIjoid2l0aGRyYXciLCJleHBpcmUiOjV9|L2FwaS9nZW5lcmF0ZS10b2tlbg|url'.split('|'),0,{}))
Thumbs Up |
Received: 7 Given: 2 |
@Chillivanilli @Ryuzaki
Can you?
Thumbs Up |
Received: 7 Given: 2 |
NP sir, waiting for them
@Prithvihegde You can paste the script for example at Online JavaScript beautifier so it is more readable.
You will need another javascript source where the "atob" function is declared.
The author uses a simple string encryption which he decodes with a function.
For example, a very simple encryption is if "a" turns into "b", "b" turns into "c", "c" turns into "d" etc. so in the end, if you want to encrypt "hello", you will get "ifmmp"
The author uses the "atob" function, to decrypt this strings.
For example: url: atob("L2FwaS9nZW5lcmF0ZS10b2tlbg=="),
Since the javascript you posted is an ajax request and this is the url part, L2Fw will probably mean http (just a guess). So you will need the other javascript source, where the "atob" function is declared, in order to decrypt these strings
Edit:
I just googled a little and atob() is a jquery method which decodes a base64 encoded string. So if you decode the String above, you'll get "/api/generate-token"
Last edited by Chillivanilli; 04-24-2016 at 06:43 PM.
Thumbs Up |
Received: 2 Given: 0 |
the code is using javascript with many regex operations.(regular expressions i think).
Bookmarks