execute_sms_1.0 13/September/2002 www.leirianet.pt/~eluis/execute_sms/index.html by [Joshua] Eduardo Luis linux@leirianet.pt This program executes commands from an e-mail message. For that you just have to create an e-mail account on your box and send plain text mails for that account. The authorization method here is used on the Subject of the e-mail. Put your password on the Subject of the e-mail and must macth the "x" variable on the executable file (execute_sms). The first purpose for this program was to give some orders to a LINUX box from any point of my country with a GSM telephone via SMS. ******* This program was built on RedHat 6.2 ********************** * You may need to change some paths for this to work on your box. * ******************************************************************* To start using it, you must have sendmail working and accepting mail correctly and you must have an account for this program (like "sms"), execute the file "prepare" (if you agree with the defaults), edit the executable file "execute_sms" and change your password and some other fields like mail queue, depending on your distribution. Then you just have to reconfigure crontab to execute it. My crontab execute it every 1 minute. Send e-mail's via mail clients (plain text only) or SMS to that account with commands on the body. To send multiple commands, separate them with a ';' like this: echo "Kill SSHD" > /tmp/test.txt;killall -9 sshd This has a log file too. You may know asking: - "And, can i receive the ouputs on my GSM phone?" In Portugal this is not possible, our operators are no longer receiving mail messages to be converted to an SMS message. Fuck them. ----Instalation defaults---- mail accont: sms mail queue: /var/spool/mail logging: /var/log/execute_sms.log temp working dir: /etc/execute_sms file to be executed: /etc/execute_sms/execute_it From now on, you just have to use your imagination and use it. I'm not responsible from any damage you may cause to your box with stupid commands sent by e-mail or SMS like "rm -rf /" Please e-mail any questions, bugs and ideas to: Eduardo Luis linux@leirianet.pt www.leirianet.pt/~eluis or utilizadores.leirianet.pt/~eluis Enjoy it. This software is under the GNU/LINUX license terms. For more information read the LICENSE file in this directory. [-end of file-]