mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-30 01:19:58 -07:00
Add tools for launching a root shell on the device, and for sending serial commands to the device. Extend the make.sh script to push those and configure a root shell. Commands can now be executed as root via: adb shell rootshell -c \"touch /tmp/test\" allowing automatic configuration of the tooling.
12 lines
647 B
Bash
Executable File
12 lines
647 B
Bash
Executable File
cargo build
|
|
# Force a switch into the debug mode to enable ADB
|
|
target/x86_64-unknown-linux-gnu/debug/serial AT
|
|
adb push target/armv7-unknown-linux-gnueabihf/debug/rootshell /tmp/
|
|
target/x86_64-unknown-linux-gnu/debug/serial "AT+SYSCMD=mv /tmp/rootshell /bin/rootshell"
|
|
sleep 1
|
|
target/x86_64-unknown-linux-gnu/debug/serial "AT+SYSCMD=chown root /bin/rootshell"
|
|
sleep 1
|
|
target/x86_64-unknown-linux-gnu/debug/serial "AT+SYSCMD=chmod 4755 /bin/rootshell"
|
|
adb push target/armv7-unknown-linux-gnueabihf/debug/wavehunter /data/wavehunter/wavehunter
|
|
adb push target/armv7-unknown-linux-gnueabihf/debug/wavehunter-reader /data/wavehunter/wavehunter-reader
|