Advanced Search
Search Results
5 total results found
Cheat sheet
Basic commands Command Example Comment re re re wr Read the registers Write to registers b b 0x00000076cb964ed0 b libc.so`sendto breakpoint set -s libc.so -n send setting up a breakpoint watchpoint `w s e -s 1...
Get Foreground Activity
inside a .bat file: @adb shell "dumpsys activity activities | grep ResumedActivity"@adb shell "dumpsys activity | grep mCurrentFocus"@adb shell "dumpsys activity top | grep 'ACTIVITY' | tail -n 1"
LLDB Initialization
Example of a script to run LLDB on remote android server, receives an argument - process name (can also be package name) @echo ========Pushing lldb-server to target========@adb push <PATH_TO: lldb-server>@adb shell "ls -al /data/local/tmp/lldb-server"@adb s...
Using FOR command to extract PID from TASKLIST
Put this in a .bat file, and you could use it like that:BAT_FILE.bat <PROCESS_NAME> <COMMAND> for /F "tokens=2,* delims=, " %%i IN ('tasklist ^| findstr %1') DO <MY_COMMAND> %%i %2 This is useful when writing an injector, and looking to inject to a s...
Run tcpdump and forward to wireshark
From a linux (WSL) host adb shell su -c "tcpdump -U -w - " | "C:\Program Files\Wireshark\Wireshark.exe" -k -i - From a windows machine, SSH to a WSL host, which is connected to the Android Phone plink -ssh -l <USER> -pw "<PASSWORD>" -batch <HOST> "a...