From 6705777956b5c4bbd8373c08ccd710afc79872ed Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Sat, 20 Dec 2025 17:09:36 -0700 Subject: [PATCH] 1766275776 --- customscripts/nmap_ppi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 customscripts/nmap_ppi diff --git a/customscripts/nmap_ppi b/customscripts/nmap_ppi new file mode 100644 index 0000000..804c0c4 --- /dev/null +++ b/customscripts/nmap_ppi @@ -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" \ No newline at end of file