added ldap and winrm ports to pointers
This commit is contained in:
+1
-1
@@ -284,7 +284,7 @@ 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 [873]=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 [8161]=0 [8443]=0 [9090]=0 [9100]=0 [9200]=0 [10050]=0 [15672]=0 [27017]=0)
|
keyports=([21]=0 [22]=0 [80]=0 [88]=0 [135]=0 [389]=0 [443]=0 [445]=0 [554]=0 [636]=0 [873]=0 [1433]=0 [1521]=0 [2049]=0 [2375]=0 [3000]=0 [3268]=0 [3269]=0 [3306]=0 [4786]=0 [5000]=0 [5432]=0 [5984]=0 [5985]=0 [5986]=0 [6379]=0 [8000]=0 [8009]=0 [8080]=0 [8161]=0 [8443]=0 [9090]=0 [9100]=0 [9200]=0 [10050]=0 [15672]=0 [27017]=0)
|
||||||
[[ $POINTERS == true ]] && { a=${!keyports[@]}; mports=${a// /,}; }
|
[[ $POINTERS == true ]] && { a=${!keyports[@]}; mports=${a// /,}; }
|
||||||
[[ $ipocalypse ]] && { for line in ${ipocalypse[@]}; do [[ $line =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]] && { ip=$line; do_ip; cl; } || { [[ $line =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/[0-9]+$ ]] && { cidr=$line; do_cidr; }; } || { continue; }; done; exit; }
|
[[ $ipocalypse ]] && { for line in ${ipocalypse[@]}; do [[ $line =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]] && { ip=$line; do_ip; cl; } || { [[ $line =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/[0-9]+$ ]] && { cidr=$line; do_cidr; }; } || { continue; }; done; exit; }
|
||||||
[[ $ip ]] && { do_ip; } || { [[ $cidr ]] && { do_cidr; }; }
|
[[ $ip ]] && { do_ip; } || { [[ $cidr ]] && { do_cidr; }; }
|
||||||
|
|||||||
Reference in New Issue
Block a user