Simulated login on WeChat public platform

Source: Internet
Author: User
In order to obtain the user's profile picture and user name, the simulated login problem on the public platform is checked. only simulated login is supported.
The following figure shows the simulated login code using snoopy:
 Submit ($ submit, $ post); $ cookie = ''; print_r ($ snoopy-> headers); exit;} login ();?>

No set-cookie login failed in the obtained header information. what is the error of my program? Or recently his code has been changed. I think the js login on the public platform is also the post content.
Var createLoginForm = function (e) {var t = jQuery, n = function () {var e =! 1; inputs = m. getVal (); switch (! 1) {case !! Inputs. account: s. trigger ("Warning", [f, "you have not entered an account! "]); Break; case !! Inputs. password: s. trigger ("Warning", [l, "you have not entered the password! "]); Break; case !! Inputs. verify | !! C. data ("isHide"): s. trigger ("Warning", [h, "you have not entered the verification code! "]), R (); break; default: e =! 0;} return e ;}, r = function () {h. val (""), p. attr ("src", "/cgi-bin/verifycode? Username = "+ m. getVal (). account + "& r =" ++ (new Date) ;}, I = e. selector, s = t (I. error), o = t (I. errorArea), u = t (I. rememberAcct), a = t (I. changeImgLink), f = t (I. account ). keydown (function (e) {e. keyCode = 13 & l. focus (). select () ;}), l = t (I. password ). keydown (function (e) {e. keyCode = 13 & d. click () ;}), c = t (I. verifyArea ). data ("isHide", 1 ). hide (), h = t (I. verify ). keydown (function (e) {e. keyCode = 13 & (l. val ()? D. click (): l. focus (). select () ;}), p = t (I. verifyImg ). click (r), d = t (I. loginBtn), v = function (e, t) {return; var n, r, I ;}; s. bind ("Warning", function (e, t, n) {o. removeClass ("dn"), s. text (n ). hide (). fadeIn () ;}), p. bind ({load: function () {v ([f, l]), c. show (). data ("isHide", 0), h. focus (). select () ;}, error: function () {}}), s. bind ("Response", function (e, t, n) {o. removeClass ("dn"), s.html (n ). hide (). FadeIn (), v ([f, l], "N"), c. data ("isHide") | r (); switch (t) {case "-3": l. focus (). select (); break; case "-6": h. focus (). select (); break; default: f. focus (). select () ;}t! = "-32" & l. val ("") ;}); var m = {showVerifyImg: r, submit: function () {if (! N () return; var e = m. getVal (); t. post ("/cgi-bin/login? Lang = zh_CN ", {username: e. account, pwd: t. md5 (e. password. substr (0, 16), imgcode: c. data ("isHide ")? "": E. verify, f: "json"}, function (t) {var n = t. ErrCode + "", I; u. hasClass ("checkbox_checked ")? WXM. helpers. setCookie ("remember_acct", e. account, 30): WXM. helpers. setCookie ("remember_acct", "EXPIRED",-1); switch (n) {case "-1": I = "system error. please try again later. "; Break; case"-2 ": I =" incorrect account or password. "; Break; case"-3 ": I =" the account or password you entered is incorrect. please enter it again. "; Break; case"-4 ": I =" this account does not exist. "; Break; case"-5 ": I =" You are currently in a restricted access status. "; Break; case"-6 ": I =" Enter the verification code in the figure ", r (); return; case"-7 ": I = "this account has been bound with a private number and cannot be used for logon to the public platform. "; Break; case"-8 ": I =" the email already exists. "; Break; case"-32 ": I =" The verification code you entered is incorrect. enter ", r (); break; case"-200 ": I = "this account is denied to log on because of frequent submission of false information. "; Break; case"-94 ": I =" use your email to log on. "; Break; case" 10 ": I =" this public meeting number has expired and cannot be used again. "; Break; case" 65201 ": case" 65202 ": I =" successfully logged on, redirecting... ", location. href = t. errMsg; return; case "0": I = "successfully logged on. redirecting... ", location. href = t. errMsg; return; case "-100": I = 'Please log on to the overseas account on the public platform, and click login '; break; default: I = "Unknown return. "; Return;} s. trigger ("Response", [n, I]) ;}, "json") ;}, getVal: function () {return {account: t. trim (f. val (), password: t. trim (l. val (), verify: t. trim (h. val () };}, setVal: function (e, n) {return t (I ). val (n ). length ;}}; return. click (function () {m. showVerifyImg () ;}), d. click (m. submit), f. focus (), m ;};

These four values are also
Username: e. account,
Pwd: t. md5 (e. password. substr (0, 16 )),
Imgcode: c. data ("isHide ")? "": E. verify,
F: "json"
So I don't know where this problem is. please help me.


Reply to discussion (solution)

According to the official statement, the adjustment is in progress.

Changed the submitted address to https.

Now we can simulate logon.

When you use HttpWebRequest to access the user list page, error 404 is returned. The page cannot be found...

When you use HttpWebRequest to access the user list page, error 404 is returned. The page cannot be found...
You must have submitted an error. go to the page and find something, such as URL, UserAgent, and ContentType, which must be consistent with the official website.

I am also wondering how to log on and send messages. have you got the message?

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.