point ip to nmap out file

This commit is contained in:
jc
2025-02-07 09:03:16 +00:00
parent 3e53290976
commit ba0ab1e68b
+1 -1
View File
@@ -102,7 +102,7 @@ scan_tcp(){
wait wait
# Print all ports for nmap enumeration # Print all ports for nmap enumeration
[[ -f /tmp/tcp_ports ]] && { command="nmap -Pn -n -sCV -p $(allports=($(</tmp/tcp_ports)); data=${allports[*]}; echo ${data//${IFS:0:1}/,}) $ip -oN nmap.out -v"; echo; [[ $RUN_NMAP == true ]] && { pp "Service Enumeration"; $command; return; }; echo -n "For Nmap service and version enumeration try: "; cg_color bbb "$command"; } [[ -f /tmp/tcp_ports ]] && { command="nmap -Pn -n -sCV -p $(allports=($(</tmp/tcp_ports)); data=${allports[*]}; echo ${data//${IFS:0:1}/,}) $ip -oN ${ip}_nmap.out -v"; echo; [[ $RUN_NMAP == true ]] && { pp "Service Enumeration"; $command; return; }; echo -n "For Nmap service and version enumeration try: "; cg_color bbb "$command"; }
} }
scan_udp(){ scan_udp(){