想知道类似于QQ农场外挂的那样的登陆QQ是怎么个原理,如果有源码最好,没有也请高手给小弟指点下思路,谢谢

解决方案 »

  1.   

    如果没有验证码,可以用 webbrowser 模拟登录、访问。
      

  2.   

    http://ptlogin2.qq.com/login?u=" + UserId + "&p=" + bf.GetMd5PassWord(UserPwd, txtCode.Text) + "&verifycode=" + txtCode.Text.ToUpper().Trim() + "&=on&aid=15000101&u1=http%3A%2F%2Fimgcache.qq.com%2Fqzone%2Fv5%2Floginsucc.html%3Fpara%3Dizone&ptredirect=1&h=1&from_ui=1&dumy=1&fp=loginerroralert
    UserId 是QQ账号
    bf.GetMd5PassWord(UserPwd, txtCode.Text)这个是调用腾讯的js加密
    txtCode.Text.ToUpper().Trim() 这个是验证码.然后通过httpwebrequest的get方式 提交就可以了`
      

  3.   

    额,对了.去拿验证码的时候,需要把得到的cookie也记录下来,在httpwebrequest提交的时候,要把这个cookie也带上的``