1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
## Eurotel CZ ##
# Version 0.4
# by nax (jhajas@centrum.cz)
# This version needs skyutils 2.5 and smssend 2.2 or above to correct run!
# You also need to have gocr from http://jocr.sourceforge.net/ installed!
# Error codes :
# 1 -> OCR program isn't perfect. Try it one more time.
# 2 -> Bad prefix
# 3 -> Bad number
# 4 -> Unknown error
NbParams 4
%Prefix Size=7 Convert : Phone prefix i.e., +42060[1267] | +42072[0-9]
%Number Size=6 : Phone number
%Typ : Type of sms: 0 (standard sms), 1 (directly on screen)
%Message Size=60 Convert : Message to be sent
GetURL http://www2.eurotel.cz/sms/SMSGWChargingClient?action=edit&lang=cs
Referer http://www.eurotel.cz/site/cz/smsGateway/
GO
GetURL http://www2.eurotel.cz/sms/\%RTGetString-1-Potvrzovac kd: <img src=%
Dump /tmp/eurotelkod.gif
GO
PostURL http://www2.eurotel.cz/sms/SMSGWChargingClient
Referer http://www2.eurotel.cz/sms/SMSGWChargingClient?action=edit&lang=cs
PostData action=confirm&ccndc=\%Prefix%&sn=\%Number%&msgText=\%Message%&code=\%RTExec-1-gocr /tmp/eurotelkod.gif | sed s/\ //g\%&reply=0&replyEmail=&intruder=\%Typ%&lang=cs
Search Potvrzovac kd nesouhlas
ErrorMsg 1 Confirmation code doesn't match the requested one. Sorry, OCR program isn't perfect. Try it one more time.
ElseSearch Eurotelu nen zvoleno
ErrorMsg 2 Phone prefix is badly specified
ElseSearch m chybn formt
ErrorMsg 3 Phone number has wrong format
Else
GO
GetURL http://www2.eurotel.cz/sms/SMSGWChargingClient?action=send
Search odeslna</th><tr>
PrintMsg Message successfully sent
Else
ErrorMsg 4 Unknown error
GO
|