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

Could not create runner: listen ip4:tcp : socket: protocol not supported #515

Closed tonyscy closed 1 year ago

tonyscy commented 1 year ago

naabu -hc Version: 2.1.1 Operative System: linux Architecture: amd64 Go Version: go1.18.7 Compiler: gc Privileged/NET_RAW: Ok Config file "/root/.config/naabu/config.yaml" Read => Ok Config file "/root/.config/naabu/config.yaml" Write => Ok IPv4 connectivity to scanme.sh:80 => Ok IPv6 connectivity to scanme.sh:80 => Ko (dial tcp6 [2400:6180:0:d0::91:1001]:80: connect: connection refused)

and i try use Version: 2.1.0 too。

it happend in wsl !!

image

ehsandeep commented 1 year ago

@tonyscy you mentioned wsl, to confirm, you are facing this issue in WSL environment?

tonyscy commented 1 year ago

Yes, I ran into this issue in wsl,

Edward  @.***

 

------------------ 原始邮件 ------------------ 发件人: "projectdiscovery/naabu" @.>; 发送时间: 2022年12月20日(星期二) 晚上7:45 @.>; 抄送: "Edward @.**@.>; 主题: Re: [projectdiscovery/naabu] Could not create runner: listen ip4:tcp : socket: protocol not supported (Issue #515)

@tonyscy you mentioned wsl, to confirm, you are facing this issue in WSL environment?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

Mzack9999 commented 1 year ago

Unfortunately, WSL doesn't fully support raw sockets, so under this environment, only connect scan is supported (the same happens with nmap)