jquery - Decrypt Javascript source -
i have been wrote javascript code , encrypt it.it similar :
var _0xbf1b = ["\x2f\x70\x61\x67\x65\x73\x2f", "\x69\x6e\x64\x65\x78\x4f\x66", "\x74\x6f\x4c
i search in internet , no solution me decrypt script.
please me decrypt source code.
thanks
by using http://jsbeautifier.org/
you may obtain:
function getalarm() { try { var _0xdca7x2 = window['location'].tostring()['tolowercase']()['indexof']('/pages/'); var _0xdca7x3 = window['location'].tostring()['substring'](0, _0xdca7x2) + '/pages/alarm/alarm.aspx/getalarm'; $['ajax']({ type: 'post', url: _0xdca7x3, data: '{}', contenttype: 'application/json; charset=utf-8', datatype: 'json', success: function (_0xdca7x4) { if (_0xdca7x4['d'] != '') { var _0xdca7x5 = _0xdca7x4['d']['split']('_'); $('#hidalarmid')['val'](_0xdca7x5[0]); $('#lblalarmmessage')['text'](_0xdca7x5[1]); if (parseint(_0xdca7x5[0]) > 0) { $('#pnlalarm')['slidedown'](); } else { $('#pnlalarm')['slideup'](); }; }; } }); } catch (e) {}; }; $(document)['ready'](function () { $('body')['on']('click', '.notpostback', function (_0xdca7x6) { _0xdca7x6['preventdefault'](); }); $('#uptablnkusername')['on']('click', function () { $('#divtools')['slideup'](); $('#divhelp')['slideup'](); $('#specifications')['slidetoggle'](); }); $('#uptablnktools')['on']('click', function () { $('#divhelp')['slideup'](); $('#specifications')['slideup'](); $('#divtools')['slidetoggle'](); }); $('#uptablnkhelp')['on']('click', function () { $('#divtools')['slideup'](); $('#specifications')['slideup'](); $('#divhelp')['slidetoggle'](); }); if ($('#lblalarmmessage')['text']() != '' && parseint($('#hidalarmid')['val']()) > 0) { $('#pnlalarm')['slidedown'](); }; window['setinterval']('getalarm()', 300000); $('#btnaware')['on']('click', function (_0xdca7x6) { try { _0xdca7x6['preventdefault'](); var _0xdca7x2 = window['location'].tostring()['tolowercase']()['indexof']('/pages/'); var _0xdca7x3 = window['location'].tostring()['substring'](0, _0xdca7x2) + '/pages/alarm/alarm.aspx/aware'; $['ajax']({ type: 'post', url: _0xdca7x3, data: '{\'messageid\':\'' + $('#hidalarmid')['val']() + '\'}', contenttype: 'application/json; charset=utf-8', datatype: 'json', success: function (_0xdca7x4) { if (_0xdca7x4['d'] == true) { $('#pnlalarm')['slideup'](); }; } }); } catch (_0xdca7x6) {}; }); $('#pnlalarm')['on']('click', function () { $('#pnlalarm')['slideup'](); }); $('#menuul li')['on']('mouseenter', function () { var _0xdca7x7 = $(this)['position'](); $(this)['find']('ul')['css']('top', _0xdca7x7['top'] + 28); if (jquery['browser']['version'] == '7.0' || jquery['browser']['version'] == '8.0') { $(this)['find']('ul')['css']('left', _0xdca7x7['left'] - 105 - $(document)['scrollleft']()); } else { $(this)['find']('ul')['css']('left', _0xdca7x7['left'] - 105); }; $(this)['find']('ul')['css']('top', _0xdca7x7['top'] + 27 - $(document)['scrolltop']()); $(this)['find']('ul')['css']('position', 'fixed'); $(this)['find']('ul')['css']('display', 'block'); }); $('#menuul li')['on']('mouseleave', function () { $(this)['find']('ul')['css']('display', 'none'); }); });
Comments
Post a Comment