mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-06-06 13:11:53 -07:00
update installer
This commit is contained in:
+12
-7
@@ -1,8 +1,13 @@
|
|||||||
|
cd serial
|
||||||
|
cargo build_pc
|
||||||
|
cd ..
|
||||||
|
cd rootshell
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
cd ..
|
||||||
# Force a switch into the debug mode to enable ADB
|
# Force a switch into the debug mode to enable ADB
|
||||||
target/x86_64-unknown-linux-gnu/release/serial AT
|
target/x86_64-unknown-linux-gnu/debug/serial AT
|
||||||
echo -n "device rooted, waiting for reboot"
|
echo -n "device rooted, waiting for reboot"
|
||||||
until adb shell true
|
until adb shell true 2> /dev/null
|
||||||
do
|
do
|
||||||
echo -n .
|
echo -n .
|
||||||
sleep 1
|
sleep 1
|
||||||
@@ -10,11 +15,11 @@ done
|
|||||||
echo
|
echo
|
||||||
echo "it's alive!"
|
echo "it's alive!"
|
||||||
adb push target/armv7-unknown-linux-gnueabihf/release/rootshell /tmp/
|
adb push target/armv7-unknown-linux-gnueabihf/release/rootshell /tmp/
|
||||||
target/x86_64-unknown-linux-gnu/release/serial "AT+SYSCMD=mv /tmp/rootshell /bin/rootshell"
|
target/x86_64-unknown-linux-gnu/debug/serial "AT+SYSCMD=mv /tmp/rootshell /bin/rootshell"
|
||||||
sleep 1
|
sleep 1
|
||||||
target/x86_64-unknown-linux-gnu/release/serial "AT+SYSCMD=chown root /bin/rootshell"
|
target/x86_64-unknown-linux-gnu/debug/serial "AT+SYSCMD=chown root /bin/rootshell"
|
||||||
sleep 1
|
sleep 1
|
||||||
target/x86_64-unknown-linux-gnu/release/serial "AT+SYSCMD=chmod 4755 /bin/rootshell"
|
target/x86_64-unknown-linux-gnu/debug/serial "AT+SYSCMD=chmod 4755 /bin/rootshell"
|
||||||
echo "we have root!"
|
echo "we have root!"
|
||||||
adb shell id
|
adb shell /bin/rootshell -c id
|
||||||
adb push target/armv7-unknown-linux-gnueabihf/release/rayhunter /data/rayhunter/rayhunter
|
./make.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user