mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 19:32:18 +00:00
Merging my --scanflags change. This allows 'ECE', 'CWR', 'ALL' and 'NONE' to be used. They've all been possible to set using a number, but I like names more :)
This commit is contained in:
parent
928750ce05
commit
6da0b2a534
1 changed files with 12 additions and 0 deletions
12
nmap.cc
12
nmap.cc
|
|
@ -148,6 +148,18 @@ static int parse_scanflags(char *arg) {
|
|||
if (strcasestr(arg, "URG")) {
|
||||
flagval |= TH_URG;
|
||||
}
|
||||
if (strcasestr(arg, "ECE")) {
|
||||
flagval |= TH_ECE;
|
||||
}
|
||||
if (strcasestr(arg, "CWR")) {
|
||||
flagval |= TH_CWR;
|
||||
}
|
||||
if (strcasestr(arg, "ALL")) {
|
||||
flagval = 255;
|
||||
}
|
||||
if (strcasestr(arg, "NONE")) {
|
||||
flagval = 0;
|
||||
}
|
||||
}
|
||||
return flagval;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue