Skip to content

Commit 469aac1

Browse files
committed
Update rapidenum.sh
1 parent f507064 commit 469aac1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rapidenum.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ for service in "${services[@]:-${!services_tcp[@]} ${!services_udp[@]}}"; do
116116
output_file="$output_dir/${service}_hosts.txt"
117117

118118
if [[ "$protocol" == "TCP" ]]; then
119-
nmap -sV --min-rate "$max_rate" --max-retries 2 --host-timeout "${timeout}s" -p "$port" --open -oG - $live_hosts | awk '/Status: Open/{print $2}' > "$output_file"
119+
nmap -sV --min-rate "$max_rate" --max-retries 2 --host-timeout "${timeout}s" -p "$port" --open -oG - "$live_hosts" | awk '/Status: Open/{print $2}' > "$output_file"
120120
else
121-
nmap -sU -sV --min-rate "$max_rate" --max-retries 2 --host-timeout "${timeout}s" -p "$port" --open -oG - $live_hosts | awk '/Status: Open/{print $2}' > "$output_file"
121+
nmap -sU -sV --min-rate "$max_rate" --max-retries 2 --host-timeout "${timeout}s" -p "$port" --open -oG - "$live_hosts" | awk '/Status: Open/{print $2}' > "$output_file"
122122
fi
123123

124124
log "Scan results saved to $output_file"
125125
log "Number of live hosts with $service open: $(wc -l < "$output_file")"
126126
log "---"
127-
done
127+
done

0 commit comments

Comments
 (0)