Comments (3)
maybe , it is macOS problem. i can run naabu with low privilege user, but i can't run it with root. I don't know how to config macOS that can run naabu with root
from naabu.
I couldn't repro the issue. Is it possible that pcap dep is missing from the sys? See https://github.com/projectdiscovery/naabu?tab=readme-ov-file#prerequisite
$ sudo ./naabu -host scanme.sh -v
__
___ ___ ___ _/ / __ __
/ _ \/ _ \/ _ \/ _ \/ // /
/_//_/\_,_/\_,_/_.__/\_,_/
projectdiscovery.io
[INF] Current naabu version 2.3.1 (latest)
[INF] Running host discovery scan
[DBG] Received ICMP response from 128.199.158.128
[DBG] Received ICMP response from 128.199.158.128
[DBG] Received ICMP response from 128.199.158.128
[DBG] Received ICMP response from 128.199.158.128
...
from naabu.
me too
`SIGSEGV: segmentation violation
PC=0x7ff82614c116 m=11 sigcode=1 addr=0x70
signal arrived during cgo execution
goroutine 35 gp=0xc0000b48c0 m=11 mp=0xc000900008 [syscall]:
runtime.cgocall(0x1073b80a0, 0xc000089988)
runtime/cgocall.go:157 +0x4b fp=0xc000089960 sp=0xc000089928 pc=0x106630d0b
github.com/google/gopacket/pcap._Cfunc_pcap_datalink(0x0)
_cgo_gotypes.go:353 +0x47 fp=0xc000089988 sp=0xc000089960 pc=0x106cbb7a7
github.com/projectdiscovery/naabu/v2/pkg/scan.TransportReadWorker.func2.(*Handle).LinkType.(*Handle).pcapDatalink.1(0x0?)
github.com/google/[email protected]/pcap/pcap_unix.go:402 +0x3f fp=0xc0000899c8 sp=0xc000089988 pc=0x106ccb0df
github.com/google/gopacket/pcap.(*Handle).pcapDatalink(...)
github.com/google/[email protected]/pcap/pcap_unix.go:402
github.com/google/gopacket/pcap.(*Handle).LinkType(...)
github.com/google/[email protected]/pcap/pcap.go:592
github.com/projectdiscovery/naabu/v2/pkg/scan.TransportReadWorker.func2(0xc000052720, 0xc000dcd0a0?)
github.com/projectdiscovery/naabu/v2/pkg/scan/scan_unix.go:628 +0x85 fp=0xc000089fc0 sp=0xc0000899c8 pc=0x106ccaba5
github.com/projectdiscovery/naabu/v2/pkg/scan.TransportReadWorker.gowrap1()
github.com/projectdiscovery/naabu/v2/pkg/scan/scan_unix.go:673 +0x28 fp=0xc000089fe0 sp=0xc000089fc0 pc=0x106ccaae8
runtime.goexit({})
runtime/asm_amd64.s:1695 +0x1 fp=0xc000089fe8 sp=0xc000089fe0 pc=0x10669a7a1
created by github.com/projectdiscovery/naabu/v2/pkg/scan.TransportReadWorker in goroutine 50
github.com/projectdiscovery/naabu/v2/pkg/scan/scan_unix.go:673 +0x77
goroutine 1 gp=0xc0000061c0 m=nil [runnable, locked to thread]:
regexp/syntax.(*parser).checkLimits(0xc000ef9c00?, 0xc0006cff10?)
regexp/syntax/parse.go:161 +0x5f fp=0xc00087db50 sp=0xc00087db48 pc=0x106a15edf
regexp/syntax.(*parser).push(0xc000ef9c00, 0xc0006cff10)
regexp/syntax/parse.go:327 +0x2e5 fp=0xc00087dba0 sp=0xc00087db50 pc=0x106a16885
regexp/syntax.(*parser).literal(0xc000ef9c00, 0x65)`
from naabu.
Related Issues (20)
- FreeBSD scan_common.go:62:23: undefined: routing.New
- Can't silent command / output naabu HOT 1
- When using naabu as a library, an error occurs: no free handlers
- Request, timeout & no valid ipv4 or ipv6 targets were found HOT 5
- OnResult not be invoked when threshold reached
- Port spray support HOT 2
- v2.3.0 gives internal nil pointer on "phase.RLock()" but 2.2.1 does work. HOT 10
- No valid ipv4 or ipv6 targets were found when running as root in Ubuntu on certain hosts HOT 5
- error while loading shared libraries HOT 2
- version does't provide valid work with -c and rate HOT 2
- Gets ports with non-root access but dosent work with root access. HOT 2
- -rate is breaking the script without result HOT 2
- Potentially switch to github.com/gopacket/gopacket instead of github.com/google/gopacket ? HOT 1
- Statistical inaccuracy HOT 6
- is there any nmap output? HOT 1
- An error occurred during runtime
- ocasionally panic when running host discovery concurrently HOT 8
- naabu does not work with sudo su HOT 1
- Logical improvement on the number of retries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from naabu.