De-obfuscate Javascript code to make it readable again

前端 未结 6 1605
小蘑菇
小蘑菇 2020-11-29 23:22

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 o

6条回答
  •  执笔经年
    2020-11-30 00:16

    From the first link on google;

    function call_func(_0x41dcx2) {
     var _0x41dcx3 = eval('(' + _0x41dcx2 + ')');
     var _0x41dcx4 = document['createElement']('div');
     var _0x41dcx5 = _0x41dcx3['id'];
     var _0x41dcx6 = _0x41dcx3['Student_name'];
     var _0x41dcx7 = _0x41dcx3['student_dob'];
     var _0x41dcx8 = 'ID:';
     _0x41dcx8 += '' + _0x41dcx5 + '';
     _0x41dcx8 += '
    '; _0x41dcx8 += 'Student Name:'; _0x41dcx8 += _0x41dcx6; _0x41dcx8 += '
    '; _0x41dcx8 += 'Student DOB:'; _0x41dcx8 += _0x41dcx7; _0x41dcx8 += '
    '; _0x41dcx4['innerHTML'] = _0x41dcx8; _0x41dcx4['setAttribute']('class', 'view'); $('#StudentGridViewId')['find']('.items')['prepend'](_0x41dcx4); };

    It won't get you all the way back to source, and that's not really possible, but it'll get you out of a hole.

提交回复
热议问题