small changes
This commit is contained in:
+3
-5
@@ -4,9 +4,7 @@
|
|||||||
# Add /usr/share/nmap-services in the script itself (maybe as a blob?)
|
# Add /usr/share/nmap-services in the script itself (maybe as a blob?)
|
||||||
|
|
||||||
cl(){
|
cl(){
|
||||||
rm -rf /tmp/tcp_ports
|
rm -rf /tmp/tcp_ports; rm -rf /tmp/udp_ports; rm -rf /tmp/ips
|
||||||
rm -rf /tmp/udp_ports
|
|
||||||
rm -rf /tmp/ips
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pp(){
|
pp(){
|
||||||
@@ -168,5 +166,5 @@ fi
|
|||||||
cl
|
cl
|
||||||
|
|
||||||
# Scan TCP ports
|
# Scan TCP ports
|
||||||
[[ $ip ]] && { pp "Scanning TCP ports"; scan_tcp; pt /tmp/tcp_ports tcp; }
|
[[ $ip ]] && { pp "TCP ports"; scan_tcp; pt /tmp/tcp_ports tcp; }
|
||||||
[[ $cidr ]] && { cidr_to_ips $cidr; for ip in ${ips[@]}; do echo "--> Scanning $ip"; pp "Scanning TCP ports"; scan_tcp; pt /tmp/tcp_ports tcp; cl; done; }
|
[[ $cidr ]] && { cidr_to_ips $cidr; for ip in ${ips[@]}; do echo "--> Scanning $ip"; pp "TCP ports"; scan_tcp; pt /tmp/tcp_ports tcp; cl; done; }
|
||||||
Reference in New Issue
Block a user