point ip to nmap out file
This commit is contained in:
+2
-2
@@ -102,7 +102,7 @@ scan_tcp(){
|
||||
wait
|
||||
|
||||
# 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(){
|
||||
@@ -240,4 +240,4 @@ elif [[ $cidr ]]; then
|
||||
[[ ($RUN_NMAP == true) && -f /tmp/tcp_ports ]] && echo
|
||||
cl
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user