Hack an Android Phone.
Hack your phone and control it from your computer.
So you want to rival Kevin Mitnik or GeoHotz ? Or better still look like Mr. Robot with the Terminal and “Access Granted” catchphrase as you break through androids security? I won't tell you that they did start here but why not ? First, You should get consent from the person whose device you will use 😉. In this case I recommend you use your own phone Are you ready? let’s get our hands dirty.
First You need to be conversant with a little bit of linux and the terminal. Just to mention my favorite linux terminal is Terminator due to its multiple customization options. You can get Terminator here. We will also use a USB cable to connect phone with your computer. We are going to use a utility called ADB or Android Debug Bridge. It’s a tool for auditing and developing android apps. The other thing we are going to need is Scrcpy (pronounced ScreenCopy).
Installation:
Open your terminal by pressing Alt + T or Ctrl + Alt + T (if you are using a debian based linux distro like kali linux) on your keyboard. Then type the following command exactly as it appears below:
sudo apt install adb scrcpy -y
This will install both Android Debug Bridge and scrcpy on your computer. Next we will do the Hacking!
On your phone:
Next go to your phone and enable “USB Debugging” in the developer settings. To access the developer settings you have to enable them. This can be done by following the following steps:, open the Settings screen,
1. Scroll down to the bottom, and tap About phone or About tablet.
2. Scroll down to the bottom of the About screen and find the Build number.
3. Tap the Build number field seven times to enable Developer Options.
After this, a notification will pop up informing you that you are now already a developer. From here, you need to enable USB Debugging as we had mentioned earlier.
4. Navigate to Settings on your phone
5. From there, scroll down to the bottom where you will see the developer options
6. Tap the developer options and scroll as you look for “Enable USB debugging”.
7. Mark the checkbox by clicking on it. It may ask you for authentication in order to be enabled.
8. Before you leave this part of the settings you may want to Enable “Stay awake” still in the developer options to prevent your phone from going into sleep mode.
Finally on your phone you have to find your IP address. To do this do:
9. Navigate to Settings
10. Tap on About device
11. Status then scroll down. There, you'll be able to see your Android phone's public IP address along with other information such as MAC address.
12. Write this IP address down on a piece of paper. It should be of the format 192.168.x.x where x represents an integer between 1 and 255.
Onward and Upwards: Terminal.
1. Connect your phone to the Computer using a USB cable a USB debugging notification will appear on your phone as well as a prompt like the one shown below.
2. Click on the “Always allow from this computer ” checkbox and click OK to enable.
3. Next, on your terminal type:
adb devices
This command will display all devices connected with USB having their USB debug mode enabled. It will appear as shown below.
4. Next on the terminal type:
adb tcpip 5555
5. Remember the IP address I had asked you to write down ? we are going to use it here. In this following line, replace the “192.168.x.x” with your phone;s IP address.
adb connect 192.168.x.x:5555
You will see a notification on your terminal informing you that the device has been connected.
6. Now plug out your USB cable to terminate the connection between your phone and computer via the cable.
7. Finally for the last command, type:
scrcpy
This will launch the screenCopy application and you will be able to control your phone from your computer.
8. Abracadabra!! A window will launch with your phone screen. You can even call, see messages, take a photo, play music, text and many more from your phone by controlling it via your machine.
Bonus:
Here is how all the commands look on the terminal.
This is how my phone looks on the computer.
I believe this can also be used to connect to a device remotely by port forwarding using Ngrok but that will come in a later tutorial. Possibly on how to hack your Whatsapp 👀 😂😂😂.
Really informative.
ReplyDeleteNyi ni ma ass wote
DeleteNIce read, looking forward to the Whatsapp one though 😂😂
ReplyDelete