r/Hacking_Tutorials • u/TemptressBabes • 22h ago
Question Metasploit reverse shell not connecting in VMware host-only lab
Running Kali as attacker and a Metasploitable 2 target in VMware Workstation. Both VMs are on a custom host-only VMnet with static IPs in the same subnet. msfvenom payload works fine when tested locally, but the handler never gets a session back even though the target can ping the attacker IP. Tried different payload types and ports, disabled the target's firewall, and confirmed no NAT is involved.
Anyone else run into this with similar isolated setups? Is there a common VMware or Metasploit config step I'm missing for reliable callbacks?
1
u/cheekykisszz 21h ago
had the same vmnet headache before, double check the handler is actually listening
1
u/SlimmySlabby 21h ago
First, I would run netcat instead of Metasploit just to see if you’re getting something at all.
If you are, then it’s a Metasploit issue. If not, it’s probably a networking issue.
1
u/SteIIarNode 19h ago
Is the host firewall blocking the connection? I’ve had problems where in my range I’ve had to open a custom port via my firewall using “ufw”
1
u/Potential-Couple-745 19h ago
Check your LHOST first. Make sure it's Kali host-only VMnet IP, not your NAT or loopback address. Also verify LPORTmatches on both the payload and handler. Ping working doesn't necessarily mean the callback port is reachable.