daily pastebin goal
64%
SHARE
TWEET

OTAV

a guest Jul 25th, 2008 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. http://blog.otavio.info/2008/07/autenticao-speedy-com-php.html
  2.  
  3. $login = "internet@speedy.com.br";
  4. $senha = "internet";
  5. $site = "http://www.algumsite.com/index.html";
  6. $handle = fopen($site, "r");
  7. $contents = '';
  8. while (!feof($handle)) {
  9. $contents .= fread($handle, 8192);
  10. }
  11. fclose($handle);
  12.  
  13. if (strpos($contents,"speedy") !== false)
  14. {
  15. $speedy = "http://200.171.222.97/wsc/servlet";
  16. $speedy .= "/logon.do?opcion=internet&";
  17. $speedy .= "CPURL=&username=$login&password=$senha";
  18. $handle = fopen($speedy, "r");
  19. $contents = '';
  20. while (!feof($handle)) {
  21. $contents .= fread($handle, 8192);
  22. }
  23. fclose($handle);
  24. //echo $contents;
  25. echo "conectando";
  26. } else
  27. echo "online";
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top