From d776e0778913fcd4989b35f78d79985bd245c321 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 29 Apr 2007 23:49:37 +0000 Subject: Add a pfSense interactive php shell for developers. --- usr/local/sbin/pfSsh.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 usr/local/sbin/pfSsh.php (limited to 'usr/local') diff --git a/usr/local/sbin/pfSsh.php b/usr/local/sbin/pfSsh.php new file mode 100755 index 0000000..e2f9a05 --- /dev/null +++ b/usr/local/sbin/pfSsh.php @@ -0,0 +1,36 @@ +#!/usr/local/bin/php -f + + "; + $command = chop(fgets($fp)); + if($command == "exit") { + $shell_active = false; + echo "\n"; + break; + } + eval($command); +} -- cgit v1.1