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: CEH Training? 8 Replies
1 day ago -
Forum Thread: Ext4 File System Error While Installing Kali Linux for Bootable Usb 3 Replies
2 days ago -
Forum Thread: Eml to PST Conversion 3 Replies
2 days ago -
Forum Thread: PORT FORWARDING IN JIOFI 18 Replies
3 days ago -
Forum Thread: How to Install Kali Linux on Iphone or Ipad 24 Replies
3 days ago -
Forum Thread: How to Hack CCTV Private Cameras 65 Replies
3 days ago -
Forum Thread: Hack Instagram Account Using BruteForce 197 Replies
4 days ago -
Forum Thread: How to Hack a Website to Edit It 19 Replies
1 wk ago -
Forum Thread: Android Doesn't Connect Back to Metasploit with App Payload? 18 Replies
1 wk ago -
Forum Thread: Hacking Facebook,Twitter,Instagram Account Passwords with BruteForce 156 Replies
1 wk ago -
Forum Thread: Kali Linux WiFi Problem? 41 Replies
1 wk ago -
How to: HACK Android Device with TermuX on Android | Part #1 - Over the Internet [Ultimate Guide] 173 Replies
1 wk ago -
Forum Thread: How to Start Listening Connections on Metaslpoit (WINDOWS) 8 Replies
1 wk ago -
Forum Thread: Grab Target's Webcam by Link 4 Replies
1 wk ago -
How to: HACK Android Device with TermuX on Android | Part #2 - Over WLAN Hotspot [Ultimate Guide] 24 Replies
2 wks ago -
Forum Thread: Complete Guide to Creating and Hosting a Phishing Page for Beginners 41 Replies
2 wks ago -
Forum Thread: No Wireless Extensions in Linux Debian 3 Replies
3 wks ago -
How to: Sign the APK File with Embedded Payload (The Ultimate Guide) 6 Replies
3 wks ago -
Forum Thread: Bruteforce Password Cracker (ghoster_brute) 6 Replies
3 wks ago -
Forum Thread: Txpower Adjustment? 17 Replies
3 wks ago
-
How To: Use RedRabbit for Pen-Testing & Post-Exploitation of Windows Machines
-
How To: Hack Android Using Kali (Remotely)
-
How to Hack Wi-Fi: Cracking WPA2 Passwords Using the New PMKID Hashcat Attack
-
How To: Buy the Best Wireless Network Adapter for Wi-Fi Hacking in 2019
-
How To: Top 10 Things to Do After Installing Kali Linux
-
How To: Null Byte's Hacker Guide to Buying an ESP32 Camera Module That's Right for Your Project
-
How To: Find Identifying Information from a Phone Number Using OSINT Tools
-
How To: Phish for Social Media & Other Account Passwords with BlackEye
-
How to Hack Wi-Fi: Stealing Wi-Fi Passwords with an Evil Twin Attack
-
How To: 4 Ways to Crack a Facebook Password & How to Protect Yourself from Them
-
How to Hack Wi-Fi: Cracking WPA2-PSK Passwords Using Aircrack-Ng
-
How To: Crack Shadow Hashes After Getting Root on a Linux System
-
How To: Check if Your Wireless Network Adapter Supports Monitor Mode & Packet Injection
-
How To: Create a Persistent Back Door in Android Using Kali Linux:
-
How To: Brute-Force Nearly Any Website Login with Hatch
-
How To: Crack Password-Protected ZIP Files, PDFs & More with Zydra
-
How To: Crack SSH Private Key Passwords with John the Ripper
-
How To: The Hacks Behind Cracking, Part 1: How to Bypass Software Registration
-
Hack Like a Pro: How to Hack Facebook (Facebook Password Extractor)
-
How To: Hack WPA & WPA2 Wi-Fi Passwords with a Pixie-Dust Attack Using Airgeddon
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