I'm having an incredibly tedious problem with port forwarding, and I have no idea how to solve it. Let's define my public IP as X and my kali's local one as Y. In my router's settings I've configured port forwarding for Y on port 4545, and up to this point everything works like a charm. After having made this configuration I try to check if my port is correctly forwarded on "Can you see me" and it does not recognize it at all, only and only if I execute nc -l -p 4545 on my kali machine the site says the port is actually forwarded, but after that nc shuts down and it's then again all closed. Apparently if i don't provide any data to that port it doesn't open at all thus is considered completely deactivated. I have no idea how to open it permanently without having the need to to subtle tasks such as activating it fakely with a netcat listener. I've tried enabling DMZ on Y, but it still does not work at all. I've tried to disable my router's firewall, and nothing. If you guys have any suggestions I'd really like to hear them because this is driving me nuts. Have a good day.
Forum Thread: Port forwarding problem
- Hot
- Active
-
Forum Thread: What Are Some Good Budget Laptops for Pentestin 12 Replies
2 days ago -
How to: Sign the APK File with Embedded Payload (The Ultimate Guide) 8 Replies
2 days ago -
Forum Thread: Hack Instagram Account Using BruteForce 193 Replies
2 days ago -
Forum Thread: Create and Use Android/Meterpreter/reverse_tcp APK with Msfvenom? 117 Replies
4 days ago -
Forum Thread: How Do I Access Different Directories Within Android via Meterpreter 5 Replies
6 days ago -
Forum Thread: Best Programming Language? 8 Replies
1 wk ago -
Forum Thread: HACK ANDROID with KALI USING PORT FORWARDING(portmap.io) 4 Replies
1 wk ago -
Forum Thread: Fix Meterpreter Problem 2 Replies
1 wk ago -
Forum Thread: Hack and Track People's Device Constantly Using TRAPE 31 Replies
2 wks ago -
Forum Thread: Need Help with FatRat Over WAN 1 Replies
2 wks ago -
Forum Thread: Kali Linux Boot Error 8 Replies
2 wks ago -
Forum Thread: I Want to Hack in to My Friends System Through his wifi router i am controlling 8 Replies
2 wks ago -
Forum Thread: Kali linux command error. Kindly help 3 Replies
2 wks ago -
Forum Thread: How to Create a Python Remote Keylogger for Facebook 27 Replies
2 wks ago -
Forum Thread: Kali Linux Handshake Porblem 2 Replies
2 wks ago -
Forum Thread: Port Forwarding Problem in Metasploit Can't Establish Connection (WAN) 3 Replies
3 wks ago -
Forum Thread: GMail Brute Force Dictionary Attack Script 31 Replies
4 wks ago -
Forum Thread: Msfvenom Android Exploitation Outside LAN? 12 Replies
4 wks ago -
Forum Thread: How to decrypt .CAP file of handshake during WiFi attack 2 Replies
4 wks ago -
Forum Thread: Make a Phishing Page for Harvesting Credentials Yourself 7 Replies
1 mo ago
-
How To: Clear the Logs & Bash History on Hacked Linux Systems to Cover Your Tracks & Remain Undetected
-
How To: Top 10 Things to Do After Installing Kali Linux
-
How To: Hack Android Using Kali (Remotely)
-
How To: Brute-Force Nearly Any Website Login with Hatch
-
How To: Master Python, Django, Git & GitHub with This Bundle
-
How To: Check if Your Wireless Network Adapter Supports Monitor Mode & Packet Injection
-
How To: The Hacks Behind Cracking, Part 1: How to Bypass Software Registration
-
How To: Scan for Vulnerabilities on Any Website Using Nikto
-
How to Hack Wi-Fi: Stealing Wi-Fi Passwords with an Evil Twin Attack
-
How To: Crack Shadow Hashes After Getting Root on a Linux System
-
How to Hack Wi-Fi: Cracking WPA2 Passwords Using the New PMKID Hashcat Attack
-
How To: Hunt Down Social Media Accounts by Usernames with Sherlock
-
How To: Make Spoofed Calls Using Any Phone Number You Want Right from Your Smartphone
-
Hack Like a Pro: How to Crack Online Web Form Passwords with THC-Hydra & Burp Suite
-
How To: Master Python, Linux & More with This Training Bundle
-
How To: Use Ettercap to Intercept Passwords with ARP Spoofing
-
The Hacks of Mr. Robot: How to Send a Spoofed SMS Text Message
-
How To: Gain SSH Access to Servers by Brute-Forcing Credentials
-
How To: Find Identifying Information from a Phone Number Using OSINT Tools
-
How To: Buy the Best Wireless Network Adapter for Wi-Fi Hacking in 2019
9 Responses
Hey buddy i also need help port forwarding to start a meterprete session in kali linux actually i dont have router no wifi.. M using tethering hotspot do u know or have any idea what should i do now....
Dude, i had the same problem. It is ok, when you exploit via the metasploit framework or whatever tool you are yousing, the tool will start listening on the port u portfowarded. So just use your external ip and it will work
I'll give it a last try and check if it works as intended, thank you
In order to open a socket, you should run a service
Started reverse TCP handler on 0.0.0.0:4545
* Starting the payload handler...
This is the problem. And whenever I try to open the payload on the external machine for the reverse shell, nothing happens, the handler doesn't recognize any receiving data.
Note:"myPublicIp" is replaced by the actual Ip
Also when the handler has started and
nmap myPublicIp -p 4545 ->
Starting Nmap 6.49BETA4 ( https://nmap.org ) at 2016-05-20 18:03 CEST
Nmap scan report for XX (YY)
Host is up (0.0041s latency).
PORT STATE SERVICE
4545/tcp closed worldscores
If u getting this erorr i suggest u to change the LHOST of the handler to ur mashines local ip, since u have forwarded ur public ip to ur local ip u shoud do that.
Unfortunately this doesn't work for me, I even tried to capture packets with Wireshark to check if there was an interaction between machines on this forwarding, and not even a single packed had been transmitted.
You need a service to be listening on the port. When the router forwards data back to your computer to the specified port (4545) the computer just drops it because it does not know what to do with it.
Share Your Thoughts