mIRC Home    About    Download    Register    News    Help

Print Thread
#102660 11/11/04 07:01 PM
Joined: Nov 2004
Posts: 3
S
shaka Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Nov 2004
Posts: 3
Hello !

I'm trying to send sms with mirc by http://communication.skynet.be/index.htm...amp;amp;l3=home

i did not receive any errormsg, but the sms was not sended.

First i need to enter my username and password. This is done by the cookies. The most of them are readed by a $readcookie addon
Then i have to enter the text and the phonenumber. The last step is to confirm this SMS.

i start the request with /sms1

And this is my script:

alias sms1 /sockopen sms communication.skynet.be 80
alias /test1 {
sockwrite -nt sms POST /index.html?l1=communication&l2=mobile&l3=sms_center&l4=sms2gsm&a=confirm HTTP/1.1
sockwrite -nt sms Accept:*/*
sockwrite -nt sms Host: communication.skynet.be
sockwrite -nt sms Cookie: user_id_cookie=$readcookie(D:\internet\NoNameScript\maniac@skynet[2].txt,user_id_cookie).ie; session_id_cookie=$readcookie(D:\internet\NoNameScript\maniac@skynet[2].txt,session_id_cookie).ie;language_cookie=$readcookie(D:\internet\NoNameScript\maniac@skynet[2].txt,language_cookie).ie;autoLogToken=$readcookie(D:\internet\NoNameScript\maniac@skynet[2].txt,autoLogToken).ie;SID=efprivacy-sorryf1c; domain=.skynet.be;language_cookie=fr; domain=.skynet.be; expires=Wed, 04-May-05 06:31:35 GMT; mode_cookie=$readcookie(D:\internet\NoNameScript\maniac@passport.skynet[2].txt,mode_cookie).ie; needRemember=$readcookie(D:\internet\NoNameScript\maniac@skynet[2].txt,needRemember).ie;
sockwrite -nt sms Content-Type: text/html; charset=iso-8859-1
sockwrite -nt sms Content-Length: $len(%data2)
sockwrite -n sms
sockwrite -nt sms %data2
}

on *:sockopen:sms:{
var %data1 = $+(msgSig=0,$chr(38),lenSSig=0,$chr(38),lenLSig=21,$chr(38),lenSysSig=15,$chr(38),prefix=0123,$chr(38),number=123456,$chr(38),text=hereismytext,$chr(38),msgCL=135,$chr(38),send=Envoyer)
var %data2 = $+(prefix= 0123,$chr(38),number= 123456,$chr(38),text= hereismytext,$chr(38),id= {ID},$chr(38),=Envoyer)

sockwrite -nt sms POST /index.html?l1=communication&l2=mobile&l3=sms_center&l4=sms2gsm&new_lang=fr&a=preview HTTP/1.1
sockwrite -nt sms Accept:*/*
sockwrite -nt sms Host: passport.skynet.be
sockwrite -nt sms Cookie: user_id_cookie=$readcookie(D:\internet\NoNameScript\maniac@skynet[2].txt,user_id_cookie).ie; session_id_cookie=$readcookie(D:\internet\NoNameScript\maniac@skynet[2].txt,session_id_cookie).ie; language_cookie=$readcookie(D:\internet\NoNameScript\maniac@skynet[2].txt,language_cookie).ie; autoLogToken=$readcookie(D:\internet\NoNameScript\maniac@skynet[2].txt,autoLogToken).ie; SID=efprivacy-sorryf1c; domain=.skynet.be; expires=Wed, 04-May-05 06:31:35 GMT; language_cookie=fr; domain=.skynet.be; needRemember=$readcookie(D:\internet\NoNameScript\maniac@skynet[2].txt,needRemember).ie;
sockwrite -nt sms Content-Type: text/html; charset=iso-8859-1
sockwrite -nt sms Content-Length: $len(%data1)
sockwrite -n sms
sockwrite -nt sms %data1
/timert1 1 4 /test1
}

I think the server need some seconds to prepare the following request. Thats why i use a Timer.

On *:sockread:sms:{
if ($sockerr > 0) return
:nextreadsms
sockread %temp
if ($sockbr == 0) return
if (%temp == $null) set %temp -
//echo %temp
goto nextreadsms
}




why does it not work ? I have tryed a lot of thing

I receive this text by the sockets:

HTTP/1.1 302 Found
Date: Thu, 11 Nov 2004 18:29:20 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux mod_gzip/1.3.19.1a AuthMySQL/3.1 PHP/4.1.2 mod_perl/1.26
X-Powered-By: PHP/4.1.2
Set-Cookie: language_cookie=fr; expires=Wed, 04-May-05 09:09:21 GMT; domain=.skynet.be
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: http://passport.skynet.be/blank.html?l1=...RIKFkEIBh4JX1I=
Transfer-Encoding: chunked
Content-Type: text/html
-
* /echo: insufficient parameters (line 39, script1.nns)
-
* Timer t1 halted
HTTP/1.1 302 Found
Date: Thu, 11 Nov 2004 18:29:25 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux mod_gzip/1.3.19.1a AuthMySQL/3.1 PHP/4.1.2 mod_perl/1.26
X-Powered-By: PHP/4.1.2
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: http://passport.skynet.be/blank.html?l1=...RIKFkEIBh4JX1I=
Transfer-Encoding: chunked
Content-Type: text/html


Thanks for your help ! (Sorry for my bad english)

Shaka

#102661 12/11/04 06:47 PM
Joined: Apr 2003
Posts: 414
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
The remote script could check where from you come by checking Referer:..

Try somethink like..
Code:
 sockwrite -nt sms POST /index.html?l1=communication&l2=mobile&l3=sms_center&l4=sms2gsm&a=confirm HTTP/1.1
sockwrite -nt sms Accept:*/*
sockwrite -nt sms Referer: http://communication.skynet.be/index.html


When i was doing somethink similar.. I was using a sniffer.. That helps very much..


mIRC Chm Help 6.16.0.3 Full Anchored!

Link Copied to Clipboard