├── .notify ├── .version ├── README.md ├── Run.sh ├── send.py └── send.sh /.notify: -------------------------------------------------------------------------------- 1 | Anon-SMS Has Been OpenSourced !!! 2 | If you like the work Tip us Using Brave Browser. 3 | Join Telegram Discussion https://t.me/itzAnonSMS 4 | SMS Services are Disabled for Regions Including INDIA. 5 | It would be Restored Soon. 6 | -------------------------------------------------------------------------------- /.version: -------------------------------------------------------------------------------- 1 | v1.46 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

Anon-SMS v1.4

2 |

Anonymous Message Sender for Linux And Termux.


3 | 4 | ## Updates: 5 | **v1.0**
6 | [+] Basic Features
7 | [+] Non-Colourful Interface.

8 | **v1.1**
9 | [+] Adding Colours.

10 | **v1.2**
11 | [+] Fixing Colour Issues
12 | [+] Adding Tracking Feature.

13 | **v1.3**
14 | [+] Adding Lolcat To Make More Colourful Start.

15 | **v1.4**
16 | [+] Adding Auto-Update Feature.
17 | [+] Adding Telegram Discussion.
18 | 19 | ## Note: 20 | 21 | - The script requires working network connection to work. 22 | - No balance will be deducted for using this script to send SMS. 23 | - Don't put spaces in between phone number (Ex- 99999 99999) 24 | - Make sure you are using the latest version of Anon-SMS 25 | - Make sure you are using Python v3. 26 | 27 | Here's how you can check it. Type this command in your terminal. 28 | ``` 29 | $ python -V 30 | ``` 31 | If output looks like `Python 3` or above - Congrats, Python 3 is installed properly. 32 | 33 | - Do not use this to harm others. 34 | - This script is only for educational purposes or to prank. 35 | - **None of the developers/contributors are responsible for the misuse of Anon-SMS.** 36 |
37 | 38 | ## Features: 39 | 40 | - This Is A Free Version. 41 | - Super-fast Mesage Sending. 42 | - International Message Sending available. 43 | - You Can Send Only One Message Per Day. 44 | - Messaging Anonymously. 45 | - Easy to use and embed in code. 46 | 47 | ## Usage: 48 | 49 | Run these commands to Send Anonymous Message 50 | 51 | ### > For Termux: 52 | 53 | **Notice:** 54 | 55 | git installation methods are not universal and do differ between distributions, 56 | so, installing git as per instructions below may not work. 57 | Please check out how to install `git` for your Linux distribution. 58 | Commands below provide instructions for Debian-based systems. 59 | 60 | To Send Messages Anonymously type the following commands in Termux: 61 | ``` 62 | pkg install git 63 | pkg install python 64 | git clone https://github.com/HACK3RY2J/Anon-SMS.git 65 | cd Anon-SMS 66 | bash Run.sh 67 | ``` 68 | 69 | ### > For Linux: 70 | 71 | **Notice:** 72 | 73 | git installation methods are not universal and do differ between distributions, 74 | so, installing git as per instructions below may not work. 75 | Please check out how to install `git` for your Linux distribution. 76 | Commands below provide instructions for Debian-based systems. 77 | 78 | To Send Message Anonymously type the following commands in Linux terminal: 79 | ``` 80 | sudo apt install git 81 | git clone https://github.com/HACK3RY2J/Anon-SMS.git 82 | cd Anon-SMS 83 | sudo bash Run.sh 84 | ``` 85 | ## CONTRIBUTORS: 86 | 87 | - **HACK3RY2J**
88 | [@] Mail At: HACK3RY2J@gmail.com 89 | 90 | # CONTACT ME: 91 | 92 | Feel Free To Open An Issue... 93 | 94 | ``` 95 | Mail: HACK3RY2J@gmail.com 96 | YouTube Channel: https://www.youtube.com/c/PandaHackers 97 | ``` 98 | 99 | Check Out Our YouTube Channel
100 | Check Out Our Telegram Discussion

