aboutsummaryrefslogtreecommitdiffstats
path: root/packages/nmap/nmap.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-10-02 02:06:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-10-02 02:06:10 +0000
commit813f71c6529ea187cc0a562a6ca1eae72eaf76c0 (patch)
treec71e70a18cc084f08e599bea9064b906412589ba /packages/nmap/nmap.inc
parent6673afdcb7680d32f73f2c32abc6ec048138bd30 (diff)
downloadpfsense-packages-813f71c6529ea187cc0a562a6ca1eae72eaf76c0.tar.gz
pfsense-packages-813f71c6529ea187cc0a562a6ca1eae72eaf76c0.tar.bz2
pfsense-packages-813f71c6529ea187cc0a562a6ca1eae72eaf76c0.zip
Seperate nmap out into its own directory
Diffstat (limited to 'packages/nmap/nmap.inc')
-rw-r--r--packages/nmap/nmap.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/nmap/nmap.inc b/packages/nmap/nmap.inc
new file mode 100644
index 00000000..53b477fb
--- /dev/null
+++ b/packages/nmap/nmap.inc
@@ -0,0 +1,14 @@
+
+function nmap_custom_add_php_command() {
+ $nmap_options = "";
+ if($_POST['option'] == "-sT: TCP connect() scan.") $nmap_options .= " -sT";
+ if($_POST['option'] == "-sP: Ping scanning") $nmap_options .= " -sP";
+ if($_POST['option'] == "-sU: UDP Scanning") $nmap_options .= " -sU";
+ if($_POST['noping']) $nmap_options .= " -P0";
+ if($_POST['servicever']) $nmap_options .= " -sV";
+ if($_POST['osdetect']) $nmap_options .= " -O";
+ $nmap_options .= " " . $_POST['hostname'];
+ system("/usr/local/bin/nmap" . $nmap_options);
+}
+
+