make nmap script use command line arg for ip

This commit is contained in:
Rh17S15
2025-06-10 18:52:48 +02:00
parent 9adabe37a3
commit a55740d423

View File

@@ -1 +1 @@
nmap -sCV -A -p $(nmap 192.168.1.155 -p- | grep open | awk -F '/' '{print $1}' | tr '\n' ',' | sed 's/.$//') 192.168.1.155
nmap -sCV -A -p $(nmap $1 -p- | grep open | awk -F '/' '{print $1}' | tr '\n' ',' | sed 's/.$//') $1