Comments (10)
@JoshuaMart do you get any error message by using the verbose
or debug
flag? Also could you try to execute naabu -hc
(it can help identifying potential network issues).
From the provided pcap it seems like the host is not responding to any discovery probe from naabu:
If you want to skip the discovery phase you need to use the -Pn
flag. We also plan to implement additional discovery probes tracked at #726 that should cover this specific case
from naabu.
Well for my part it doesn't work either from eu-central-1
A friend tried it, it didn't work for him either, so I don't know why it works for you.
So for now we can keep this closed...maybe someone else will have a similar problem one day
from naabu.
@JoshuaMart, I was unable to reproduce the issue. Is it occurring consistently?
$ go run . -host 18.136.44.35 -port 443
__
___ ___ ___ _/ / __ __
/ _ \/ _ \/ _ \/ _ \/ // /
/_//_/\_,_/\_,_/_.__/\_,_/
projectdiscovery.io
[INF] Current naabu version 2.1.9 (latest)
[INF] Running CONNECT scan with non root privileges
[INF] Found 1 ports on host 18.136.44.35 (18.136.44.35)
18.136.44.35:443
@Mzack9999, Looked at the code but couldn't find anything useful. Am I missing something?
from naabu.
Yes, I just tested from a fresh EC2 instance and I have the same problem.
However, it works on my local PC.
Simple TCPDump when I run the Naabu command :
root@ip-172-31-30-230:~# tcpdump host 18.136.44.35 -v
tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
15:45:23.605181 IP (tos 0x0, ttl 64, id 42898, offset 0, flags [DF], proto TCP (6), length 44)
ip-172-31-30-230.eu-west-1.compute.internal.45437 > ec2-18-136-44-35.ap-southeast-1.compute.amazonaws.com.http: Flags [S], cksum 0xd8a8 (correct), seq 0, win 1024, options [mss 1460], length 0
15:45:23.605217 IP (tos 0x0, ttl 64, id 42899, offset 0, flags [DF], proto TCP (6), length 44)
ip-172-31-30-230.eu-west-1.compute.internal.45437 > ec2-18-136-44-35.ap-southeast-1.compute.amazonaws.com.https: Flags [.], cksum 0xd72e (correct), ack 0, win 1024, options [mss 1460], length 0
15:45:23.605253 IP (tos 0x0, ttl 64, id 31948, offset 0, flags [DF], proto ICMP (1), length 28)
ip-172-31-30-230.eu-west-1.compute.internal > ec2-18-136-44-35.ap-southeast-1.compute.amazonaws.com: ICMP echo request, id 3730, seq 1, length 8
15:45:23.605266 IP (tos 0x0, ttl 64, id 31949, offset 0, flags [DF], proto ICMP (1), length 40)
ip-172-31-30-230.eu-west-1.compute.internal > ec2-18-136-44-35.ap-southeast-1.compute.amazonaws.com: ICMP time stamp query id 3730 seq 0, length 20
A more complete pcap : https://transfer.sh/51qCyW8OSw/naabu.pcap
Just in case, I used an EC2 T2.micro Ubuntu 22.04 Linux/amd64 instance with security rules authorizing all incoming and outgoing traffic.
from naabu.
Hi,
Nothing special with verbose
or debug
flag, Here is the output with -hc
:
root@ip-172-31-16-32:~# naabu -host 18.136.44.35 -port 443 -hc
Version: 2.1.9
Operative System: linux
Architecture: amd64
Go Version: go1.20.8
Compiler: gc
Privileged/NET_RAW: Ok
Config file "/root/.config/naabu/config.yaml" Read => Ok
Config file "/root/.config/naabu/config.yaml" Write => Ok
TCP IPv4 connectivity to scanme.sh:80 => Ok
TCP IPv6 connectivity to scanme.sh:80 => Ko (dial tcp6 [2400:6180:0:d0::91:1001]:80: connect: network is unreachable)
UDP IPv4 connectivity to scanme.sh:80 => Ok
UDP IPv6 connectivity to scanme.sh:80 => Ko (dial udp6 [2400:6180:0:d0::91:1001]:80: connect: network is unreachable)
The -Pn
flag work, but I don't think it's a viable solution when a lot of hosts are scanned.
Furthermore, as I said, this case works well locally on my PC, but not on a VPS. I've tested different EC2 instances and even different providers, and the problem is recurrent between all instances.
Note : For this new test, I started a new EC2 instance
Is it possible for you to test on your own on an EC2 instance ? Just to confirm.
On my side, I asked a friend, he's got the problem too with this IP.
Regards
from naabu.
@JoshuaMart,
I got the same result while testing on the AWS/EC2 instance.
$ naabu -host 18.136.44.35 -port 443
__
___ ___ ___ _/ / __ __
/ _ \/ _ \/ _ \/ _ \/ // /
/_//_/\_,_/\_,_/_.__/\_,_/
projectdiscovery.io
[INF] Current naabu version 2.1.9 (latest)
[INF] Running CONNECT scan with non root privileges
[INF] Found 1 ports on host 18.136.44.35 (18.136.44.35)
18.136.44.35:443
$ naabu -host 18.136.44.35 -port 443 -hc
Version: 2.1.9
Operative System: linux
Architecture: amd64
Go Version: go1.20.11
Compiler: gc
Privileged/NET_RAW: Ko
Config file "/home/ubuntu/.config/naabu/config.yaml" Read => Ok
Config file "/home/ubuntu/.config/naabu/config.yaml" Write => Ok
TCP IPv4 connectivity to scanme.sh:80 => Ok
TCP IPv6 connectivity to scanme.sh:80 => Ko (dial tcp6 [2400:6180:0:d0::91:1001]:80: connect: network is unreachable)
UDP IPv4 connectivity to scanme.sh:80 => Ok
UDP IPv6 connectivity to scanme.sh:80 => Ko (dial udp6 [2400:6180:0:d0::91:1001]:80: connect: network is unreachable)
![image](https://private-user-images.githubusercontent.com/65292895/283118067-cc8e03ec-692c-44b5-94b1-270fce15ee6a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTQ5MjkxNzgsIm5iZiI6MTcxNDkyODg3OCwicGF0aCI6Ii82NTI5Mjg5NS8yODMxMTgwNjctY2M4ZTAzZWMtNjkyYy00NGI1LTk0YjEtMjcwZmNlMTVlZTZhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTA1VDE3MDc1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE4ZmI5MGQzOTEzNGU3OGQyNDljZDU0MzRiY2QzMWI3ZDA1ZDUyZGZkODBiYTEwZjM0ODllNjBjZmNhMmM4NjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9zggufO2KTtnYKxmaCCB37Q98aW_t1wtm4W6tv-gA2s)
Let me know if you have any questions.
from naabu.
Closing this. Feel free to reopen if the issue persists.
from naabu.
Sorry for the late response, I'm investigating the problem to try to understand the cause since I can reproduce with several providers.
Can I know in which AWS region you launched your EC2 instance @dogancanbakir ?
Regards
from naabu.
@JoshuaMart, Of course, it is eu-central-1
.
from naabu.
I am seeing the same issue, but it only occurs when running as root on Ubuntu 23.10 on a VPS. On my desktop it works both with a regular user and running as root
Running as root:
`
root@vps:/home/lucas/work# naabu -list asn.txt
__
___ ___ ___ / / __ __
/ _ / _ / _ / _ / // /
////_,/_,/.__/_,_/
projectdiscovery.io
[INF] Current naabu version 2.3.0 (latest)
[INF] Running host discovery scan
[INF] Running SYN scan with CAP_NET_RAW privileges
[FTL] Could not run enumeration: no valid ipv4 or ipv6 targets were found
`
I am running version 2.3.0.
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
- Add scan progress HOT 1
- 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
- Increase library callback functionality to have parity with fields available in output. HOT 2
- 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.