Update exectool.php

This commit is contained in:
Namhyeon Go 2018-09-03 18:30:41 +09:00 committed by GitHub
parent eb44a01513
commit 0da19b4719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ if(!function_exists("exec_test")) {
* exec_command() executes a command (like "whoami") with the submited method * exec_command() executes a command (like "whoami") with the submited method
*/ */
if(!function_exists("exec_command")) { if(!function_exists("exec_command")) {
function exec_command($command, $method) { function exec_command($command, $method="shell_exec") {
$return = false; $return = false;
if ($method == "") { if ($method == "") {