This commit is contained in:
Nebula committed 2022-10-04 22:03:49 -04:00
1 parent 0b838e901e
commit b7451f5b00
1 file changed
+4 -5
+4 -5
View File
@@ -561,7 +561,7 @@ if [ $1 = '--tweaks' ] && [ ! -f "tweaksinstalled" ]; then
fi
echo "[!] If asked for a password, enter 'alpine'."
# ssh into device and copy over the preptweaks.sh script from the binaries folder
"$dir"/sshpass -p 'alpine' scp -P2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET binaries/preptweaks.sh mobile@localhost:~/preptweaks.sh
scp -P2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET binaries/preptweaks.sh mobile@localhost:~/preptweaks.sh
# run the preptweaks.sh script as root
"$dir"/sshpass -p 'alpine' ssh -p2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET mobile@localhost "echo 'alpine' | sudo -S sh ~/preptweaks.sh"
# now tell the user to install preferenceloader from bigboss repo and newterm2
@@ -582,20 +582,19 @@ if [ -f "tweaksinstalled" ]; then
# run postboot.sh script
if [[ "$@" == *"--safe-mode"* ]]; then
if [ -f binaries/postbootnosub.sh ]; then
echo "[*] Running postboot without Subsitute"
echo "[*] Running postboot without Substitute"
"$dir"/iproxy 2222 22 &
"$dir"/sshpass -p 'alpine' scp -P2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET binaries/postboot.sh mobile@localhost:~/postbootnosub.sh
scp -P2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET binaries/postboot.sh mobile@localhost:~/postbootnosub.sh
"$dir"/sshpass -p 'alpine' ssh -p2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET mobile@localhost "echo 'alpine' | sudo -S sh ~/postbootnosub.sh"
fi
else
if [ -f binaries/postboot.sh ]; then
echo "[*] Running postboot"
"$dir"/iproxy 2222 22 &
"$dir"/sshpass -p 'alpine' scp -P2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET binaries/postboot.sh mobile@localhost:~/postboot.sh
scp -P2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET binaries/postboot.sh mobile@localhost:~/postboot.sh
"$dir"/sshpass -p 'alpine' ssh -p2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET mobile@localhost "echo 'alpine' | sudo -S sh ~/postboot.sh"
fi
fi
# if known hosts file exists, delete it
if [ -f ~/.ssh/known_hosts ]; then