1

My friend passed me this script that performs some kind of "rename" functionality.
Can you decrypt this JavaScript?

var _0x6b54=["\x63\x6C\x69\x63\x6B","\x2E\x72\x65\x6E\x61\x6D\x65\x2D\x69\x63\x6F\x6E","\x66\x69\x6E\x64","\x76\x61\x6C","\x69\x6E\x70\x75\x74\x5B\x74\x79\x70\x65\x3D\x74\x65\x78\x74\x5D","\x41\x74\x74\x61\x63\x63\x6F","\x6E\x6F\x6E\x20\x69\x64\x65\x6E\x74\x69\x66\x69\x63\x61\x74\x6F\x20\x5B","\x68\x74\x6D\x6C","\x23\x73\x65\x72\x76\x65\x72\x44\x61\x74\x65","\x20","\x23\x73\x65\x72\x76\x65\x72\x54\x69\x6D\x65","\x5D","\x69\x6E\x70\x75\x74\x5B\x74\x79\x70\x65\x3D\x62\x75\x74\x74\x6F\x6E\x5D","\x65\x61\x63\x68","\x2E\x71\x75\x69\x63\x6B\x65\x64\x69\x74"];$(_0x6b54[14])[_0x6b54[13]](function (_0x9cd2x1,_0x9cd2x2){$(_0x9cd2x2)[_0x6b54[2]](_0x6b54[1])[_0x6b54[0]]();var _0x9cd2x3=$(_0x9cd2x2)[_0x6b54[2]](_0x6b54[4])[_0x6b54[3]]();if(_0x9cd2x3==_0x6b54[5]){$(_0x9cd2x2)[_0x6b54[2]](_0x6b54[4])[_0x6b54[3]](_0x6b54[6]+$(_0x6b54[8])[_0x6b54[7]]()+_0x6b54[9]+$(_0x6b54[10])[_0x6b54[7]]()+_0x6b54[11]);} ;$(_0x9cd2x2)[_0x6b54[2]](_0x6b54[12])[_0x6b54[0]]();} );
fragilewindows
1,4101 gold badge16 silver badges26 bronze badges
asked Mar 23, 2014 at 11:59

1 Answer 1

1

The code deobfuscates as follows:

$('.quickedit').each(function (index, element) { 
 $(element).find('.rename-icon').click();
 var value = $(element).find('input[type=text]').val();
 if(value == 'Attacco') {
 $(element).find('input[type=text]').val('non identificato [' + $('#serverDate').html() + ' ' + $('#serverTime').html() + ']');
 };
 $(element).find('input[type=button]').click();
});

It's a simple renaming obfuscation and you reverse it yourself simply by stepping through the code.

answered May 4, 2014 at 22:14
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.