repositioning

This commit is contained in:
jc
2025-05-27 13:40:19 +03:00
parent 6f0dd0ba53
commit d6336673e1
+3 -3
View File
@@ -163,7 +163,6 @@ cidr_to_ips() {
# total # total
live_count["total"]=0 live_count["total"]=0
keyports=([21]=0 [22]=0 [80]=0 [88]=0 [135]=0 [443]=0 [445]=0 [554]=0 [1433]=0 [1521]=0 [2049]=0 [2375]=0 [3000]=0 [3306]=0 [4786]=0 [5000]=0 [5432]=0 [5984]=0 [6379]=0 [8000]=0 [8009]=0 [8080]=0 [8443]=0 [9090]=0 [9100]=0 [9200]=0 [10050]=0 [15672]=0 [27017]=0)
# generate list of ip addresses # generate list of ip addresses
local swing=0 local swing=0
@@ -251,6 +250,8 @@ done
cl cl
# Scan TCP ports # Scan TCP ports
keyports=([21]=0 [22]=0 [80]=0 [88]=0 [135]=0 [443]=0 [445]=0 [554]=0 [1433]=0 [1521]=0 [2049]=0 [2375]=0 [3000]=0 [3306]=0 [4786]=0 [5000]=0 [5432]=0 [5984]=0 [6379]=0 [8000]=0 [8009]=0 [8080]=0 [8443]=0 [9090]=0 [9100]=0 [9200]=0 [10050]=0 [15672]=0 [27017]=0)
[[ $POINTERS == true ]] && { a=${!keyports[@]}; mports=${a// /,}; }
if [[ $ip ]]; then if [[ $ip ]]; then
echo "--> Scanning $ip" echo "--> Scanning $ip"
if [[ $port ]]; then if [[ $port ]]; then
@@ -262,7 +263,6 @@ if [[ $ip ]]; then
fi fi
elif [[ $cidr ]]; then elif [[ $cidr ]]; then
cidr_to_ips $cidr cidr_to_ips $cidr
[[ $POINTERS == true ]] && { a=${!keyports[@]}; mports=${a// /,}; }
for ip in ${ips[@]}; do for ip in ${ips[@]}; do
echo "--> Scanning $ip" echo "--> Scanning $ip"
if [[ $port ]]; then if [[ $port ]]; then
@@ -275,4 +275,4 @@ elif [[ $cidr ]]; then
[[ ($RUN_NMAP == true) && -f /tmp/tcp_ports ]] && echo [[ ($RUN_NMAP == true) && -f /tmp/tcp_ports ]] && echo
cl cl
done done
fi fi