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:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user