rapid7 / metasploit-framework

Metasploit Framework
https://www.metasploit.com/
Other
33.85k stars 13.92k forks source link

It is recommended to return to the Android penetration test command #15377

Closed guofengli854 closed 2 years ago

guofengli854 commented 3 years ago

It is recommended to return to the Android penetration test command


Query mobile phone information command:
sysinfo View phone information
webcam_list Check how many cameras the phone has
webcam_stream Turn on the phone's rear camera
dump_contacts export phone numbers
dump_sms export SMS information
webcam_snap Take pictures through the camera
send_sms //Send a short message from the target session
webcam_snap //Secret camera function
webcam_snap //Get a snapshot from the specified camera
check_root //Check if the device is rooted
hide_app_icon //Hide the Trojan horse program icon on the mobile phone
dump_calllog //Get call records
geolocate //Get the current latitude and longitude of the phone
set_audio_mode //Set Ringer Mode
sqlite_query //Query a SQLite database from storage
wakelock // Enable/Disable Wakelock
wlan_geolocate // Get current lat-long using WLAN information
app_install // Request to install apk file
app_list // List installed apps in the device
app_run // Start Main Activty for package name
app_uninstall //Request to uninstall application
bcoles commented 2 years ago

Which command is missing?

Android Commands
================

    Command           Description
    -------           -----------
    activity_start    Start an Android activity from a Uri string
    check_root        Check if device is rooted
    dump_calllog      Get call log
    dump_contacts     Get contacts list
    dump_sms          Get sms messages
    geolocate         Get current lat-long using geolocation
    hide_app_icon     Hide the app icon from the launcher
    interval_collect  Manage interval collection capabilities
    send_sms          Sends SMS from target session
    set_audio_mode    Set Ringer Mode
    sqlite_query      Query a SQLite database from storage
    wakelock          Enable/Disable Wakelock
    wlan_geolocate    Get current lat-long using WLAN information

Application Controller Commands
===============================

    Command        Description
    -------        -----------
    app_install    Request to install apk file
    app_list       List installed apps in the device
    app_run        Start Main Activty for package name
    app_uninstall  Request to uninstall application

