M 201: ADB on Genymotion (15 pts)

What You Need for This Project

Purpose

To configure your system so the Android Debug Bridge in Kali can access your Genymotion virtual machine.

Version Notes

I did this on a Mac running Big Sur, using VMware Fusion 12.1 and Genymotion 3.1.2. I am using Android 8 in my Genymotion virtual device.

The networking configuration is difficult and depends on all the versions.

If you are using older versions, you can look at older instructions.

Using Bridged Networking in Genymotion

In Genymotion, in the main page showing your devices, click the three-dot icon on the right side of your device, and click Edit, as shown below.

In the "Edit virtual box" page, at the bottom, select a Network mode of Bridge, as shown below.

Click CONFIRM.

Start your Genymotion device.

In your Genymotion device, in Settings, click "Network & Internet", click Wi-Fi, and click AndroidWiFi.

Your Genymotion device should be connected, wth an IP address on your local network, outlined in red in the image below.

Make a note of this address. You'll need it later.

Using Bridged Networking in Kali

In VMware, adjust the network adapter on your Kali virtual machine to use Bridged networking, as shown below.

On Kali, in a Terminal, execute this command, replacing the address with the IP address of your Genymotion device:

ping -c 2 192.168.1.10
You should see replies, as shown below.

Enabling USB Debugging

In your Genymotion device, in Settings, at the top, click the back-arrow three times to get back to the main Settings page.

At the top, click the magnifying glass. Search for usb, as shown below.

Double-click "USB debugging".

Turn on "USB debugging", as shown below.

Connecting to your Android Device with ADB

On Kali, in a Terminal, execute these commands, replacing the IP address with the IP address of your Genymotion Android device:
sudo apt update
sudo apt install android-tools-adb apktool -y
adb connect 192.168.1.10:5555
adb devices -l
You should see your Genymotion device in the "List of devices attached", s shown below.

M 201: ADB Shell (15 pts)

On Kali, in a Terminal, execute these commands:
adb shell
uname -a
exit
You should see a root shell on the Android device, with the Linux version information.

Find the text covered by a green box in the image below. That's the flag.

Posted 1-27-2021