Comments (3)
This is being worked on at #946 - Unfortunately there is some internal lock within gopacket that prevents a complete release of interface handlers. Additionally a few active handlers literally kill kernel performances in populating their ring buffers, making them unresponsive. So the internals are being reworked to create only one handler per interface and using a pool of workers with demultiplexed traffic. Until the PR is ready you can switch to connect scan where the kernel manages all connections independently via syscall:
...
ScanType: "c",
...
from naabu.
Thanks for your answer. Thanks for your work.
from naabu.
Hi,
I am taking advantage of this issue which may explain my problem.
Additionally a few active handlers literally kill kernel performances in populating their ring buffers, making them unresponsive
Is it global to the use of the library? @Mzack9999
Here's my Go code :
package main
import (
"log"
"github.com/projectdiscovery/goflags"
"github.com/projectdiscovery/naabu/v2/pkg/result"
"github.com/projectdiscovery/naabu/v2/pkg/runner"
)
func main() {
options := runner.Options{
Host: goflags.StringSlice{"domain.tld"},
ScanType: "s",
OnResult: func(hr *result.HostResult) {
log.Println(hr.Host, hr.Ports)
},
TopPorts: "100",
Threads: 25,
}
naabuRunner, _ := runner.NewRunner(&options)
defer naabuRunner.Close()
naabuRunner.RunEnumeration()
}
Performance is terrible compared to using the CLI :/
jomar@SRV:~$ time naabu -host domain.tld -tp 100 -silent
domain.tld:80
domain.tld:22
domain.tld:443
real 0m17.698s
jomar@SRV:~$ ./main
[INF] Running CONNECT scan with non root privileges
[INF] Found 3 ports on host domain.tld (x.x.x.x)
domain.tld:80
domain.tld:22
domain.tld:443
real 1m12.432s
Regards
from naabu.
Related Issues (20)
- installing issue HOT 1
- panic: could not determine route type HOT 1
- UDP Open Ports Not Displayed in naabu Scan HOT 1
- 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
- can't run naabu on mac with sudo HOT 3
- Statistical inaccuracy HOT 4
- is there any nmap output? HOT 1
- An error occurred during runtime
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.