Get MSN (HOTMAIL) Mailbox Friends Sync Update 2011-8

Source: Internet
Author: User
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 ();
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.