mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Initialize Npcap before applying delayed options so isr00t is set correctly
This commit is contained in:
parent
5cfc7e8564
commit
e6f65878b9
1 changed files with 4 additions and 2 deletions
6
nmap.cc
6
nmap.cc
|
|
@ -1794,12 +1794,14 @@ int nmap_main(int argc, char *argv[]) {
|
|||
|
||||
tty_init(); // Put the keyboard in raw mode
|
||||
|
||||
apply_delayed_options();
|
||||
|
||||
#ifdef WIN32
|
||||
// Must come after parse_options because of --unprivileged
|
||||
// Must come before apply_delayed_options because it sets o.isr00t
|
||||
win_init();
|
||||
#endif
|
||||
|
||||
apply_delayed_options();
|
||||
|
||||
for (unsigned int i = 0; i < route_dst_hosts.size(); i++) {
|
||||
const char *dst;
|
||||
struct sockaddr_storage ss;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue