Skip to content

Conversation

@lokiee0
Copy link

@lokiee0 lokiee0 commented Oct 9, 2025

  • Add -o/--output flag with support for normal, json, and xml formats
  • Implement structured output similar to nmap's -oJ and -oX options
  • Add comprehensive data structures for structured output:
    • StructuredResult with detailed port information
    • PortDetail with number, protocol, service, and state
    • ScanResults with metadata and summary information
    • LatencyInfo with milliseconds and nanoseconds
    • HostInfo with MAC, manufacturer, and hostname
  • Support both individual result output and batch structured output
  • Add XML and JSON marshaling with proper tags and formatting
  • Update all scanner types (SYN, Connect, Device) to support structured output
  • Add comprehensive unit tests for structured output functionality
  • Update README with detailed examples and usage instructions

This provides nmap-compatible structured output for integration with other tools and automated processing.

Fixes #11

- Add -o/--output flag with support for normal, json, and xml formats
- Implement structured output similar to nmap's -oJ and -oX options
- Add comprehensive data structures for structured output:
  - StructuredResult with detailed port information
  - PortDetail with number, protocol, service, and state
  - ScanResults with metadata and summary information
  - LatencyInfo with milliseconds and nanoseconds
  - HostInfo with MAC, manufacturer, and hostname
- Support both individual result output and batch structured output
- Add XML and JSON marshaling with proper tags and formatting
- Update all scanner types (SYN, Connect, Device) to support structured output
- Add comprehensive unit tests for structured output functionality
- Update README with detailed examples and usage instructions

This provides nmap-compatible structured output for integration
with other tools and automated processing.

Fixes liamg#11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature request: add an option to generate structured output

1 participant