1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 04:09:01 +00:00

Include service information in -oX and -oM even without -sV.

This is by Daniel Miller.
http://seclists.org/nmap-dev/2012/q1/731
This commit is contained in:
david
2012-04-03 01:28:32 +00:00
parent fd80c2d0a6
commit f813b50a4d
3 changed files with 9 additions and 11 deletions

View File

@@ -739,7 +739,7 @@ void printportoutput(Target *currenths, PortList *plist) {
Tbl->addItem(rowno, reasoncol, true, port_reason_str(current->reason));
sd.populateFullVersionString(fullversion, sizeof(fullversion));
if (*fullversion)
if (*fullversion && versioncol > 0)
Tbl->addItem(rowno, versioncol, true, fullversion);
// How should we escape illegal chars in grepable output?