add new 'ipport' output format for IP:PORT pairs#839
add new 'ipport' output format for IP:PORT pairs#839mehdirzfx wants to merge 1 commit intorobertdavidgraham:masterfrom
Conversation
|
Thank you for the contribution. I think we should keep the information of the layer 4 protocol for which an open port has been found ( |
I agree with you, the purpose of adding this feature was that most of the software I saw was compatible with the IP:Port format and the type of connection can be customizable. Because it's already in the app's source. |
|
What do you mean by "it's already in the app's source"? What's the conclusion then? Should you edit your PR to add the protocol in the output? |
Thanks for the review, Frky. I think there might be a slight misunderstanding about the main goal of this PR. The purpose of adding the If a user needs protocol information (tcp/udp), they can already use the existing So I believe |
Summary
This PR introduces a new output format called
ipportto Masscan, which provides a simple list of IP:PORT pairs for open ports. This format is useful for quick parsing and integration with other tools that expect minimal, structured output.Changes Made
Output_IPPortenum value inmasscan.h.ipport_outputfunctions insrc/out-ipport.c(new file) and registered it inoutput.candoutput.h.-oIshortcut andipportoption to--output-formatinmain-conf.c.README.mdanddoc/masscan.8.markdownto document the new format.out-ipport.cto Visual Studio project files (vs10/masscan.vcxprojandvs10/masscan.vcxproj.filters).1.4.0-integrationinmasscan-version.h.Usage Example
Output format:
Testing
This enhances Masscan's flexibility for output customization. Please review and merge if approved.