Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
dh /
web /
diag /
[ HOME SHELL ]
Name
Size
Permission
Action
diag
[ DIR ]
drwxr-xr-x
dh-php-diags.php
2.07
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : dh-php-diags.php
<?php class PHPInfo { public $mode = "CGI"; public $version = "unknown"; public $ini = "None"; public $scanned = array(); public $user_ini_directives = array(); // live/effective values (raw, as reported by ini_get) public $limits = array(); public function user_directives() { foreach ($this->scanned as $file) { if (preg_match("/^\/home\//", $file)) { $inifile = fopen($file, "r") or die("Unable to open $file\n"); $this->user_ini_directives[] = array_filter( explode("\n", fread($inifile, filesize($file))), "ini_filter" ); fclose($inifile); } } } } // Filter out comments and blank lines function ini_filter($var) { if (preg_match("/^;/", $var) or preg_match("/^\s?$/", $var)) { return false; } return true; } $info = new PHPInfo(); // FPM vs FCGID vs CGI (runtime inference, as before) //TODO figure out a smarter FPM check. We only support FPM on Nginx right now so this will work, but that might change. // FCGI_ROLE is set to 'RESPONDER' for both FPM and FCGID, but not CGI if (array_key_exists("SERVER_SOFTWARE", $_SERVER) and preg_match('/nginx/', $_SERVER['SERVER_SOFTWARE'])) { $info->mode = 'FPM'; } else if (array_key_exists("FCGI_ROLE", $_SERVER) and $_SERVER['FCGI_ROLE'] == 'RESPONDER') { $info->mode = 'FCGID'; } $info->version = phpversion(); $info->ini = php_ini_loaded_file(); $info->scanned = str_replace("\n", "", explode(',', php_ini_scanned_files())); $info->user_directives(); // Pull effective/runtime values (no normalization) $info->limits = array( 'memory_limit' => ini_get('memory_limit'), 'max_execution_time' => ini_get('max_execution_time'), 'max_input_time' => ini_get('max_input_time'), 'max_input_vars' => ini_get('max_input_vars'), 'post_max_size' => ini_get('post_max_size'), 'upload_max_filesize' => ini_get('upload_max_filesize'), ); header('Content-Type: application/json'); echo json_encode($info); //phpinfo();
Close