Get MSN (HOTMAIL) Mailbox Friends Sync Update 2011-8
This post was last edited by hudie631489527 on 2011-08-25 09:01:51
Last year's MSN (HOTMAIL), Gmail, Yahoo three analog login, now MSN has expired
In the CSDN forum to pay more attention to friends, work also need this, so once again picked up the HTTP analysis tools to get a glimpse
This analysis found that MSN makes people laugh and cry, they are logged in the last step, the cookie detection, detection of cookies is normal but
It's just that he detects extra cookies this time, and if there are extra cookies, please just ask me out, but only in the final step to filter the cookies they need.
Okay, on the code (basically the same as last time, just a few more in the middle of a cookie filter)
My blog: www.onlypo.com
Define ("Cookiejar", Tempnam (Ini_get ("Upload_tmp_dir"), "Cookie")); Define the path where cookies are stored and have permission to operate.
Define ("TIMEOUT", 1000); Timeout settings
Error_reporting (E_all);
Class MSN
{
function Getaddresslist ($username, $password)
{
Step one: Simulate fetching data from the login page and note the cookies
$cookies = Array ();
$ch = Curl_init ();
curl_setopt ($ch, Curlopt_ssl_verifypeer, false);
curl_setopt ($ch, Curlopt_url, "http://login.live.com/login.srf?wa=wsignin1.0&rpsnv=11&ct=". Time (). " &rver=6.1.6206.0&wp=mbi&wreply=http:%2f%2fmail.live.com%2fdefault.aspx&lc=2052&id=64855 &mkt=zh-cn&cbcxt=mail&snsc=1 ");
curl_setopt ($ch, Curlopt_cookiejar, Cookiejar);
curl_setopt ($ch, Curlopt_timeout, TIMEOUT);
curl_setopt ($ch, Curlopt_returntransfer, true);
$str = curl_exec ($ch);
Curl_close ($ch);
Data file simulation JS generated cookie
$CkTst = ' G '. Time () * 1000;
$wlidperf = "throughput=3&latency=948&fr=l&st=". (Time () * 1000 + 1254);
$fp = fopen (Cookiejar, "A +");
$str _new = "login.live.com\ttrue\t/\tfalse\t0\tcktst\t$cktst\r\n";
$str _new. = "login.live.com\ttrue\t/\tfalse\t0\twlidperf\t$wlidperf\r\n";
Fwrite ($fp, $str _new);
Fclose ($FP);
Analysis of parameters
$matches = Array ();