Advertisement
Guest User

Untitled

a guest
Aug 21st, 2016
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <body bgcolor=000000>
  3. <img src=http://192.168.0.1:8081/ border="0" width=49%>
  4. <img src=http://192.168.0.1:8082/ border="0" width=49%>
  5. <img src=http://192.168.0.1:8083/ border="0" width=49%>
  6. <img src=http://192.168.0.1:8084/ border="0" width=49%>
  7. </body>
  8. </html>
  9.  
  10. <?
  11. $user = "user";
  12. $pass = "password";
  13. $url = "http://192.168.0.1:8081/";
  14. $ch = curl_init();
  15. curl_setopt($ch, CURLOPT_URL, $url);
  16. curl_setopt($ch, CURLOPT_TIMEOUT, 10);
  17. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  18. curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
  19. curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
  20. curl_setopt($ch, CURLOPT_USERPWD, $user.":".$pass);
  21. $status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  22. echo ($status_code);
  23. $output = curl_exec($ch);
  24. $info = curl_getinfo($ch);
  25. curl_close($ch);
  26. echo ($output);
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement