Module: Rex::Post::Meterpreter::Extensions::Android

Included in:
Ui::Console::CommandDispatcher::Android
Defined in:
lib/rex/post/meterpreter/extensions/android/tlv.rb,
lib/rex/post/meterpreter/extensions/android/android.rb,
lib/rex/post/meterpreter/extensions/android/command_ids.rb

Defined Under Namespace

Classes: Android

Constant Summary collapse

TLV_TYPE_SMS_ADDRESS =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9001)
TLV_TYPE_SMS_BODY =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9002)
TLV_TYPE_SMS_TYPE =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9003)
TLV_TYPE_SMS_GROUP =
TLV_META_TYPE_GROUP     | (TLV_EXTENSIONS + 9004)
TLV_TYPE_SMS_STATUS =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9005)
TLV_TYPE_SMS_DATE =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9006)
TLV_TYPE_CONTACT_GROUP =
TLV_META_TYPE_GROUP     | (TLV_EXTENSIONS + 9007)
TLV_TYPE_CONTACT_NUMBER =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9008)
TLV_TYPE_CONTACT_EMAIL =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9009)
TLV_TYPE_CONTACT_NAME =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9010)
TLV_TYPE_GEO_LAT =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9011)
TLV_TYPE_GEO_LONG =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9012)
TLV_TYPE_CALLLOG_NAME =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9013)
TLV_TYPE_CALLLOG_TYPE =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9014)
TLV_TYPE_CALLLOG_DATE =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9015)
TLV_TYPE_CALLLOG_DURATION =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9016)
TLV_TYPE_CALLLOG_GROUP =
TLV_META_TYPE_GROUP     | (TLV_EXTENSIONS + 9017)
TLV_TYPE_CALLLOG_NUMBER =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9018)
TLV_TYPE_CHECK_ROOT_BOOL =
TLV_META_TYPE_BOOL      | (TLV_EXTENSIONS + 9019)
TLV_TYPE_SHUTDOWN_TIMER =
TLV_META_TYPE_UINT      | (TLV_EXTENSIONS + 9020)
TLV_TYPE_SMS_SR =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9021)
TLV_TYPE_WLAN_GROUP =
TLV_META_TYPE_GROUP     | (TLV_EXTENSIONS + 9022)
TLV_TYPE_WLAN_BSSID =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9023)
TLV_TYPE_WLAN_SSID =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9024)
TLV_TYPE_WLAN_LEVEL =
TLV_META_TYPE_UINT      | (TLV_EXTENSIONS + 9025)
TLV_TYPE_SMS_DR =
TLV_META_TYPE_BOOL      | (TLV_EXTENSIONS + 9026)
TLV_TYPE_COLLECT_TYPE =
TLV_META_TYPE_UINT      | (TLV_EXTENSIONS + 9050)
TLV_TYPE_COLLECT_ACTION =
TLV_META_TYPE_UINT      | (TLV_EXTENSIONS + 9051)
TLV_TYPE_COLLECT_TIMEOUT =
TLV_META_TYPE_UINT      | (TLV_EXTENSIONS + 9052)
TLV_TYPE_COLLECT_RESULT_GROUP =
TLV_META_TYPE_GROUP     | (TLV_EXTENSIONS + 9053)
TLV_TYPE_COLLECT_RESULT_TIMESTAMP =
TLV_META_TYPE_QWORD     | (TLV_EXTENSIONS + 9054)
TLV_TYPE_COLLECT_RESULT_WIFI =

Reuse existing IDs for these

