Marc 0a3e973d99
Module Updates for 2.6.0+ (Wave 1) (#69)
* Misc: Ignore JetBrains IDE files

* Modules: Update Modules for 2.6.0 (1)

* SiteSurvey: Actually install mdk3 dependency.
2019-08-21 21:09:45 +01:00

18 lines
337 B
Bash
Executable File

#!/bin/sh
#2015 - Whistle Master
logger "== STARTING NMAP SCRIPT"
MYTIME=`date +%s`
MYCMD=`cat /tmp/nmap.run`
if [ "$1" = "start" ]; then
eval ${MYCMD}
mv /tmp/nmap.scan /pineapple/modules/nmap/scan/scan_${MYTIME}
rm -rf /tmp/nmap.run
elif [ "$1" = "stop" ]; then
killall -9 nmap
rm -rf /tmp/nmap.run
rm -rf /tmp/nmap.scan
fi