1766275776

This commit is contained in:
2025-12-20 17:09:36 -07:00
parent b661dc3efb
commit 6705777956
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
ports="5555,8000"
hosts="$(mktemp)"
echo -e "127.0.0.1\n10.0.0.166\n10.0.0.159" > "$hosts"
mkdir -p "$HOME/scans"
nmap_log="$HOME/scans/nmap_xml_log_`date +"%Y-%m-%d-%H%M-%Z"`.xml"
echo -e "\nLogging to $nmap_log\n"
nmap -T4 -Pn -p $ports -oX "$nmap_log" -iL "$hosts" \
|| rm "$nmap_log" \
&& echo -e "\nnmap failed! deleting $nmap_log\n"