Last active
July 28, 2020 08:44
-
-
Save strukturart/3c6ed4cf3d987b751a1e9d2da776ff67 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Author: perry | |
#sendsms script by speeduploop | |
HORIZONTALLINE="=================================" | |
clear | |
cat << "EOF" | |
. . .'. \ / | |
\ / .'. .' '.' ' -= o =- | |
-= o =- .' ' / | \ | |
/ | \ | | |
| | | |
| | | |
| .=====| | |
|=====. |.---.| | |
|.---.| ||=o=|| | |
||=o=|| || || | |
|| || || || | |
|| || ||___|| | |
||___|| |[:::]| | |
jgs |[:::]| '-----' | |
'-----' | |
EOF | |
echo -e "\n$HORIZONTALLINE" | |
echo "KaiOs Cli" | |
echo $HORIZONTALLINE | |
echo "1) reboot device" | |
echo "2) send sms" | |
echo "3) backup sms" | |
echo "4) exit" | |
echo $HORIZONTALLINE | |
read -p "Type the option you select: " choice | |
case $choice in | |
1) | |
adb shell reboot | |
exec bash | |
;; | |
2) | |
read -p "Number: " number | |
read -p "Text: " text | |
adb shell sendsms $number text | |
exec bash | |
;; | |
3) | |
adb cp /data/local/storage/permanent/chrome/idb/226660312ssm.sqlite | |
;; | |
4) | |
exit | |
;; | |
esac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
if [ "$#" -ne 2 ]; then | |
echo | |
echo "----------- sendsms by speeduploop -----------" | |
echo "- simple script to send sms from commandline -" | |
echo "----------------------------------------------" | |
echo "usage : sendsms <number> <message>" | |
echo "examples:" | |
echo -e " sendsms 01239878765 'hallo welt!!!'" | |
echo -e " sendsms '01239878765' hallo\ welt!!!" | |
echo -e " sendsms '01239878765' 'hallo welt!!!'" | |
echo -e " sendsms +491239878765 'hallo\\\nwelt!!!'" | |
echo | |
exit 1 | |
fi | |
echo -ne "\e" > /dev/smd8 | |
echo -ne "at+cmgf=1\r\n" > /dev/smd8 | |
echo -ne "at+cmgs=\"$1\"\r\n" > /dev/smd8 | |
echo -ne "$2\x1a" > /dev/smd8 | |
sleep 1 | |
echo -ne "at+cmgf=0\r\n" > /dev/smd8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment