need help to understand this code

a.baset

Registered Member
Joined
Sep 7, 2017
Messages
57
Reaction score
5
hi i am new im learning programing

someone built this code
var _0xe205=["\x70\x6F\x77\x65\x72\x65\x64\x20\x62\x79\x20\x53\xDC\x20\x3A\x29","\x70\x72\x6F\x67\x72\x65\x73\x73","\x73\x74\x61\x74\x75\x73","\x74\x79\x70\x65","\x45\x78\x61\x6D","\x54\x61\x72\x69\x68\x3A\x20","\x62\x65\x67\x69\x6E\x44\x61\x74\x65","\x0A\x20\x53\u0131\x6E\x61\x76\x20\x41\x64\u0131\x3A\x20","\x6E\x61\x6D\x65","\x20\x0A\x50\x55\x41\x4E\x3A","\x66\x6F\x72\x45\x61\x63\x68","\x61\x63\x74\x69\x76\x69\x74\x69\x65\x73","\x41\x43\x49\x4B\x4C\x41\x4E\x41\x4E\x20\x50\x55\x41\x4E\x20\x42\x55\x4C\x55\x4E\x41\x4D\x41\x44\x49"];alert(_0xe205[0]);var puan=0;datasource[_0xe205[11]][_0xe205[10]]((_0xd902x2)=>{if(_0xd902x2[_0xe205[2]][_0xe205[1]]> 0&& _0xd902x2[_0xe205[3]]== _0xe205[4]){alert(_0xe205[5]+ _0xd902x2[_0xe205[6]]+ _0xe205[7]+ _0xd902x2[_0xe205[8]]+ _0xe205[9]+ _0xd902x2[_0xe205[2]][_0xe205[1]]);puan++}});if(puan== 0){alert(_0xe205[12])}

which is code somone made it from our universty we add it to chrome from consule and it show us the grades of the exam even before the grades is open in the site

but i want to understand what it is and how to read it anyone can help ?
 
its obfuscated so the code is scrambled to make it hard to read.
i quickly deobfuscated it, so the real code is something like this:
Code:
alert('powered by SÜ :)');
var puan = 0;
datasource.activities.forEach((_0xd902x2) => {
    if (_0xd902x2.status.progress > 0 && _0xd902x2.type == 'Exam') {
        alert('Tarih: ' + _0xd902x2.beginDate + `\
 Sınav Adı: ` + _0xd902x2.name + ` \
PUAN:` + _0xd902x2.status.progress);
        puan++
    }
});
if (puan == 0) {
    alert('ACIKLANAN PUAN BULUNAMADI')
}
 
oh that was so easy for you thank so much can you tell me how you did deobfuscated it
 
you need to decode the hex into readable strings and then piece it together.
on linux you can simply use "printf" to convert the HEX code to ASCII, for example: printf "\x70\x6F\x77\x65\x72\x65\x64\x20\x62\x79\x20\x53\xDC\x20\x3A\x29"
 
you need to decode the hex into readable strings and then piece it together.
on linux you can simply use "printf" to convert the HEX code to ASCII, for example: printf "\x70\x6F\x77\x65\x72\x65\x64\x20\x62\x79\x20\x53\xDC\x20\x3A\x29"
quick course very helpfull
 
ok thank you very much bro
 
hi its me again
i want to add the code to the site with a button when i click on it i want this to show up
how i can do it
i am watching this https://pastebin.com/0HH1a2Cb
and i added the button with tambermonkey
this is the code

https://pastebin.com/ERLxpzD4

when i click on the code it show hello which i want to change i want when i click on the button to show what is in this code
https://pastebin.com/jpDHh8wn
can anyone help how to do it
thanks
 
Back
Top