1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-01 20:39:02 +00:00

Allow unfiltered ports to be selected in NSE

This commit is contained in:
kris
2008-04-09 01:54:14 +00:00
parent f2ebfdecba
commit fa9bd6be6e
2 changed files with 6 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ o Added NSE Datafiles library which reads and parses Nmap's nmap-*
(e.g. port numbers) indexing names (e.g. service names). The
rpcinfo.nse script was also updated to use this library. [Kris]
o Now ports in the "unfiltered" state can be selected in NSE. [Kris]
o Corrected uptime parsing and reporting in SNMPsysdesr.nse for an
uptime of less than 46 hours. [Kris]

View File

@@ -499,6 +499,10 @@ int process_preparehost(lua_State* l, Target* target, std::list<struct thread_re
SCRIPT_ENGINE_TRY(process_pickScriptsForPort(l, target, current, torun));
}
while((current = plist->nextPort(current, TCPANDUDP, PORT_UNFILTERED)) != NULL) {
SCRIPT_ENGINE_TRY(process_pickScriptsForPort(l, target, current, torun));
}
// pop the hostinfo, we don't need it anymore
lua_pop(l, 1);