diff --git a/usr/local/www/exec.php b/usr/local/www/exec.php index 9556a6e019..145d07d5f2 100755 --- a/usr/local/www/exec.php +++ b/usr/local/www/exec.php @@ -201,10 +201,23 @@ if (!isBlank($_POST['txtCommand'])) { puts(""); } + +if (!isBlank($_POST['txtPHPCommand'])) { + puts("
");
+   require_once("config.inc");
+   require_once("functions.inc");
+   echo eval($_POST['txtPHPCommand']);
+   puts("
"); +} + + ?>
+ + + @@ -223,19 +236,58 @@ if (!isBlank($_POST['txtCommand'])) { + + + + + + - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + +
Execute Shell command
Command:
Download
Download:File to download: +
   
Upload
Upload:File to upload: - + +
   
PHP Execute
Command:
    + +

+ Example: interfaces_carp_bring_up_final(); +