added an nmap service enumeration line

This commit is contained in:
jc
2024-08-23 05:27:27 -04:00
parent 1ddd3a191a
commit 42443c3834
+4 -1
View File
@@ -13,9 +13,9 @@ pp(){
pt(){
file=$1
[[ ! -f $file ]] && { cg_color bbb "No ports discovered :("; return; }
ports=($(<$file))
prot=$2
[[ ! -f $file ]] && { cg_color bbb "No ports discovered :("; return; }
for ((c=0; c<44; c++)); do echo -n "-"; done; echo
echo "| Port | Service |"
echo "| - - - - - - | - - - - - - - - - - - - - |"
@@ -79,6 +79,9 @@ scan_tcp(){
# newline
echo
# Print all ports for nmap enumeration
[[ -f /tmp/tcp_ports ]] && echo -n "For Nmap service and version enumeration try: "; cg_color bbb "sudo nmap -sCV -p $(allports=($(</tmp/tcp_ports)); data=${allports[*]}; echo ${data//${IFS:0:1}/,}) $ip -v"
}
scan_udp(){