101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /Run.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | clear 4 | echo -e "\e[4;31m Panda Hackers !!! \e[0m" 5 | echo -e "\e[1;32m Presents \e[0m" 6 | echo -e "\e[1;34m" 7 | [ `command -v figlet` ] && figlet -f slant Anon-SMS 8 | echo "Press Enter To Launch" 9 | read a1 10 | if [[ -s update.pandahackers ]];then 11 | echo "All Requirements Found...." 12 | else 13 | echo 'Installing Requirements....' 14 | echo . 15 | echo . 16 | apt install figlet toilet python3 curl ruby -y 17 | apt install python3-pip 18 | gem install lolcat 19 | echo This Tool Is Created By HACK3RY2J 20 | echo This Script Is Created By Panda Hackers HACK3RY2J >update.pandahackers 21 | echo Requirements Installed.... 22 | echo Press Enter To Continue... 23 | read upd 24 | fi 25 | while : 26 | do 27 | rm *.xxx >/dev/null 2>&1 28 | clear 29 | echo -e "\e[1;31m" 30 | figlet -f slant Anon-SMS | lolcat 31 | echo -e "\e[1;34m Created By \e[1;32m" #blue color 32 | toilet -f mono12 -F border PH | lolcat 33 | echo -e "\e[4;34mThis Tool Is Created By Panda Hackers \e[0m" #underline+blue 34 | echo -e "\e[1;34mFor Any Queries Mail Us!!!\e[0m" 35 | echo -e "\e[1;32m Mail: Hack3ry2j@gmail.com \e[0m" #yellow 36 | echo -e "\e[4;32mYouTube Page: https://youtube.com/c/PandaHackers/ \e[0m" #green 37 | echo -e "\e[1;34m Telegram: https://t.me/ItzAnonSMS \e[0m" 38 | echo " " 39 | echo -e "\e[4;31mRead Instruction Carefully !!! \e[0m" #red 40 | echo " " 41 | echo "Enter 1 To Run Anon-SMS " 42 | echo "Enter 2 To Track Anon-SMS " #white 43 | echo "Enter 3 To Update " 44 | echo "Enter 4 To Check Features " 45 | echo "Enter 5 To Exit " 46 | read ch 47 | if [ $ch -eq 1 ];then 48 | clear 49 | echo -e "\e[1;32m" 50 | rm *.xxx >/dev/null 2>&1 51 | python3 send.py 52 | rm *.xxx >/dev/null 2>&1 53 | exit 0 54 | elif [ $ch -eq 2 ];then 55 | clear 56 | echo -e "\e[1;32m" 57 | echo 'Track Anon-SMS'> call.xxx 58 | python3 send.py track 59 | rm *.xxx >/dev/null 2>&1 60 | exit 0 61 | elif [ $ch -eq 3 ];then 62 | clear 63 | apt install git -y 64 | echo -e "\e[1;34m Requesting Update From Source..." 65 | echo -e "\e[1;34m Request Attempt Successful.." 66 | echo -e "\e[1;34m Updating Now..." 67 | git clone https://github.com/HACK3RY2J/Anon-SMS.git 68 | if [[ -s Anon-SMS/Run.sh ]];then 69 | cd Anon-SMS 70 | cp -r -f * .. > temp 71 | cd .. 72 | rm -rf Anon-SMS >> temp 73 | rm update.pandahackers >> temp 74 | rm temp 75 | chmod +x Run.sh 76 | fi 77 | echo -e "\e[1;32m Anon-SMS Will Refresh Now..." 78 | echo -e "\e[1;32m All The Required Packages Have Been Installed..." 79 | echo -e "\e[1;34m Press Enter To Refresh..." 80 | read a6 81 | ./Run.sh 82 | exit 83 | elif [ $ch -eq 4 ];then 84 | clear 85 | echo -e "\e[1;33m" 86 | figlet -f slant Anon-SMS | lolcat 87 | echo -e "\e[1;34mCreated By \e[1;34m" #Blue Color 88 | toilet -f mono12 -F border PH | lolcat 89 | echo " " 90 | echo -e "\e[1;32m Features\e[1;34m" 91 | echo " Ultra-Fast-Smooth Sending" 92 | echo " International Sending" 93 | echo " Tracking " 94 | echo " Automatic Future Updates" 95 | echo " Easy To Use And Embed in Code" 96 | echo"" 97 | echo -e "\e[1;32m Contributors\e[1;33m" 98 | echo -e "\e[1;33m [*] Panda Hackers \e[1;31m" 99 | echo " [-] Mail At: pandahacker127@gmail.com" 100 | echo -e "\e[1;33m [*] Instagram \e[1;31m" 101 | echo " [-] Ping At: http://Instagram.com/" 102 | echo -e "\e[1;33m [*] Telegram \e[1;31m" 103 | echo " [-] Ping At: https://t.me/ItzAnonSMS/" 104 | echo -e "\e[1;33m [*] HACK3RY2J \e[1;31m" 105 | echo " [-] Mail At: HACK3RY2J@gmail.com" 106 | echo -e "\e[1;33m [*] HAOI \e[1;31m" 107 | echo " [-] Ping At: http://Instagram.com/haoi_hackers_Academy_of_India/" 108 | echo "" 109 | echo "" 110 | echo -e "\e[1;31m This is Only For Educational Purposes or To Prank.\e[0m" 111 | echo -e "\e[1;31m Do not Use This To Irritate Others. \e[0m" 112 | echo -e "\e[1;31m Do not Use This To Harm Others. \e[0m" 113 | echo -e "\e[1;31m We Are Not Responsible For The Misuse Of The Script. \e[0m" 114 | echo -e "\e[1;32m Update If Doesn't Work.\e[0m" 115 | echo " " 116 | echo -e "\e[4;31m That's All !!!\e[0m" 117 | echo -e "\e[1;34m For Any Queries Mail Us!!!\e[0m" 118 | echo -e "\e[1;32m Mail: HACK3RY2J@gmail.com \e[0m" 119 | echo -e "\e[1;32m Instagram: https://Instagram.com/ \e[0m" 120 | echo -e "\e[4;32mYouTube Page: https://www.youtube.com/c/PandaHackers \e[0m" 121 | echo "Press Enter To Return To Main Menu" 122 | read a3 123 | clear 124 | elif [ $ch -eq 5 ];then 125 | clear 126 | echo -e "\e[1;31m" 127 | figlet -f slant Anon-SMS | lolcat 128 | echo -e "\e[1;34m Created By \e[1;32m" 129 | toilet -f pagga -F border HACK3RY2J | lolcat 130 | echo -e "\e[1;34m For Any Queries Mail Us!!!\e[0m" 131 | echo -e "\e[1;32m Mail: HACK3RY2J@gmail.com \e[0m" 132 | echo -e "\e[1;32m Telegram: https://t.me/ItzAnonSMS \e[0m" 133 | echo -e "\e[4;32mYouTube Page: https://www.youtube.com/c/PandaHackers/ \e[0m" 134 | echo " " 135 | exit 0 136 | else 137 | echo -e "\e[4;32m Invalid Input Detected !!! \e[0m" 138 | echo "Press Enter To Return To Main Menu" 139 | read a3 140 | clear 141 | fi 142 | done 143 | -------------------------------------------------------------------------------- /send.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import threading 3 | import string 4 | import base64 5 | import urllib.request 6 | import urllib.parse 7 | import os 8 | import time 9 | import sys 10 | import random 11 | 12 | try: 13 | import requests 14 | except ImportError: 15 | print('Error !! : Some dependencies are not installed') 16 | print('Error Occured!!!\nUse Non-Supported Version') 17 | input('Press Any Key To Use Non-supported Version') 18 | os.system('bash send.sh --sendsms') 19 | 20 | # colors 21 | yellow='\033[93m' 22 | gren='\033[92m' 23 | cyan='\033[96m' 24 | pink='\033[95m' 25 | red='\033[91m' 26 | b='\033[1m' 27 | W = '\033[0m' 28 | colors = ['\033[1;31m', '\033[1;32m', '\033[1;33m', '\033[1;34m', '\033[1;35m', '\033[1;36m'] 29 | 30 | # The Credit For This Code Goes To Panda Hackers https://github.com/HACK3RY2J/ 31 | # And The Contributors Mentioned At https://github.com/HACK3RY2J/ANon-SMS/ 32 | # If You Wanna Take Credits, Please Look Yourself Again!! 33 | 34 | def clr(): 35 | if os.name == 'nt': 36 | os.system('cls') 37 | else: 38 | os.system('clear') 39 | 40 | def banner(): 41 | clr() 42 | logo = """ 43 | \033[0m████████████████████████████████████████████████████████████████████ 44 | \033[0m████\033[92m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\033[0m████ 45 | \033[0m██\033[92m▒▒\033[0m██ \033[93m___ _ ______ _ __ \033[94m ______ _______ \033[0m██\033[92m▒▒\033[0m██ 46 | \033[0m██ \033[92m▒▒\033[0m██ \033[93m/ _ | / |/ / __ \/ |/ /_\033[94m__/ __/ |/ / __/ \033[0m██\033[92m▒▒ \033[0m██ 47 | \033[0m██ \033[92m▒▒\033[0m██ \033[93m/ __ |/ / /_/ / /__\033[94m_/\ \/ /|_/ /\ \ \033[0m██\033[92m▒▒ \033[0m██ 48 | \033[0m██ \033[92m▒▒\033[0m██\033[93m/_/ |_/_/|_/\____/_/|_/ \033[94m/___/_/ /_/___/ \033[0m██\033[92m▒▒ \033[0m██ 49 | \033[0m██ \033[92m▒▒\033[0m██ \033[91mV1.4 \033[0m██\033[92m▒▒ \033[0m██ 50 | \033[0m██ \033[92m▒▒\033[0m████████████████████████████████████████\033[92m▒▒ \033[0m██ 51 | \033[0m██ \033[92m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ \033[0m██ 52 | \033[0m██ \033[94mCoded by: https://github.com/HACK3RY2J \033[0m██ 53 | \033[0m██ \033[94mYoutube : https://www.youtube.com/c/PandaHackers \033[0m██ 54 | \033[0m██ \033[94mInstagram : https://instagram.com/Panda_Hackers_Official \033[0m██ 55 | \033[0m██ ██ 56 | \033[0m████████████████████████████████████████████████████████████████████ 57 | \033[92m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 58 | """ 59 | print(logo) 60 | print("\n") 61 | 62 | 63 | def Track() : 64 | TXTID = input("Enter Text ID of Anon-SMS \n\t -->>") 65 | os.system(f"curl https://textbelt.com/status/{TXTID}") 66 | input("\nPress Enter To Exit..") 67 | print("\nThanks For Using Anon-Sms..") 68 | print("\tWe Hope To See You Again\n Type bash Run.sh\n\tTo Run Again..") 69 | input('\n\n\nThank You For Using Anon-SMS\nAfter v1.45 There are Ads Enabled in this Tool.\nPress Enter To Continue to View An Ad.\n') 70 | os.system('figlet -f slant Just Kidding') 71 | print("There's No Ads.\nThank you for Your Time...") 72 | exit() 73 | 74 | def update(): 75 | stuff_to_update = ['send.py', 'Run.sh', '.version'] 76 | for fl in stuff_to_update: 77 | dat = urllib.request.urlopen("https://raw.githubusercontent.com/HACK3RY2J/Anon-SMS/master/" + fl).read() 78 | file = open(fl, 'wb') 79 | file.write(dat) 80 | file.close() 81 | print('\n\t\tUpdated Successfull !!!!') 82 | print('\tRun The Script Again...') 83 | exit() 84 | 85 | clr() 86 | banner() 87 | try: 88 | urllib.request.urlopen('https://www.google.com') 89 | except Exception: 90 | print("Error While Connecting To Internet!!!") 91 | print("\tPlease Connect To Internet To Continue...\n") 92 | input('Exiting....\n Press Enter To Exit....') 93 | exit() 94 | print('\tChecking For Updates...') 95 | ver = urllib.request.urlopen("https://raw.githubusercontent.com/HACK3RY2J/Anon-SMS/master/.version").read().decode('utf-8') 96 | verl = '' 97 | try: 98 | verl = open(".version", 'r').read() 99 | except Exception: 100 | pass 101 | if ver != verl: 102 | print('\n\t\tAn Update is Available....') 103 | print('\tUpdating Anon-SMS...') 104 | update() 105 | print("Congratulation") 106 | print("Your Version is Up-To-Date") 107 | print('\n\tStarting Anon-SMS...\n') 108 | try: 109 | noti = urllib.request.urlopen("https://raw.githubusercontent.com/HACK3RY2J/Anon-SMS/master/.notify").read().decode('utf-8') 110 | if len(noti) > 10: 111 | print('\nNotification : ' + noti + '\n') 112 | except Exception: 113 | pass 114 | 115 | 116 | 117 | while True: 118 | print("\033[0mThis Tool Is Used To Send Anonymous Messages") 119 | break 120 | type = 0 121 | try: 122 | if sys.argv[1] == "track": 123 | type = 1 124 | except Exception: 125 | type = 0 126 | if type == 1: 127 | print("Track The Anonymous Message You Sent Using This Tool.") 128 | print() 129 | Track() 130 | elif type == 0: 131 | while True: 132 | print("Enter The Details Of The Person You Want To Send Anonymous Message") 133 | cc = input("\tEnter Country Code (Without +) : ") 134 | if '+' in cc: 135 | tc = list(cc) 136 | tc.remove('+') 137 | cc = ''.join(tc) 138 | cc = cc.strip() 139 | if len(cc) >= 4 or len(cc) < 1: 140 | print('\n\nInvalid Country Code..\n\t\tCountry Codes Are Generally 1-3 digits...\n') 141 | continue 142 | pn = input("Enter Phone Number : +" + cc + " ") 143 | if len(pn) <= 6: 144 | print('\n\nInvalid Phone Number..\n') 145 | continue 146 | numbe = cc + pn 147 | if not numbe.isdigit(): 148 | print('\n\nPhone Number Must Consist Of Numbers Only\n') 149 | continue 150 | receiver = '+' + numbe 151 | text = input("Enter Message to send : ") 152 | 153 | resp = requests.post('https://textbelt.com/text',{ 154 | 'phone' : receiver, 155 | 'message' : text , 156 | 'key' : 'textbelt' 157 | }) 158 | 159 | print(resp.json()) 160 | input('\n\n\nThank You For Using Anon-SMS\nAfter v1.45 There are Ads Enabled in this Tool.\nPress Enter To Continue to View An Ad.\n') 161 | os.system('figlet -f slant Just Kidding') 162 | print("There's No Ads.\nThank you for Your Time...") 163 | break 164 | if '"success" : true ' in resp.text: 165 | print("\033[92m Message Sent Succesfully \033[0m") 166 | input('\n\t\tPress Enter To Exit...') 167 | banner() 168 | exit() 169 | if '"success" : false ' in resp.text: 170 | print("\033[91m Error Occured") 171 | print("\033[91m Failed to send SMS! ") 172 | input('\n\t\tPress Enter To Exit...') 173 | banner() 174 | exit() 175 | exit() 176 | -------------------------------------------------------------------------------- /send.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Author: HACK3RY2J 3 | # Description: Send anonymous text messages 4 | 5 | # Colors 6 | 7 | # Reset 8 | NC='\033[0m' # Text Reset 9 | 10 | BLINK=$(tput blink) 11 | 12 | Red='\033[0;31m' # Red 13 | Green='\033[0;32m' # Green 14 | Yellow='\033[0;33m' # Yellow 15 | Blue='\033[0;34m' # Blue 16 | Purple='\033[0;35m' # Purple 17 | BRed='\033[1;31m' # Red 18 | BGreen='\033[1;32m' # Green 19 | 20 | 21 | function banner() { 22 | 23 | clear 24 | echo -e " ████████████████████████████████████████████████████████████████████ 25 | ████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████ 26 | ██▒▒██ ___ _ ______ _ __ ______ _______ ██▒▒██ 27 | ██ ▒▒██ / _ | / |/ / __ \/ |/ /___/ __/ |/ / __/ ██▒▒ ██ 28 | ██ ▒▒██ / __ |/ / /_/ / /___/\ \/ /|_/ /\ \ ██▒▒ ██ 29 | ██ ▒▒██/_/ |_/_/|_/\____/_/|_/ /___/_/ /_/___/ ██▒▒ ██ 30 | ██ ▒▒██ V1.4██▒▒ ██ 31 | ██ ▒▒████████████████████████████████████████▒▒ ██ 32 | ██ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ██ 33 | ██ Coded by: https://github.com/HACK3RY2J ██ 34 | ██ Youtube : https://www.youtube.com/c/PandaHackers ██ 35 | ██ Instagram : https://instagram.com/Panda_Hackers_Official ██ 36 | ██ ██ 37 | ████████████████████████████████████████████████████████████████████ 38 | ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ " 39 | 40 | echo " " 41 | echo -e "$BGreen Hello User... $NC" 42 | echo -e "$Green Welcome to Anon-SMS $NC" 43 | echo -e "$Green With Anon-SMS You can send, Anonymous Text Message $NC" 44 | sleep 1 45 | echo -e "$Green Let's begin... $NC" 46 | echo " " 47 | sleep 2 48 | read -n 1 -s -r -p " Press any key to continue" 49 | } 50 | 51 | function byemsg() { 52 | 53 | 54 | echo -e "$Green Done... $NC" 55 | sleep 1 56 | echo -e "$Green Closing Anon-SMS... $NC" 57 | sleep 1 58 | echo " " 59 | echo -e "$BGreen Bye User Lets Meet Next Time... $NC" 60 | echo " " 61 | exit 62 | } 63 | 64 | function VERSION() { 65 | echo " " 66 | echo -e "$BGreen Anon-SMS version: v1.4(Non-Supported)" 67 | echo " " 68 | } 69 | 70 | function SENDSMS() { 71 | echo "" 72 | echo -e "$Red Enter Phone Number Like Country Code>Number" 73 | echo -e "$Yellow For Example country code = $Blue 91 $Green And Phone Number = $Blue 5566778899" 74 | echo -e "$Yellow Enter Number as > $Blue 915566778899" 75 | echo -e "$Green Enter Phone Number With Country Code: $NC" 76 | 77 | read PHONE 78 | 79 | echo " " 80 | echo -e "$Green Enter Message: $NC" 81 | 82 | read SMS 83 | 84 | 85 | SMSRESULT=$(curl -# -X POST https://textbelt.com/text --data-urlencode phone="$PHONE" --data-urlencode message="$SMS" -d key=textbelt) 86 | 87 | if grep -q true <<<"$SMSRESULT" 88 | 89 | then 90 | 91 | echo " " 92 | echo -e "$BGreen SUCCESS $NC" 93 | echo " " 94 | echo -e "$BGreen ---------------------------------------------- $NC" 95 | echo "$SMSRESULT" 96 | echo -e "$BGreen ---------------------------------------------- $NC" 97 | echo " " 98 | byemsg 99 | else 100 | 101 | echo " " 102 | echo -e "$BRed FAIL $NC" 103 | echo " " 104 | echo -e "$BGreen ---------------------------------------------- $NC" 105 | echo "$SMSRESULT" 106 | echo -e "$BGreen ---------------------------------------------- $NC" 107 | echo " " 108 | byemsg 109 | fi 110 | } 111 | 112 | function SMSCHECK() { 113 | 114 | echo " " 115 | echo -e "$Green Enter Text ID (example 12589): $NC" 116 | 117 | read TEXTID 118 | 119 | STATUSRESULT=$(curl -# https://textbelt.com/status/"$TEXTID") 120 | 121 | echo " " 122 | echo -e "$BGreen Final Response (JSON): $NC" 123 | echo " " 124 | echo -e "$BGreen ---------------------------------------------- $NC" 125 | echo "$STATUSRESULT" 126 | echo -e "$BGreen ---------------------------------------------- $NC" 127 | echo " " 128 | } 129 | 130 | function helpfunction() { 131 | 132 | echo " " 133 | echo -e "$BGreen Available opions: $NC" 134 | echo -e " " 135 | echo -e "$BGreen Show this page: --help $NC" 136 | echo -e "$BGreen Check text message status: --statuscheck $NC" 137 | echo -e "$BGreen Send text message: --sendsms $NC" 138 | echo -e "$BGreen Print version: --version $NC" 139 | echo " " 140 | echo " " 141 | } 142 | 143 | if [ "$1" == "--statuscheck" ] 144 | 145 | then 146 | banner 147 | SMSCHECK 148 | byemsg 149 | 150 | elif [ "$1" == "--sendsms" ] 151 | 152 | then 153 | banner 154 | SENDSMS 155 | byemsg 156 | 157 | elif [ "$1" == "--help" ] 158 | 159 | then 160 | helpfunction 161 | 162 | elif [ "$1" == "--version" ] 163 | 164 | then 165 | VERSION 166 | 167 | 168 | elif [ $# -le 0 ] 169 | 170 | then 171 | echo " " 172 | echo -e "$Red No arguments specified! $NC" 173 | echo -e "$Red Use$NC $BRed--help$NC $Red to display options.$NC" 174 | echo " " 175 | 176 | else 177 | echo " " 178 | echo -e "$Red No such argument available!$NC" 179 | echo -e "$Red Use$NC $BRed--help$NC $Red to display options.$NC" 180 | echo " " 181 | 182 | fi 183 | --------------------------------------------------------------------------------