merge soc07 r5279 - nse fixes

This commit is contained in:
fyodor 2007-08-11 06:03:25 +00:00
parent 4a39cc164d
commit d7f207450c
3 changed files with 16 additions and 7 deletions

View file

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

View file

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

View file

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