https://github.com/mrmtwoj/command
https://github.com/mrmtwoj/command
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrmtwoj/command
- Owner: mrmtwoj
- Created: 2023-02-11T12:43:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-11T12:44:24.000Z (over 3 years ago)
- Last Synced: 2025-07-21T10:52:16.764Z (12 months ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
``` bash
ADB
adb start-server
adb kill-server
adb devices
adb logcat
adb logcat -d > [path to file]
adb logcat -d | grep README.rst
adb logcat -c
adb logcat packagename:[priority level: V, D, I, W, E, F, S]
adb bugreport > [path_to_file]
Will dump the whole device information like dumpstate, dumpsys and logcat output.
adb pull [device file location] [local file location]
adb push [local file location] [device file location]
adb shell screencap -p /sdcard/screenshot.png
adb shell screenrecord /sdcard/NotAbleToLogin.mp4
stop = ctrl+c
adb install com.myAppPackage
adb -s [device serial] install com.myAppPackage
adb -r install com.myAppPackage
Very important command! The parameter -r means re-install the app and keep its data on the device. Executing this command is simulating the app update process from an older to the latest version of your app. Make sure the current live version is installed on the test device and then install the release candidate with the option -r. Check for problems after simulating the update process.
adb devices | tail -n +2 | cut -sf 1 | xargs -IX adb -s X install -r com.myAppPackage
adb uninstall com.myAppPackage
adb devices | tail -n +2 | cut -sf 1 | xargs -IX adb -s X uninstall com.myAppPackage
adb shell am start -a android.intent.action.VIEW
adb shell am start -a android.intent.action.VIEW http://www.stackoverflow.com
adb shell am start -t image/* -a android.intent.action.VIEW
adb backup -all -f /tmp/backup.ab
adb restore /tmp/backup.ab
adb reboot-bootloader
adb reboot recovery
https://developer.android.com/studio/command-line/adb#shellcommands
BusyBox
adb shell svc wifi enable
adb shell ip link show wlan0 | busybox awk '/ether/ {print $2}'
adb shell svc wifi disable
Standard Android Tools
pm list permission-groups
pm list permissions -g group
pm list features
pm list libraries
all supported libraries
pm list packages -3
pm list packages -s
pm clear [package name]
pm set-install-location [0 1 2]
pm path [package name]
pm grant [package_name] [permission]
pm revoke [package_name] [permission]
pm trim-caches desired_free_space
pm remove-user [user-id]
Drozer
Starting a session
adb forward tcp:31415 tcp:31415
drozer console connect
drozer console connect --server
List modules
ls
ls activity
Retrieving package information
run app.package.list -f
run app.package.info -a
Identifying the attack surface
run app.package.attacksurface
Exploiting Activities
run app.activity.info -a -u
run app.activity.start --component
run app.activity.start --component --extra
Exploiting Content Provider
run app.provider.info -a
run scanner.provider.finduris -a
run app.provider.query
run app.provider.update --selection
run scanner.provider.sqltables -a
run scanner.provider.injection -a
run scanner.provider.traversal -a
Exploiting Broadcast Receivers
run app.broadcast.info -a
run app.broadcast.send --component --extra
run app.broadcast.sniff --action
Exploiting Service
run app.service.info -a
run app.service.start --action --component
run app.service.send --msg --extra --bundle-as-obj
```