Initialize Npcap before applying delayed options so isr00t is set correctly

This commit is contained in:
dmiller 2016-09-01 03:34:24 +00:00
parent 5cfc7e8564
commit e6f65878b9

View file

@ -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;