PDA

View Full Version : Anyway to Decode this? Please Help



Batman
04-24-2016, 04:47 PM
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:

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||I3 dvbi1iZXQgc3Bhbg|if|function|else|button|return|I3 Byb2ZpdA|parse|qba|JSON|success|addClass|tok|remov eClass|cmVzdWx0LWJldC13aW4|alert|cFtjbGFzcz0ndGV4d C10aGluIG1hci1ubyBiYWxhbmNlLQ|LmJhbGFuY2Ut|parseFl oat|qc2|I2J0bi1iZXQtZGljZSwgI2J0bi1iZXQtc3RhcnQtcG lsb3QtZGljZSwgI2J0bi1iZXQtc3RhcnQtZmFzdC1kaWNl|set Timeout|show_result_bet|toFixed|01|98|I2VkaXRhYmxl LWNoYW5jZQ|cFtjbGFzcz0ndGV4dC10aGluIG1hci1ubyBiYWx hbmNlLWJ0Yy1odG1sJ10|qt|setInterval|dGV4dC1kYW5nZX I|reset|I2J0bi1iZXQtZGljZQ|dGV4dC1zdWNjZXNz|type|M UtBWmE4QTRpUVNGdm1nNkR5TTlkb2JjZlM4YmVDMnh3ZQ|I3dp dGhkcmF3LWFtb3VudA|I3dpdGhkcmF3LWFkZHJlc3M|0001|to ken|I3dpdGhkcmF3LXRva2Vu|eval|SW5zdWZmaWNpZW50IGJh bGFuY2Uu|I2Ftb3VudA|3000|c2VuZF93aXRoZHJhdygp|bG9h ZGluZw|dHJ1ZQ|YW1vdW50|ajax|qam|YWRkcmVzcw|350|qad |UGxlYXNlIHNldCB0aGUgQ2hhbmNlIHRvIDk4JSBhbmQgQmV0I EFtb3VudCB0byAwLjAx|UE9TVA|data|eyJuYW1lIjoid2l0aG RyYXciLCJleHBpcmUiOjV9|L2FwaS9nZW5lcmF0ZS10b2tlbg| url'.split('|'),0,{}))


Waiting for Coders Reply.

Batman
04-24-2016, 04:48 PM
Chillivanilli Ryuzaki

Can you?

Ryuzaki
04-24-2016, 04:54 PM
Chillivanilli Ryuzaki

Can you?

No idea on this, sorry
But Chilli and EdgarT could help you

Batman
04-24-2016, 05:06 PM
NP sir, waiting for them

Chillivanilli
04-24-2016, 06:33 PM
Prithvihegde You can paste the script for example at Online JavaScript beautifier (http://jsbeautifier.org/) 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"

Batman
04-25-2016, 05:04 AM
Prithvihegde You can paste the script for example at Online JavaScript beautifier (http://jsbeautifier.org/) 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"

That worked well, by your message I searched google to decode base64 online and everything was decoded. Thank you @Chillivanailli

Saviourcode
04-25-2016, 02:23 PM
the code is using javascript with many regex operations.(regular expressions i think).