minor changes
This commit is contained in:
+8
-7
@@ -8,14 +8,14 @@ positional arguments:
|
|||||||
locale IP, Subnet or File
|
locale IP, Subnet or File
|
||||||
|
|
||||||
options:
|
options:
|
||||||
-p, --port scan specific port(s)
|
-p, --port probe specific port(s)
|
||||||
--nmap run nmap after port scan
|
--nmap run nmap after port scan
|
||||||
--open only print hosts with atleast one open port
|
--open only print hosts with atleast one open port
|
||||||
--hosts only print live hosts in the subnet
|
--hosts only print live hosts in the subnet
|
||||||
--force scan open ports even if ping is disabled
|
--force probe open ports when ping is disabled
|
||||||
--pointers only scan key ports
|
--pointers only probe key ports
|
||||||
--httpx run httpx
|
--httpx run httpx
|
||||||
-t, --threads specify the number of threads (default:50, max:500)
|
-t, --threads specify the number of threads (default:100, max:1000, 0:disable)
|
||||||
SYNTAX
|
SYNTAX
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
@@ -93,8 +93,9 @@ scan_tcp(){
|
|||||||
handle & pid=$!
|
handle & pid=$!
|
||||||
|
|
||||||
# scan residual ports
|
# scan residual ports
|
||||||
[[ ! $threads ]] && threads=50
|
[[ ! $threads ]] && threads=100
|
||||||
k=0; for c in $(seq 1 65535); do [[ ! ${top_1000[$c]} ]] && { tcp_scan & ((k++)); [[ $k -eq $threads ]] && { sleep .248; k=0; }; }; done
|
[[ $threads -eq 0 ]] && { for c in $(seq 1 65535); do [[ ! ${top_1000[$c]} ]] && { tcp_scan & }; done; }
|
||||||
|
[[ $threads -ne 0 ]] && { k=0; for c in $(seq 1 65535); do [[ ! ${top_1000[$c]} ]] && { tcp_scan & ((k++)); [[ $k -eq $threads ]] && { sleep .248; k=0; }; }; done; }
|
||||||
|
|
||||||
# wait
|
# wait
|
||||||
kill -TERM $pid 2>/dev/null; wait
|
kill -TERM $pid 2>/dev/null; wait
|
||||||
@@ -269,7 +270,7 @@ while [ "$1" != "" ]; do
|
|||||||
;;
|
;;
|
||||||
-t | --threads)
|
-t | --threads)
|
||||||
shift
|
shift
|
||||||
[[ $1 =~ ^[0-9]+ ]] && { [[ $1 -gt 500 ]] && { cg_color bby "So now you just want to blow up the CPU?"; help; } || { threads=$1; }; } || help
|
[[ $1 =~ ^[0-9]+ ]] && { [[ $1 -gt 1000 ]] && { cg_color bby "So now you just want to blow up the CPU?"; help; } || { threads=$1; }; } || help
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
[[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]] && { ip=$1; } || { [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/[0-9]+$ ]] && { cidr=$1; }; } || { [[ -f $1 ]] && { ipocalypse=($(<$1)); }; } || help
|
[[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]] && { ip=$1; } || { [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/[0-9]+$ ]] && { cidr=$1; }; } || { [[ -f $1 ]] && { ipocalypse=($(<$1)); }; } || help
|
||||||
|
|||||||
Reference in New Issue
Block a user