meterpreter > load android
[!] The "android" extension has already been loaded.
meterpreter > check_root
[*] Device is not rooted
meterpreter > app_list
Application List
================

  Name                                                                Package                                                             Running  IsSystem
  ----                                                                -------                                                             -------  --------
  2 Button Navigation Bar                                             com.android.internal.systemui.navbar.twobutton                      false    true
  3 Button Navigation Bar                                             com.android.internal.systemui.navbar.threebutton                    false    true
  APKPure                                                             com.apkpure.aegon                                                   false    false
  Android Auto                                                        com.google.android.projection.gearhead                              false    true
  Android R Easter Egg                                                com.android.egg                                                     false    true
  Android Services Library                                            com.google.android.ext.services                                     false    true
  Android Setup                                                       com.google.android.setupwizard                                      false    true
  Android Setup                                                       com.google.android.apps.restore                                     false    true
  Android Shared Library                                              com.google.android.ext.shared                                       false    true
  Android System                                                      android                                                             false    true
  Android System WebView                                              com.google.android.webview                                          false    true
  Basic Daydreams                                                     com.android.dreams.basic                                            false    true
  Black                                                               com.android.theme.color.black                                       false    true
  Blocked Numbers Storage                                             com.android.providers.blockednumber                                 false    true
  Bluetooth                                                           com.android.bluetooth                                               false    true
  Bluetooth MIDI Service                                              com.android.bluetoothmidiservice                                    false    true
  Bookmark Provider                                                   com.android.bookmarkprovider                                        false    true
  Calendar                                                            com.google.android.calendar                                         false    true
  Calendar Storage                                                    com.android.providers.calendar                                      false    true
  Call Log Backup/Restore                                             com.android.calllogbackup                                           false    true
  Call Management                                                     com.android.server.telecom                                          false    true
  Camera                                                              com.android.camera2                                                 false    true
  CaptivePortalLogin                                                  com.google.android.captiveportallogin                               false    true
  Carrier Services                                                    com.google.android.ims                                              false    true
  CarrierDefaultApp                                                   com.android.carrierdefaultapp                                       false    true
  Cell Broadcast Service                                              com.google.android.cellbroadcastservice                             false    true
  Certificate Installer                                               com.android.certinstaller                                           false    true
  Chrome                                                              com.android.chrome                                                  false    true
  Cinnamon                                                            com.android.theme.color.cinnamon                                    false    true
  Circular                                                            com.android.theme.icon_pack.circular.themepicker                    false    true
  Circular                                                            com.android.theme.icon_pack.circular.settings                       false    true
  Circular                                                            com.android.theme.icon_pack.circular.systemui                       false    true
  Circular                                                            com.android.theme.icon_pack.circular.launcher                       false    true
  Circular                                                            com.android.theme.icon_pack.circular.android                        false    true
  Clock                                                               com.google.android.deskclock                                        false    true
  Companion Device Manager                                            com.android.companiondevicemanager                                  false    true
  ConfigUpdater                                                       com.google.android.configupdater                                    false    true
  Contacts                                                            com.android.contacts                                                false    true
  Contacts Storage                                                    com.android.providers.contacts                                      false    true
  Corner cutout                                                       com.android.internal.display.cutout.emulation.corner                false    true
  Data Transfer Tool                                                  com.google.android.apps.pixelmigrate                                false    true
  Default Print Service                                               com.android.bips                                                    false    true
  Digital Wellbeing                                                   com.google.android.apps.wellbeing                                   false    true
  Double cutout                                                       com.android.internal.display.cutout.emulation.double                false    true
  Download Manager                                                    com.android.providers.downloads                                     false    true
  Downloads                                                           com.android.providers.downloads.ui                                  false    true
  Drive                                                               com.google.android.apps.docs                                        false    true
  Duo                                                                 com.google.android.apps.tachyon                                     false    true
  Dynamic System Updates                                              com.android.dynsystem                                               false    true
  Emergency information                                               com.android.emergency                                               false    true
  Emu01 display cutout                                                com.android.internal.display.cutout.emulation.emu01                 false    true
  Emulator Multi Display Provider                                     com.android.emulator.multidisplay                                   false    true
  External Storage                                                    com.android.externalstorage                                         false    true
  Files                                                               com.google.android.documentsui                                      false    true
  Filled                                                              com.android.theme.icon_pack.filled.settings                         false    true
  Filled                                                              com.android.theme.icon_pack.filled.systemui                         false    true
  Filled                                                              com.android.theme.icon_pack.filled.android                          false    true
  Filled                                                              com.android.theme.icon_pack.filled.launcher                         false    true
  Filled                                                              com.android.theme.icon_pack.filled.themepicker                      false    true
  Flappy Bird                                                         com.dotgears.flappybird                                             true     false
  Fused Location                                                      com.android.location.fused                                          false    true
  Gboard                                                              com.google.android.inputmethod.latin                                false    true
  Gestural Navigation Bar                                             com.android.internal.systemui.navbar.gestural_wide_back             false    true
  Gestural Navigation Bar                                             com.android.internal.systemui.navbar.gestural_extra_wide_back       false    true
  Gestural Navigation Bar                                             com.android.internal.systemui.navbar.gestural                       false    true
  Gestural Navigation Bar                                             com.android.internal.systemui.navbar.gestural_narrow_back           false    true
  Gmail                                                               com.google.android.gm                                               false    true
  Google                                                              com.google.android.googlequicksearchbox                             false    true
  Google Contacts Sync                                                com.google.android.syncadapters.contacts                            false    true
  Google One Time Init                                                com.google.android.onetimeinitializer                               false    true
  Google Partner Setup                                                com.google.android.partnersetup                                     false    true
  Google Play Movies & TV                                             com.google.android.videos                                           false    true
  Google Play Store                                                   com.android.vending                                                 false    true
  Google Play services                                                com.google.android.gms                                              false    true
  Google Services Framework                                           com.google.android.gsf                                              false    true
  Google Text-to-speech Engine                                        com.google.android.tts                                              false    true
  Google Wallpaper Images                                             com.google.android.apps.wallpaper.nexus                             false    true
  Green                                                               com.android.theme.color.green                                       false    true
  HTML Viewer                                                         com.android.htmlviewer                                              false    true
  Input Devices                                                       com.android.inputdevices                                            false    true
  Intent Filter Verification Service                                  com.android.statementservice                                        false    true
  Key Chain                                                           com.android.keychain                                                false    true
  Live Wallpaper Picker                                               com.android.wallpaper.livepicker                                    false    true
  MTP Host                                                            com.android.mtp                                                     false    true
  Main components                                                     com.google.android.modulemetadata                                   false    true
  Maps                                                                com.google.android.apps.maps                                        false    true
  Market Feedback Agent                                               com.google.android.feedback                                         false    true
  Markup                                                              com.google.android.markup                                           false    true
  Media Storage                                                       com.google.android.providers.media.module                           false    true
  Messages                                                            com.google.android.apps.messaging                                   false    true
  Mi Idea                                                             com.abosch.miidea                                                   false    false
  MmsService                                                          com.android.mms.service                                             false    true
  MusicFX                                                             com.android.musicfx                                                 false    true
  Network manager                                                     com.google.android.networkstack                                     false    true
  Nfc Service                                                         com.android.nfc                                                     false    true
  Noto Serif / Source Sans Pro                                        com.android.theme.font.notoserifsource                              false    true
  Ocean                                                               com.android.theme.color.ocean                                       false    true
  Orchid                                                              com.android.theme.color.orchid                                      false    true
  OsuLogin                                                            com.google.android.hotspot2.osulogin                                false    true
  PacProcessor                                                        com.android.pacprocessor                                            false    true
  Package installer                                                   com.google.android.packageinstaller                                 false    true
  Pebble                                                              com.android.theme.icon.pebble                                       false    true
  Permission controller                                               com.google.android.permissioncontroller                             false    true
  Phone                                                               com.android.dialer                                                  false    true
  Phone Services                                                      com.android.phone                                                   false    true
  Phone and Messaging Storage                                         com.android.providers.telephony                                     false    true
  Photos                                                              com.google.android.apps.photos                                      false    true
  Pixel Launcher                                                      com.google.android.apps.nexuslauncher                               false    true
  Pixel Wallpapers 18                                                 com.breel.wallpapers18                                              false    true
  Presence                                                            com.android.service.ims.presence                                    false    true
  Print Service Recommendation Service                                com.google.android.printservice.recommendation                      false    true
  Print Spooler                                                       com.android.printspooler                                            false    true
  ProxyHandler                                                        com.android.proxyhandler                                            false    true
  Punch Hole cutout                                                   com.android.internal.display.cutout.emulation.hole                  false    true
  Purple                                                              com.android.theme.color.purple                                      false    true
  Rounded                                                             com.android.theme.icon_pack.rounded.systemui                        false    true
  Rounded                                                             com.android.theme.icon_pack.rounded.android                         false    true
  Rounded                                                             com.android.theme.icon_pack.rounded.launcher                        false    true
  Rounded                                                             com.android.theme.icon_pack.rounded.themepicker                     false    true
  Rounded                                                             com.android.theme.icon_pack.rounded.settings                        false    true
  Rounded Rectangle                                                   com.android.theme.icon.roundedrect                                  false    true
  SIM Toolkit                                                         com.android.stk                                                     false    true
  Safety & regulatory manual                                          com.android.safetyregulatoryinfo                                    false    true
  SecureElementApplication                                            com.android.se                                                      false    true
  Settings                                                            com.android.settings                                                false    true
  Settings Storage                                                    com.android.providers.settings                                      false    true
  Settings Suggestions                                                com.android.settings.intelligence                                   false    true
  Shell                                                               com.android.shell                                                   false    true
  Sim App Dialog                                                      com.android.simappdialog                                            false    true
  Sounds                                                              com.google.android.soundpicker                                      false    true
  Sounds                                                              com.android.soundpicker                                             false    true
  Space                                                               com.android.theme.color.space                                       false    true
  Squircle                                                            com.android.theme.icon.squircle                                     false    true
  Storage Manager                                                     com.android.storagemanager                                          false    true
  Styles & wallpapers                                                 com.google.android.apps.wallpaper                                   false    true
  Support components                                                  com.google.mainline.telemetry                                       false    true
  System Tracing                                                      com.android.traceur                                                 false    true
  System UI                                                           com.android.systemui                                                false    true
  System Wi-Fi Resources                                              com.google.android.wifi.resources                                   false    true
  Tags                                                                com.google.android.tag                                              false    true
  Tall cutout                                                         com.android.internal.display.cutout.emulation.tall                  false    true
  Tapered Rect                                                        com.android.theme.icon.taperedrect                                  false    true
  Teardrop                                                            com.android.theme.icon.teardrop                                     false    true
  Tethering                                                           com.google.android.networkstack.tethering                           false    true
  Time Zone Updater                                                   com.android.timezone.updater                                        false    true
  User Dictionary                                                     com.android.providers.userdictionary                                false    true
  Vessel                                                              com.android.theme.icon.vessel                                       false    true
  VpnDialogs                                                          com.android.vpndialogs                                              false    true
  Waterfall cutout                                                    com.android.internal.display.cutout.emulation.waterfall             false    true
  WebView Shell                                                       org.chromium.webview_shell                                          false    true
  Wireless emergency alerts                                           com.google.android.cellbroadcastreceiver                            false    true
  Work Setup                                                          com.android.managedprovisioning                                     false    true
  YouTube                                                             com.google.android.youtube                                          false    true
  YouTube Music                                                       com.google.android.apps.youtube.music                               false    true
  android.auto_generated_rro_product__                                android.auto_generated_rro_product__                                false    true
  com.android.backupconfirm                                           com.android.backupconfirm                                           false    true
  com.android.bips.auto_generated_rro_product__                       com.android.bips.auto_generated_rro_product__                       false    true
  com.android.carrierconfig                                           com.android.carrierconfig                                           false    true
  com.android.carrierconfig.auto_generated_rro_product__              com.android.carrierconfig.auto_generated_rro_product__              false    true
  com.android.cellbroadcastreceiver                                   com.android.cellbroadcastreceiver                                   false    true
  com.android.cts.ctsshim                                             com.android.cts.ctsshim                                             false    true
  com.android.cts.priv.ctsshim                                        com.android.cts.priv.ctsshim                                        false    true
  com.android.emulator.radio.config                                   com.android.emulator.radio.config                                   false    true
  com.android.localtransport                                          com.android.localtransport                                          false    true
  com.android.managedprovisioning.auto_generated_rro_product__        com.android.managedprovisioning.auto_generated_rro_product__        false    true
  com.android.nfc.auto_generated_rro_product__                        com.android.nfc.auto_generated_rro_product__                        false    true
  com.android.ons                                                     com.android.ons                                                     false    true
  com.android.phone.auto_generated_rro_product__                      com.android.phone.auto_generated_rro_product__                      false    true
  com.android.providers.contacts.auto_generated_rro_product__         com.android.providers.contacts.auto_generated_rro_product__         false    true
  com.android.providers.media                                         com.android.providers.media                                         false    true
  com.android.providers.partnerbookmarks                              com.android.providers.partnerbookmarks                              false    true
  com.android.providers.settings.auto_generated_rro_product__         com.android.providers.settings.auto_generated_rro_product__         false    true
  com.android.providers.telephony.auto_generated_rro_product__        com.android.providers.telephony.auto_generated_rro_product__        false    true
  com.android.server.NetworkPermissionConfig                          com.google.android.networkstack.permissionconfig                    false    true
  com.android.server.telecom.auto_generated_rro_product__             com.android.server.telecom.auto_generated_rro_product__             false    true
  com.android.service.ims.RcsServiceApp                               com.android.service.ims                                             false    true
  com.android.settings.auto_generated_rro_product__                   com.android.settings.auto_generated_rro_product__                   false    true
  com.android.sharedstoragebackup                                     com.android.sharedstoragebackup                                     false    true
  com.android.simappdialog.auto_generated_rro_product__               com.android.simappdialog.auto_generated_rro_product__               false    true
  com.android.systemui.auto_generated_rro_product__                   com.android.systemui.auto_generated_rro_product__                   false    true
  com.android.systemui.plugin.globalactions.wallet                    com.android.systemui.plugin.globalactions.wallet                    false    true
  com.android.wallpaperbackup                                         com.android.wallpaperbackup                                         false    true
  com.google.android.apps.nexuslauncher.auto_generated_rro_product__  com.google.android.apps.nexuslauncher.auto_generated_rro_product__  false    true
  com.google.android.networkstack.tethering.emulator                  com.google.android.networkstack.tethering.emulator                  false    true
  com.google.android.overlay.emulatorconfig                           com.google.android.overlay.emulatorconfig                           false    true
  com.google.android.overlay.googleconfig                             com.google.android.overlay.googleconfig                             false    true
  com.google.android.overlay.googlewebview                            com.google.android.overlay.googlewebview                            false    true
  com.google.android.overlay.permissioncontroller                     com.google.android.overlay.permissioncontroller                     false    true
  com.google.android.overlay.pixelconfigcommon                        com.google.android.overlay.pixelconfigcommon                        false    true
  com.google.android.sdksetup                                         com.google.android.sdksetup                                         false    true

meterpreter >