Skip to content

Commit

Permalink
Not forcing normal nmap output to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
NoF0rte committed Apr 14, 2023
1 parent 0a4c3dc commit 2d845aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ func (s *Scanner) Run() (result *Run, warnings *[]string, err error) {
args := s.args

// Write XML to standard output.
// If toFile is set then write XML to file and normal nmap output to stdout.
// If toFile is set then write XML to file.
if s.toFile != nil {
args = append(args, "-oX", *s.toFile, "-oN", "-")
args = append(args, "-oX", *s.toFile)
} else {
args = append(args, "-oX", "-")
}
Expand Down

0 comments on commit 2d845aa

Please sign in to comment.