Skip to content

Add support for host|ip:port / port range input support #641

@taythebot

Description

@taythebot

Please describe your feature request:

Add an option to accept the format <ip>:<port>. This should be accepted via stdin and as a list of targets from a file.

Ideally this should be a flag and enabling this will disable functionalities such as -port and -top-ports. Or perhaps Naabu should detect this format for the targets it receives and ignore other port functionalities for such targets.

Under the hood, the scanning functionality would be no different. The only difference would be in preparing the target for the scan engine.

Describe the use case of this feature:

Currently Nabbu accepts a list of ports that it will scan for on every target you provide it. This is great for discovery, however when performing more targeted scans you end up having to run multiple Nabbu scans and preparing targets into groups by ports. This adds unnecessary work and preparation, when Nabbu could just accept an <ip>:<port> format.

Consider the following scenarios:

  • You only want to scan ports 80, 443, 8080 on group A and ports 80, 443 on group B. Instead of writing a script to divide up your targets and start 2 parallel or consecutive Nabbu scans and then combining the results, you can just make one
  • You have results from a previous Nabbu scan or another tool and wish to check if the ports are still open. Instead of scanning all ports on all targets again, you can check what ports you want for specific hosts

Metadata

Metadata

Assignees

Labels

Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Type: EnhancementMost issues will probably ask for additions or changes.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions