mirror of
https://github.com/nmap/nmap.git
synced 2026-10-20 19:01:56 +00:00
Allow unfiltered ports to be selected in NSE
This commit is contained in:
parent
f2ebfdecba
commit
fa9bd6be6e
2 changed files with 6 additions and 0 deletions
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue