mirror of
https://github.com/nmap/nmap.git
synced 2026-10-10 07:15:12 +00:00
merge soc07 r5279 - nse fixes
This commit is contained in:
parent
4a39cc164d
commit
d7f207450c
3 changed files with 16 additions and 7 deletions
|
|
@ -465,8 +465,8 @@ int process_preparerunlevels(std::list<struct thread_record> torun_threads) {
|
|||
if(runlevel_idx < (*runlevel_iter).runlevel) {
|
||||
runlevel_idx = (*runlevel_iter).runlevel;
|
||||
current_runlevel.clear();
|
||||
//push_back an empty in which we store all scripts of the current
|
||||
//runlevel...
|
||||
//push_back an empty list in which we store all scripts of the
|
||||
//current runlevel...
|
||||
torun_scripts.push_back(current_runlevel);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -379,11 +379,20 @@ static int l_set_port_version(lua_State* l, Target* target, Port* port) {
|
|||
// tunnel, product, version,
|
||||
// extrainfo, hostname, ostype,
|
||||
// devicetype, fingerprint);
|
||||
port->setServiceProbeResults(probestate, name,
|
||||
tunnel, product, version,
|
||||
extrainfo, hostname, ostype,
|
||||
devicetype, NULL);
|
||||
|
||||
//should prevent a assertion-failure during output if the OutputTable does
|
||||
//not contain columns for the fields other than the name
|
||||
if(o.servicescan){
|
||||
port->setServiceProbeResults(probestate, name,
|
||||
tunnel, product, version,
|
||||
extrainfo, hostname, ostype,
|
||||
devicetype, NULL);
|
||||
}else{
|
||||
port->setServiceProbeResults(probestate, name,
|
||||
tunnel, NULL, NULL,
|
||||
NULL, NULL, NULL,
|
||||
NULL, NULL);
|
||||
}
|
||||
|
||||
|
||||
free(service_tunnel);
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ author = "Ferdy Riphagen <f.riphagen@nsec.nl>"
|
|||
|
||||
license = "See nmap's COPYING for license"
|
||||
|
||||
categories = {"safe", "discovery"}
|
||||
categories = {"version"}
|
||||
|
||||
require "shortport"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue