Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ch = curl_init();
- $base = 'http://192.168.0.1';
- curl_setopt($ch, CURLOPT_URL, $base.'/goform/login');
- curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0');
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, 'loginUsername=admin&loginPassword=admin');
- $res = curl_exec($ch);
- curl_setopt($ch, CURLOPT_URL, $base.'/goform/UbeeConfiguration');
- curl_setopt($ch, CURLOPT_POSTFIELDS, 'ResetYes=0x01&ResetFactoryNo=0x00');
- $res = curl_exec($ch);
- echo $res;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement