pandorafms/pandora_server/util/plugin/udp_nmap_plugin.sh

6 lines
113 B
Bash
Executable File

#!/bin/bash
# This is called like -p xxx -h xxxx
HOST=$4
PORT=$2
nmap -T5 -p $PORT -sU $HOST | grep open | wc -l