TLV_TYPE_WLAN_GROUP
TLV_TYPE_COLLECT_RESULT_WIFI_BSSID =
TLV_TYPE_WLAN_BSSID
TLV_TYPE_COLLECT_RESULT_WIFI_SSID =
TLV_TYPE_WLAN_SSID
TLV_TYPE_COLLECT_RESULT_WIFI_LEVEL =
TLV_TYPE_WLAN_LEVEL
TLV_TYPE_COLLECT_RESULT_GEO =
TLV_META_TYPE_GROUP     | (TLV_EXTENSIONS + 9030)
TLV_TYPE_COLLECT_RESULT_CELL =
TLV_META_TYPE_GROUP     | (TLV_EXTENSIONS + 9060)
TLV_TYPE_CELL_ACTIVE_GSM =
TLV_META_TYPE_GROUP     | (TLV_EXTENSIONS + 9061)
TLV_TYPE_CELL_ACTIVE_CDMA =
TLV_META_TYPE_GROUP     | (TLV_EXTENSIONS + 9062)
TLV_TYPE_CELL_NEIGHBOR =
TLV_META_TYPE_GROUP     | (TLV_EXTENSIONS + 9063)
TLV_TYPE_CELL_NET_TYPE =
TLV_META_TYPE_UINT      | (TLV_EXTENSIONS + 9065)
TLV_TYPE_CELL_CID =
TLV_META_TYPE_UINT      | (TLV_EXTENSIONS + 9066)
TLV_TYPE_CELL_LAC =
TLV_META_TYPE_UINT      | (TLV_EXTENSIONS + 9067)
TLV_TYPE_CELL_PSC =
TLV_META_TYPE_UINT      | (TLV_EXTENSIONS + 9068)
TLV_TYPE_CELL_RSSI =
TLV_META_TYPE_UINT      | (TLV_EXTENSIONS + 9069)
TLV_TYPE_CELL_BASE_ID =
TLV_META_TYPE_UINT      | (TLV_EXTENSIONS + 9070)
TLV_TYPE_CELL_BASE_LAT =
TLV_META_TYPE_UINT      | (TLV_EXTENSIONS + 9071)
TLV_TYPE_CELL_BASE_LONG =
TLV_META_TYPE_UINT      | (TLV_EXTENSIONS + 9072)
TLV_TYPE_CELL_NET_ID =
TLV_META_TYPE_UINT      | (TLV_EXTENSIONS + 9073)
TLV_TYPE_CELL_SYSTEM_ID =
TLV_META_TYPE_UINT      | (TLV_EXTENSIONS + 9074)
TLV_TYPE_AUDIO_MODE =
TLV_META_TYPE_UINT      | (TLV_EXTENSIONS + 9075)
TLV_TYPE_URI_STRING =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9101)
TLV_TYPE_ACTIVITY_START_RESULT =
TLV_META_TYPE_BOOL      | (TLV_EXTENSIONS + 9102)
TLV_TYPE_ACTIVITY_START_ERROR =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9103)
TLV_TYPE_ICON_NAME =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9104)
TLV_TYPE_SQLITE_RESULT_GROUP =
TLV_META_TYPE_GROUP     | (TLV_EXTENSIONS + 9080)
TLV_TYPE_SQLITE_NAME =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9081)
TLV_TYPE_SQLITE_QUERY =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9082)
TLV_TYPE_SQLITE_RESULT_COLS =
TLV_META_TYPE_GROUP     | (TLV_EXTENSIONS + 9083)
TLV_TYPE_SQLITE_RESULT_ROW =
TLV_META_TYPE_GROUP     | (TLV_EXTENSIONS + 9084)
TLV_TYPE_SQLITE_VALUE =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9085)
TLV_TYPE_SQLITE_ERROR =
TLV_META_TYPE_STRING    | (TLV_EXTENSIONS + 9086)
TLV_TYPE_SQLITE_WRITE =
TLV_META_TYPE_BOOL      | (TLV_EXTENSIONS + 9087)
TLV_TYPE_WALLPAPER_DATA =
TLV_META_TYPE_RAW       | (TLV_EXTENSIONS + 9201)
EXTENSION_ID_ANDROID =

ID for the extension (needs to be a multiple of 1000)

5000
COMMAND_ID_ANDROID_ACTIVITY_START =

Associated command ids

EXTENSION_ID_ANDROID + 1
COMMAND_ID_ANDROID_CHECK_ROOT =
EXTENSION_ID_ANDROID + 2
COMMAND_ID_ANDROID_DEVICE_SHUTDOWN =
EXTENSION_ID_ANDROID + 3
COMMAND_ID_ANDROID_DUMP_CALLLOG =
EXTENSION_ID_ANDROID + 4
COMMAND_ID_ANDROID_DUMP_CONTACTS =
EXTENSION_ID_ANDROID + 5
COMMAND_ID_ANDROID_DUMP_SMS =
EXTENSION_ID_ANDROID + 6
COMMAND_ID_ANDROID_GEOLOCATE =
EXTENSION_ID_ANDROID + 7
COMMAND_ID_ANDROID_HIDE_APP_ICON =
EXTENSION_ID_ANDROID + 8
COMMAND_ID_ANDROID_INTERVAL_COLLECT =
EXTENSION_ID_ANDROID + 9
COMMAND_ID_ANDROID_SEND_SMS =
EXTENSION_ID_ANDROID + 10
COMMAND_ID_ANDROID_SET_AUDIO_MODE =
EXTENSION_ID_ANDROID + 11
COMMAND_ID_ANDROID_SET_WALLPAPER =
EXTENSION_ID_ANDROID + 12
COMMAND_ID_ANDROID_SQLITE_QUERY =
EXTENSION_ID_ANDROID + 13
COMMAND_ID_ANDROID_WAKELOCK =
EXTENSION_ID_ANDROID + 14
COMMAND_ID_ANDROID_WLAN_GEOLOCATE =
EXTENSION_ID_ANDROID + 15