Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
418 views
in Technique[技术] by (71.8m points)

deobfuscation - De-obfuscate Javascript code to make it readable again

I hate to bring this here, while doing the learning of obfuscating the JS code, I encoded my code and then over wrote the orginal one without any backup :) Following is my obfuscated code.

var _0xf17f=["x28","x29","x64x69x76","x63x72x65x61x74x65x45x6Cx65x6Dx65x6Ex74","x69x64","x53x74x75x64x65x6Ex74x5Fx6Ex61x6Dx65","x73x74x75x64x65x6Ex74x5Fx64x6Fx62","x3Cx62x3Ex49x44x3Ax3Cx2Fx62x3E","x3Cx61x20x68x72x65x66x3Dx22x2Fx6Cx65x61x72x6Ex69x6Ex67x79x69x69x2Fx69x6Ex64x65x78x2Ex70x68x70x3Fx72x3Dx73x74x75x64x65x6Ex74x2Fx76x69x65x77x26x61x6Dx70x3Bx20x69x64x3D","x22x3E","x3Cx2Fx61x3E","x3Cx62x72x2Fx3E","x3Cx62x3Ex53x74x75x64x65x6Ex74x20x4Ex61x6Dx65x3Ax3Cx2Fx62x3E","x3Cx62x3Ex53x74x75x64x65x6Ex74x20x44x4Fx42x3Ax3Cx2Fx62x3E","x69x6Ex6Ex65x72x48x54x4Dx4C","x63x6Cx61x73x73","x76x69x65x77","x73x65x74x41x74x74x72x69x62x75x74x65","x70x72x65x70x65x6Ex64","x2Ex69x74x65x6Dx73","x66x69x6Ex64","x23x53x74x75x64x65x6Ex74x47x72x69x64x56x69x65x77x49x64"];function call_func(_0x41dcx2){var _0x41dcx3=eval(_0xf17f[0]+_0x41dcx2+_0xf17f[1]);var _0x41dcx4=document[_0xf17f[3]](_0xf17f[2]);var _0x41dcx5=_0x41dcx3[_0xf17f[4]];var _0x41dcx6=_0x41dcx3[_0xf17f[5]];var _0x41dcx7=_0x41dcx3[_0xf17f[6]];var _0x41dcx8=_0xf17f[7];_0x41dcx8+=_0xf17f[8]+_0x41dcx5+_0xf17f[9]+_0x41dcx5+_0xf17f[10];_0x41dcx8+=_0xf17f[11];_0x41dcx8+=_0xf17f[12];_0x41dcx8+=_0x41dcx6;_0x41dcx8+=_0xf17f[11];_0x41dcx8+=_0xf17f[13];_0x41dcx8+=_0x41dcx7;_0x41dcx8+=_0xf17f[11];_0x41dcx4[_0xf17f[14]]=_0x41dcx8;_0x41dcx4[_0xf17f[17]](_0xf17f[15],_0xf17f[16]);$(_0xf17f[21])[_0xf17f[20]](_0xf17f[19])[_0xf17f[18]](_0x41dcx4);} ;

Can anyone guide me the URL or any method to make it readable. I did this from this website and they seemingly provide on one way obfuscation services available on their website...this was my test code during a learning so would be greatful if anyone could help me out.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Here's a new automated tool, JSNice, to try to deobfuscate/deminify it. The tool even tries to guess the variable names, which is unbelievably cool. (It mines Javascript on github for this purpose.)

http://www.jsnice.org


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...