如何对网站登录进行逆向工程 [英] How to reverse engineer a website login

查看:357
本文介绍了如何对网站登录进行逆向工程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作一个Windows 8应用,让用户可以访问 https:// www的功能.myhealth.va.gov / 。该站点要求用户登录才能使用它。我可以看到Chrome开发者控制台中使用的帖子请求及其生成的Cookie,但我不知道如何使用此信息让用户通过我的应用登录。

I'm trying to make a Windows 8 app that gives users access to the features of https://www.myhealth.va.gov/ . The site requires users to log in to use it. I can see the post request that's used in the the Chrome Developer console and the cookie that it generates but I don't know how to use this information to let users log in through my app.

推荐答案

这个确切的场景在 C#5.0 in Nutshell 。大概如此:

This exact scenario is described and solved in the networking chapter of C# 5.0 in a Nutshell. Roughly like so:


  1. 将httprequest发送到包含登录表单的页面。

  2. 保存从此页面返回的cookie。

  3. 使用您对登录页面表单的了解来重新创建它的发布数据(使用您的用户的登录名/密码)。

  4. 将cookie添加到另一个httprequest,并传输帖子数据。

  1. Send an httprequest to the page that contains the login form .
  2. Save the cookies returned from this page.
  3. Use your knowledge of the login page's form to recreate it's post data (using your user's login/password).
  4. Add the cookies to another httprequest, and transmit the post data.

这篇关于如何对网站登录进行逆向工程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