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.69k stars 547 forks source link

Naabu does not work if ipv6 is disabled on kernel level #914

Closed psyray closed 7 months ago

psyray commented 9 months ago

Naabu version:

2.2.0

Tested on debian 11

Current Behavior:

Naabu does not work if ipv6 is disabled on kernel level

naabu -Pn -host 192.168.0.0/24 -ip-version 4

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

        projectdiscovery.io

[INF] Current naabu version 2.2.0 (latest)
[FTL] Could not create runner: listen ip6:tcp : socket: address family not supported by protocol

IPv6 status on my debian

cat /sys/module/ipv6/parameters/disable
1

Expected Behavior:

Scan should start if ipv6 is disabled or We should have the possibility to disable ipv6 with a parameter (set -ip-version 4 does not work)

Steps To Reproduce:

Anything else:

Mzack9999 commented 7 months ago

Closing as this should be fixed with https://github.com/projectdiscovery/naabu/pull/946 - Feel free to reopen if the error persist