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
https://projectdiscovery.io
MIT License
4.7k stars 548 forks source link

disable error msg upon silent #527

Closed HolyBugx closed 1 year ago

HolyBugx commented 1 year ago

Naabu version:

2.1.1

Current Behavior:

Naabu version 2.1.1 errors out if the given host does not resolve.

❯ echo asdasd.iquweyjbxzc.com | naabu -silent -p 443

[FTL] Could not run enumeration: no valid ipv4 or ipv6 targets were found

Expected Behavior:

Old Naabu versions do not have this problem. Here is the example test on version 2.0.6:

❯ echo asdasd.iquweyjbxzc.com | naabu -silent -p 443

❯

Best Regards. HolyBugx

ehsandeep commented 1 year ago

@HolyBugx it's unclear what's the issue here. Do you mean error should not be displayed when -silent option is used or something else?

HolyBugx commented 1 year ago

Hi @ehsandeep,

True. If the error is intentional, it would be helpful to remove it when -silent is used.

Thanks.