projectdiscovery / naabu

A fast port scanner written in go with a focus on reliability and simplicity. Designed to be used in combination with other tools for attack surface discovery in bug bounties and pentests

Home Page:https://projectdiscovery.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

exclude-hosts flag only works with IP and CIDR

Mzack9999 opened this issue · comments

Naabu version:

main|dev

Current Behavior:

The -exclude-hosts flag only works with IP and CIDRs

Expected Behavior:

The flag should also work with FQDN

Steps To Reproduce:

$ cat exclude.txt
scanme.sh
$ naabu -host scanme.sh -exclude-hosts exclude.txt -p 80

                  __
  ___  ___  ___ _/ /  __ __
 / _ \/ _ \/ _ \/ _ \/ // /
/_//_/\_,_/\_,_/_.__/\_,_/

                projectdiscovery.io

[INF] Current naabu version 2.1.8 (latest)
[INF] Running CONNECT scan with non root privileges
[INF] Found 1 ports on host scanme.sh (128.199.158.128)
scanme.sh:80

When can we expect this issue to be resolved? Thanks in advance! @Mzack9999

@kljunowsky It's implemented as draft in #823 - In order to exclude targets from file, you need to use exclude-file (in the future both options should be probably merged into just exclude-hosts)

Thanks for the prompt action!