diff --git a/nse_main.cc b/nse_main.cc index 33b981229..cd3f69997 100644 --- a/nse_main.cc +++ b/nse_main.cc @@ -465,8 +465,8 @@ int process_preparerunlevels(std::list 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); } diff --git a/nse_nmaplib.cc b/nse_nmaplib.cc index 5737c19e0..146cb7252 100644 --- a/nse_nmaplib.cc +++ b/nse_nmaplib.cc @@ -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); diff --git a/scripts/iax2Detect.nse b/scripts/iax2Detect.nse index a6b60f905..fc6ab29c4 100644 --- a/scripts/iax2Detect.nse +++ b/scripts/iax2Detect.nse @@ -7,7 +7,7 @@ author = "Ferdy Riphagen " license = "See nmap's COPYING for license" -categories = {"safe", "discovery"} +categories = {"version"} require "shortport"