Kali ini akan dibahas tentang cara decode script yang telah diubah menjadi code Javascript, lalu kemudian menjadi Javascript Unescape. Encode tersebut dilakukan untuk mencegah pengunjung website Anda membaca halaman script HTML web Anda. Simak caranya decode-nya dibawah ini:
1. Pertama-tama kita ambil contoh code Javascript Unescape:
<script Language='Javascript'>
<!--
document.write(unescape('5c%75%30%30%33%63%5c%75%30%30%36%38%5c%75%30%30%37%34%5c%75%30%30%36%64%5c%75%30%30%36%63%5c%75%30%30%33%65%5c%75%30%30%30%61%5c%75%30%30%33%63%5c%75%30%30%36%38%5c%75%30%30%36%35%5c%75%30%30%36%31%5c%75%30%30%36%34%5c%75%30%30%33%65%5c%75%30%30%30%61%5c%75%30%30%33%63%5c%75%30%30%37%34%5c%75%30%30%36%39%5c%75%30%30%37%34%5c%75%30%30%36%63%5c%75%30%30%36%35%5c%75%30%30%33%65%5c%75%30%30%34%64%5c%75%30%30%37%39%5c%75%30%30%32%30%5c%75%30%30%35%30%5c%75%30%30%36%31%5c%75%30%30%36%37%5c%75%30%30%36%35%5c%75%30%30%33%63%5c%75%30%30%32%66%5c%75%30%30%37%34%5c%75%30%30%36%39%5c%75%30%30%37%34%5c%75%30%30%36%63%5c%75%30%30%36%35%5c%75%30%30%33%65%5c%75%30%30%30%61%5c%75%30%30%33%63%5c%75%30%30%32%66%5c%75%30%30%36%38%5c%75%30%30%36%35%5c%75%30%30%36%31%5c%75%30%30%36%34%5c%75%30%30%33%65%5c%75%30%30%30%61%5c%75%30%30%33%63%5c%75%30%30%36%32%5c%75%30%30%36%66%5c%75%30%30%36%34%5c%75%30%30%37%39%5c%75%30%30%33%65%5c%75%30%30%30%61%5c%75%30%30%30%61%5c%75%30%30%33%63%5c%75%30%30%32%66%5c%75%30%30%36%32%5c%75%30%30%36%66%5c%75%30%30%36%34%5c%75%30%30%37%39%5c%75%30%30%33%65%5c%75%30%30%30%61%5c%75%30%30%33%63%5c%75%30%30%32%66%5c%75%30%30%36%38%5c%75%30%30%37%34%5c%75%30%30%36%64%5c%75%30%30%36%63%5c%75%30%30%33%65%'));
//-->
</Script>
2. Download dan install Notepad ++ di http://notepad-plus-plus.org/
3. Dari code Javascript Unescape di atas, ambil hanya code ini saja:
5c%75%30%30%33%63%5c%75%30%30%36%38%5c%75%30%30%37%34%5c%75%30%30%36%64%5c%75%30%30%36%63%5c%75%30%30%33%65%5c%75%30%30%30%61%5c%75%30%30%33%63%5c%75%30%30%36%38%5c%75%30%30%36%35%5c%75%30%30%36%31%5c%75%30%30%36%34%5c%75%30%30%33%65%5c%75%30%30%30%61%5c%75%30%30%33%63%5c%75%30%30%37%34%5c%75%30%30%36%39%5c%75%30%30%37%34%5c%75%30%30%36%63%5c%75%30%30%36%35%5c%75%30%30%33%65%5c%75%30%30%34%64%5c%75%30%30%37%39%5c%75%30%30%32%30%5c%75%30%30%35%30%5c%75%30%30%36%31%5c%75%30%30%36%37%5c%75%30%30%36%35%5c%75%30%30%33%63%5c%75%30%30%32%66%5c%75%30%30%37%34%5c%75%30%30%36%39%5c%75%30%30%37%34%5c%75%30%30%36%63%5c%75%30%30%36%35%5c%75%30%30%33%65%5c%75%30%30%30%61%5c%75%30%30%33%63%5c%75%30%30%32%66%5c%75%30%30%36%38%5c%75%30%30%36%35%5c%75%30%30%36%31%5c%75%30%30%36%34%5c%75%30%30%33%65%5c%75%30%30%30%61%5c%75%30%30%33%63%5c%75%30%30%36%32%5c%75%30%30%36%66%5c%75%30%30%36%34%5c%75%30%30%37%39%5c%75%30%30%33%65%5c%75%30%30%30%61%5c%75%30%30%30%61%5c%75%30%30%33%63%5c%75%30%30%32%66%5c%75%30%30%36%32%5c%75%30%30%36%66%5c%75%30%30%36%34%5c%75%30%30%37%39%5c%75%30%30%33%65%5c%75%30%30%30%61%5c%75%30%30%33%63%5c%75%30%30%32%66%5c%75%30%30%36%38%5c%75%30%30%37%34%5c%75%30%30%36%64%5c%75%30%30%36%63%5c%75%30%30%33%65%
Copy dan paste-kan ke Notepad ++
4. Setelah Anda paste ke Notepad ++, tekan tombol CTRL+F lalu pilih tab Find. Pada bagian Find what, ketik: %. Pada bagian Replace with, tekan tombol keyboard space 1x. Untuk lebih jelasnya lihat gambar:
5. Setelah tadi Anda mengganti code % menjadi spasi, copy paste semua code hasilnya ke Cyber4rt Converter di http://www.cyber4rt.com/~converter. Lalu pilih Hex ==> ASCII dan klik ./Cekidot!!!
6. Akan didapatkan hasil konversi Unicode Characters seperti ini :
\u003c\u0068\u0074\u006d\u006c\u003e\u000a\u003c\u0068\u0065\u0061\u0064\u003e\u000a\u003c\u0074\u0069\u0074\u006c\u0065\u003e\u004d\u0079\u0020\u0050\u0061\u0067\u0065\u003c\u002f\u0074\u0069\u0074\u006c\u0065\u003e\u000a\u003c\u002f\u0068\u0065\u0061\u0064\u003e\u000a\u003c\u0062\u006f\u0064\u0079\u003e\u000a\u000a\u003c\u002f\u0062\u006f\u0064\u0079\u003e\u000a\u003c\u002f\u0068\u0074\u006d\u006c\u003e
7. Copy paste lagi hasilnya ke Notepad ++. Ulangi langkah no. 4 di atas. Cuma bedanya pada bagian Find what di isi dengan: \u00. Bagian Replace with, tekan tombol keyboard space 1x.
8.Setelah Anda ganti code \u00 menjadi spasi, copy paste lagi semua hasilnya ke http://www.cyber4rt.com/~converter. Lalu pilih Hex ==> ASCII dan klik ./Cekidot!!!
9. Maka akan didapatkan konversi hasil akhir decode seperti dibawah ini:
<html> <head> <title>My Page</title> </head> <body> </body> </html>
Demikianlah cara decode Javascript Unescape dan Unicode Characters, selamat mencoba dan semoga bermanfaat.
Semoga Bermanfaat ^_^
Jangan Lupa Kembali Lagi Ya Ke Angga Cyber4rt BloGs
Follow & Tinggalkan KOMENTAR Anda
Sumber : http://blog.cyber4rt.com/2012/10/cara-decode-javascript-unescape-dan-unicode-characters.html
0 komentar:
Posting Komentar
Terima Kasih Telah Berkunjung
Berkomentarlah Dengan Sopan !