#!/usr/local/bin/php ) */ // Function: is Blank // Returns true or false depending on blankness of argument. function isBlank( $arg ) { return ereg( "^\s*$", $arg ); } // Function: Puts // Put string, Ruby-style. function puts( $arg ) { echo "$arg\n"; } // "Constants". $Version = ''; $ScriptName = $HTTP_SERVER_VARS['SCRIPT_NAME']; $Title = 'm0n0wall: execute command'; // Get year. $arrDT = localtime(); $intYear = $arrDT[5] + 1900; ?> <?=$Title ?> >

Note: this function is unsupported. Use it on your own risk!

" . $ulmsg . "

\n"; ?> "); puts("\$ " . htmlspecialchars($_POST['txtCommand'])); putenv("PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"); putenv("SCRIPT_FILENAME=" . strtok($_POST['txtCommand'], " ")); /* PHP scripts */ $ph = popen($_POST['txtCommand'], "r" ); while ($line = fgets($ph)) echo htmlspecialchars($line); pclose($ph); puts(""); } ?>
Command:
 
Download:
Upload: