What are max retries and min-rate in nmap Link to heading
Max-retries Link to heading
Its mainly used for troubleshooting purpose to confirm the ports open.
Higher the number it will provide accurate results. Lower the number the scan complete fast. If you you put max-retries as 0 it just scan single time and stops.
Command:
nmap -Pn --max-retries 0 -p 80 10.10.10.43
If you are looking for some specific ports, you can try this simple script:
for x in 80,443,22; do nmap -Pn --max-retries 0 -p $x 10.10.10.xx && sleep 1; done
min-rate and max-rate Link to heading
This values talks about the number of packets the scan can send to target machine. Based on these rates the scan can be made faster/slower. More you restrct the packets the accuracy of results can go down. With these values we can specify how many minium packets the nmap scan use and how many maximum it can send.
Example: The below caommnd will ensure it will send min 10000 packets while doing each scan:
nmap -sT -p- -Pn --min-rate 10000 10.10.10.84
The below command ensure it send maximum 10000 packets( not more than that) while doing each scan
nmap -sT -p- -Pn --max-rate 10000 10.10.10.84