robertdavidgraham / masscan

TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes.
GNU Affero General Public License v3.0
23.26k stars 3.04k forks source link

New text output module request #59

Closed dmaynor closed 10 years ago

dmaynor commented 10 years ago

Right now for output you have an option of the masscan default string or XML. A third option is needed for parsing during run or using readscan when the full XML output is not needed.

An example would be the nmap -oG output: http://nmap.org/book/output-formats-grepable-output.html This format uses tab separation which isn't ideal.

Proposed output is a csv format:

,,,,, The banner should be enclosed in quotes or escape any commas. To make the use of the output the output should have a consistent number of commas for field parsing. Every field but the banner should be downcased.
robertdavidgraham commented 10 years ago

I've added the grepable format. If you want CSV format, add a separate issue.

Please test the grepable format with nmap tools that might try to consume it