1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-01 12:29:03 +00:00

New option --defeat-icmp-ratelimit. Closes #353, Fixes #216

This commit is contained in:
dmiller
2016-12-09 04:19:45 +00:00
parent be64d14098
commit 3f1ad0742e
7 changed files with 63 additions and 2 deletions

View File

@@ -323,6 +323,7 @@ void NmapOps::Initialize() {
open_only = false;
scanflags = -1;
defeat_rst_ratelimit = 0;
defeat_icmp_ratelimit = 0;
resume_ip.s_addr = 0;
osscan_limit = 0;
osscan_guess = 0;
@@ -554,7 +555,11 @@ dialog where you can start NPF if you have administrator privileges.";
servicescan = 0;
if (defeat_rst_ratelimit && !synscan) {
fatal("Option --defeat-rst-ratelimit works only with a SYN scan (-sS)");
fatal("Option --defeat-rst-ratelimit works only with a SYN scan (-sS)");
}
if (defeat_icmp_ratelimit && !udpscan) {
fatal("Option --defeat-icmp-ratelimit works only with a UDP scan (-sU)");
}
if (resume_ip.s_addr && generate_random_ips)