JRSmile Posted November 30, 2010 Share Posted November 30, 2010 Hi there, 40 minutes ago i found that my VoIP provider supports sending sms via xml-rpc request. ( you either need a flatrate or a prepayed account) 39 minutes ago i started searching for an easy to use xml-rpc client to abuse with autoit ( Result: PocketXMLRPC) 10 minutes ago i started writing code for a proove of concept. 8 minutes ago i got this: $f = ObjCreate("pocketXMLRPC.Factory") $p = $f.Proxy("https://samurai.sipgate.net/RPC2", "samurai.","SIPGATE-USERNAME","SIPGATE-PASSWORD") $args_identify = ObjCreate("PocketXMLRPC.Struct") $args_identify.ClientName = "AutoIT" $args_identify.ClientVersion = "0.0.0.1" $args_identify.ClientVendor = "JRSmile" $r = $p.ClientIdentify ($args_identify) if $r.StatusCode = 200 Then ConsoleWrite("Successfully identified to the server!" & @CRLF) Else ConsoleWrite("There was an error during identification to the server!" & @CRLF) EndIf ;~ args_identify = 0 $args = ObjCreate("PocketXMLRPC.Struct") $args.RemoteUri = "sip:CELLPHONE-NUMER@sipgate.net" $args.TOS = "text" $args.Content = "SMS-MESSAGE-BODY" $r = $p.SessionInitiate($args) if $r.StatusCode = 200 Then ConsoleWrite("Your request was successfully send to the server!" & @CRLF) Else ConsoleWrite("There was an error!" & @CRLF) EndIf 2 minutes ago i got a message on my Cellphone I will start adding this to my autoit projects which need instant reaction if something goes wrong, and maybe making an UDF out of it. feel free to use what ever you want from this script $a=StringSplit("547275737420796F757220546563686E6F6C75737421","") For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4) Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])));''Chr("a")&"HI" Next ;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile; MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-) Link to comment Share on other sites More sharing options...
daluu Posted November 30, 2010 Share Posted November 30, 2010 Hey, thanks for sharing. That could be nicely ported to VBScript to be run on Windows w/o AutoIt. By the way, one could do something similar with (unofficial) Google Voice APIs. Free SMS, but you'd need an account. Unfortunately, the APIs are not available in VBScript or COM (for AutoIt to use). But one could build an interface to them, or use AutoIt with .NET. The existing APIs are for .NET, Java, C/C++, and Python. One can google for them. Maybe someone can compile C/C++ version to COM to be accessible by AutoIt and VBScript. And there's quite a few free SMS services on the web, one with REST/HTTP API (i.e. AutoSMS/Watacrackaz) but unfortunately, they require CAPTCHA so you wouldn't be able to use with AutoIt unless you put a GUI to the app for the images. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now