Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <body bgcolor=000000>
- <img src=http://192.168.0.1:8081/ border="0" width=49%>
- <img src=http://192.168.0.1:8082/ border="0" width=49%>
- <img src=http://192.168.0.1:8083/ border="0" width=49%>
- <img src=http://192.168.0.1:8084/ border="0" width=49%>
- </body>
- </html>
- <?
- $user = "user";
- $pass = "password";
- $url = "http://192.168.0.1:8081/";
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_TIMEOUT, 10);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
- curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
- curl_setopt($ch, CURLOPT_USERPWD, $user.":".$pass);
- $status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
- echo ($status_code);
- $output = curl_exec($ch);
- $info = curl_getinfo($ch);
- curl_close($ch);
- echo ($output);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement