################################################################################# # smsmet.elz v0.02 10/03/2005 # # # # A script written for the Elza Interpreter to automate sending SMS text # # messages via the Meteor Ireland Website # # # # http://www.meteor.ie/ # # http://packages.debian.org/testing/interpreters/elza # # http://higgs.djpig.de/ubuntu/www/hoary/interpreters/elza # # # # Instructions: # # 1. Get an account on Meteor. # # 2. Install Elza, stunnel and possibly libnet-socks-perl # # 3. Change the 085XXXXXXX and YYYY to your phone number and pin. # # 4. From a command line run "elza smsmet.elz" # # # # Feedback: www_gmc@fiachra.ucd.ie # ################################################################################# # Set default values for pin/phone number var DEF_FROM_NUMBER = 085XXXXXXX var DEF_PIN = YYYY var DEF_TO_NUMBER = %DEF_FROM_NUMBER% # Quiet please! var silent = on # obey refreshes and 30Xs var autoredir = on # Place raw communication in meteor.raw var rawfile = /tmp/meteor.raw # Keepalive to speed things along # This seems to cause problems #var keepalive = on # Read variables in var VAR_FROM_NUMBER ? %DEF_FROM_NUMBER% var VAR_PIN ? %DEF_PIN% var VAR_TO_NUMBER ? %DEF_TO_NUMBER% var VAR_MESSAGE ? # 1. Goto Login Page ####################################### label LOGINPAGE print Requesting Login Page get url http://www.meteor.ie/ goto LOGINPAGE if %retcode% != 200 # 2. Login ################################################# label LOGIN # set login fields field msisdn = %VAR_FROM_NUMBER% field pin = %VAR_PIN% field x = 10 field y = 9 # post form to login print Logging In post url https://www.mymeteor.ie/mymeteor/do_login.cfm # Automatic 302 redirect will happen here print %rettext% goto LOGIN if %retcode% != 200 # 3. Go to Send Page ####################################### label SENDPAGE print Going to Send Page get url https://www.mymeteor.ie/mymeteor/phone_book/send_sms.cfm print %rettext% goto SENDPAGE if %retcode% != 200 # 4. Send Message ########################################## label SEND # fill in form field %ALL% $ field sms_text = %VAR_MESSAGE% field msisdn1 = %VAR_TO_NUMBER% # Send the message print Sending Message post url https://www.mymeteor.ie/mymeteor/phone_book/send_sms.cfm # Automatic 302 redirect will happen here goto SEND if %retcode% != 200 print %rettext%