mIRC Home    About    Download    Register    News    Help

Print Thread
#34459 06/07/03 04:44 PM
B
bloupx
bloupx
B
i'm trying to access my hotmail account by using the messenger protocol.
i can generate a html file with all the cookies, credentials etc needed which looks like..

<html><head><noscript><meta http-equiv=Refresh content="0; url=http://www.hotmail.com"></noscript></head>
<body onload="document.pform.submit(); ">
<form name="pform" action="https://loginnet.passport.com/ppsecure/md5auth.srf?lc=1031" method="POST">
<input type="hidden" name="mode" value="ttl">
<input type="hidden" name="login" value="boo">
<input type="hidden" name="username" value="boo@hotmail.com">
<input type="hidden" name="sid" value="567">
<input type="hidden" name="kv" value="7">
<input type="hidden" name="id" value="2">
<input type="hidden" name="sl" value="9">
<input type="hidden" name="rru" value="/cgi-bin/HoTMaiL">
<input type="hidden" name="auth" value="4S47OvufeDapv3F3nl1dpn!jsmjGTcc5cvW7Oe0jx0HmUd!*4hTf8en5hbvhtC!ErGmUZcQ6ikINaUSiVimzJs!A$$">
<input type="hidden" name="creds" value="c7c8bd403da4d73f04295a8deddf69e0">
<input type="hidden" name="svc" value="mail"><input type="hidden" name="js" value="yes"></form></body></html>

if i execute the above code in internet explorer it logs me in just fine.

now my question is if i'm using mirc sockets how i would wrap the above data to let me access my email.

i keep getting the Access Denided error by the login server, (loginnet.passport.com)
Apparently i'm missing something.

Any Help will be glâdly appreciated.

#34460 07/07/03 07:23 AM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
i havn;t tested, but try this...

alias hotmail {
/sockopen hotmail loginnet.passport.com 80
}

on 1:SOCKOPEN:hotmail: {
if ($sockerr) var %err = $input Error connecting to hotmail account, ow, Error Occured)
else {
var %post = mode=ttl&login=boo&username=boo@hotmail.com&sid=567&kv=7&id=2&dl=9& $&
auth=4S47OvufeDapv3F3nl1dpn!jsmjGTcc5cvW7Oe0jx0HmUd!*4hTf8en5hbvhtC!ErGmUZcQ6ikINaUSiVimzJs!A$$& $&
creds=c7c8bd403da4d73f04295a8deddf69e0&svc=mail&js=yes
/sockwrite -n $sockname POST /ppsecure/md5auth.srf?lc=1031 HTTP/1.0
/sockwrite -n $sockname Host: loginnet.passport.com
/sockwrite -n $sockname
/sockwrite -n $sockname %post
if ($isfile(hotmail.htm)) .remove hotmail.htm
}
}

on 1:SOCKREAD:hotmail: {
/sockread -f &data
/bwrite hotmail.htm -1 -1 &data
}

on 1:SOCKCLOSE:hotmail: {
/run hotmail.htm
}

#34461 07/07/03 08:23 AM
Joined: Apr 2003
Posts: 413
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 413
Only with mirc socket is very hard to send some to a https server .. Because you need to encrypt the post data with a key ..
You need a special program .. Like curl .. You can find it at http://curl.haxx.se

#34462 07/07/03 08:27 AM
Joined: Apr 2003
Posts: 413
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 413
Https is on 443 port ..

#34463 07/07/03 09:56 AM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
Excuse me? 443? Try 80--
Commoners are
21 - ftp
23 - telnet
25 - smtp
80 - http
110 - mail
137-139 - NetBIOS
443 - ssl

#34464 07/07/03 10:25 AM
Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
No, 80 is HTTP, 443 is HTTPS (SSL) which is what they're talking about. You even have it on that list right there.

#34465 07/07/03 12:13 PM
B
bloupx
bloupx
B
ty for the effort. that^s exactly how far I get too.

HTTP/1.1 403 Access Forbidden Server: Microsoft-IIS/5.0

so it means i have to open the socket to port 443?

#34466 07/07/03 12:30 PM
B
bloupx
bloupx
B
Adrenalin: i got the key,login,credentials, i just can't figure how to parse the data using mirc sockets, to log me in and bring me to the inbox.

#34467 07/07/03 05:17 PM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
my mistake, i thought you mean http's as in http is on.

#34468 07/07/03 07:00 PM
B
bloupx
bloupx
B
btw .. nice website KingTomato

#34469 07/07/03 07:41 PM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
ty, but it's temporary. The site's host is going to change because my current (hostonce.com) is a pos.


Link Copied to Clipboard