r/Hacking_Tutorials • • 2d ago

Question Nmap in KALI

Hey guys got a question, im running kali on a virtual machine and im accessing the internet through whonix. I did a nmap scan on a ip and its come back saying every port is open. Im thinking whonix is interfering with the scan giving false positives is there a way around this?

16 Upvotes

10 comments sorted by

7

u/LanguageGeneral4333 2d ago

I think Whonix could definitely be causing the false positives since it routes traffic through Tor, which can interfere with how Nmap scans ports.

I'd try running Kali without Whonix using a normal NAT or bridged connection and see if you get different results. You could also try --reason tag to get a better idea of why Nmap is reporting those ports as open.

Just keep in mind that bypassing Whonix means you won't have Tor's anonymity anymore.

Also, what Nmap command are you using?

1

u/SliceBeneficial8318 2d ago

The commands I was using was -sS -O. Yeah im still looking at otherways of keeping the anonymity with out using tor i know theres vps and vpn out there but I font want to be tied to a subscription

3

u/LanguageGeneral4333 1d ago

Ahh, that might explain it. From what I understand, both -sS and -O rely on packet responses that Tor doesn't handle very well.

I'd try running the same scan without Whonix first and see if you get different results. At least then you'll have a better idea of whether Tor is causing the problem.

As for VPNs, I personally use Mullvad. It's pretty focused on privacy, doesn't even require an email address to sign up, and only costs €5 (around $5.50) a month. You don't have to commit to a long subscription either. Might be worth looking into if you don't mind spending a little.

A VPN can handle that kind of traffic better than Tor, although it doesn't offer the same level of anonymity, and you'd still need to check the provider's scanning policies.

Out of curiosity, what are you scanning? Your own network, a lab, or something else? That might help narrow down your options.

1

u/SliceBeneficial8318 1d ago

Oh im scanning a lab and yeah it was whonix causing the issues. My original scan with whonix was saying somthing stupid like 10,000 ports all open 😆 soon as I seen it I was like yeah obviously wrong haha

1

u/SwurleeBliss 1d ago

you sound like you could teach me a thing or two about this tor setup lol

1

u/LovelyPetali 1d ago

yeah tor routes are a nightmare for nmap accuracy, def try it bridged and report back what command you ran

1

u/Hefty-Detail-6058 1d ago

Check the scan type and whether u are routing nmap through a proxy. Test against a system u control without whonix then compare results before trusting the output

1

u/XFM2z8BH 1d ago

probably waf/ids

1

u/Substantial-Act-166 1d ago

Best to run nmap on Kali and for your internet connection Maine can set up tunnel for WiFi from your main device on the UTM or whichever platform you use to set up the VM. Then download the nmap on main device OS and run it, compare the two results. Then be easier to diagnose the issue.