mirror of
https://github.com/nmap/nmap.git
synced 2026-02-04 12:36:34 +00:00
Don't print_iflist until after win_init.
This commit is contained in:
9
nmap.cc
9
nmap.cc
@@ -1366,10 +1366,6 @@ void apply_delayed_options() {
|
||||
log_write(LOG_STDOUT|LOG_SKID, "Nmap wishes you a merry Christmas! Specify -sX for Xmas Scan (http://nmap.org/book/man-port-scanning-techniques.html).\n");
|
||||
}
|
||||
}
|
||||
if (delayed_options.iflist) {
|
||||
print_iflist();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
#ifndef NOLUA
|
||||
if (o.scripthelp) {
|
||||
@@ -1566,6 +1562,11 @@ int nmap_main(int argc, char *argv[]) {
|
||||
win_init();
|
||||
#endif
|
||||
|
||||
if (delayed_options.iflist) {
|
||||
print_iflist();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
/* more fakeargv junk, BTW malloc'ing extra space in argv[0] doesn't work */
|
||||
if (o.quashargv) {
|
||||
size_t fakeargvlen = strlen(FAKE_ARGV), argvlen = strlen(argv[0]);
|
||||
|
||||
Reference in New Issue
Block a user