Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SYN scan for IPv6 fails with "invalid source ipv6 address" error #1315

Open
HappyStoic opened this issue Dec 23, 2024 · 0 comments
Open

SYN scan for IPv6 fails with "invalid source ipv6 address" error #1315

HappyStoic opened this issue Dec 23, 2024 · 0 comments
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@HappyStoic
Copy link
Contributor

Naabu version:

version 2.3.3 (latest)

Current Behavior:

When I launch SYN scan for ipv6 IPs, naabu fails to find correct source IP.

Expected Behavior:

Scanning of IPv6 IP addresses using SYN scan works.

Steps To Reproduce:

Launch this command:

dig +short hackerone.com aaaa | sudo ./naabu -p 80 -ip-version 6 --scan-all-ips --debug --verbose --scan-type=s

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

		projectdiscovery.io

[INF] Current naabu version 2.3.3 (latest)
[INF] Host discovery disabled: less than two ports were specified
[DBG] Found 1 addresses for 2606:4700:4400::6812:24d6
[DBG] Using ip 2606:4700:4400::6812:24d6 for host 2606:4700:4400::6812:24d6 enumeration
[INF] Running SYN scan with CAP_NET_RAW privileges
[DBG] Can not send packet to 2606:4700:4400::ac40:972a:80 port: Invalid source IPv6 address (wrong length of 0 bytes instead of 16)
[DBG] Can not send packet to 2606:4700:4400::6812:24d6:80 port: Invalid source IPv6 address (wrong length of 0 bytes instead of 16)
[DBG] Can not send packet to 2606:4700:4400::ac40:972a:80 port: Invalid source IPv6 address (wrong length of 0 bytes instead of 16)
[DBG] Can not send packet to 2606:4700:4400::6812:24d6:80 port: Invalid source IPv6 address (wrong length of 0 bytes instead of 16)
[DBG] Can not send packet to 2606:4700:4400::6812:24d6:80 port: Invalid source IPv6 address (wrong length of 0 bytes instead of 16)
[DBG] Can not send packet to 2606:4700:4400::ac40:972a:80 port: Invalid source IPv6 address (wrong length of 0 bytes instead of 16)

Anything else:

The issue is related only for SYN scan. CONNECT scan works correctly, viz the same command above without the --scan-type=s option

dig +short hackerone.com aaaa | sudo ./naabu -p 80 -ip-version 6 --scan-all-ips --debug --verbose              

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

		projectdiscovery.io

[INF] Current naabu version 2.3.3 (latest)
[INF] Host discovery disabled: less than two ports were specified
[DBG] Found 1 addresses for 2606:4700:4400::ac40:972a
[DBG] Using ip 2606:4700:4400::ac40:972a for host 2606:4700:4400::ac40:972a enumeration
[INF] Running CONNECT scan with non root privileges
2606:4700:4400::ac40:972a:80
2606:4700:4400::6812:24d6:80
[INF] Found 1 ports on host 2606:4700:4400::ac40:972a (2606:4700:4400::ac40:972a)
[INF] Found 1 ports on host 2606:4700:4400::6812:24d6 (2606:4700:4400::6812:24d6)
@HappyStoic HappyStoic added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

1 participant