Skip to content

Commit

Permalink
add newline in nmap format
Browse files Browse the repository at this point in the history
  • Loading branch information
s0md3v committed Mar 19, 2022
1 parent d1518ae commit 60d2587
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/output/nmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func ContinueNmap(result g.Output) {
}
thisOutput += fmt.Sprintf("%s%s %s%s\n", strPort, pad("open", longestPort-len(strPort)+1), port.Service, pad(productLine, longestService-len(port.Service)+2))
}
thisOutput += "\n"
if value, ok := g.Args["oN"]; ok {
Write(thisOutput, value)
} else {
Expand All @@ -70,7 +71,7 @@ func ContinueNmap(result g.Output) {

func EndNmap() {
elapsed := fmt.Sprintf("%.2f", time.Since(g.ScanStartTime).Seconds())
footer := "\nService detection performed. Please report any incorrect results at https://nmap.org/submit/ .\n"
footer := "Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .\n"
if value, ok := g.Args["oN"]; ok {
endstr := ConvertTime(g.ScanEndTime, "nmap-file")
plural := ""
Expand Down

0 comments on commit 60d2587

Please sign in to comment.