Comments (2)
All the values are already accessible in HostResult
(each port carries info about the protocol and tls). Are you mostly interested in the CDN info?
from naabu.
Yes, it was originally about the CDN value but it's also about ease of usability.
The results are returned in a -
concacted string for some unknown to me reason so that leaves a lot to be desired. To easily access the properties of the port or if it's TLS you have to as far as I know make some stupid function like below.
var port, protocol int, var tls bool
// fix hard to work with return values
formattedString := fmt.Sprintf("%d-%d-%v", elem.Port, elem.Protocol, elem.TLS)
_, err := fmt.Sscanf(formattedString, "%d-%d-%v", &port, &protocol, &tls)
Why not just return the result struct ?
Ended up just calling CDN check directly to access those values.
from naabu.
Related Issues (20)
- [FR] OnNoResult callback HOT 4
- 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
- github.com/google/gopacket/pcap Erro installation HOT 2
- Naabu on macos is looping to scan some IP addresses.Only the first 7 or 8 can scans can be successful. HOT 3
- Silent doesn't work. Naabu (as a library) is too verbose. HOT 1
- Unrecognized import path "aead.dev/minisign HOT 1
- Build fails on OpenBSD: pkg/privileges/privileges.go:6:17: undefined: isPrivileged HOT 1
- follow up issue for refactor HOT 2
- -source-ip is ignored HOT 2
- -exclude-ports Flag Fails to Function Correctly When Used Alongside -passive Flag HOT 2
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.