SlideShare a Scribd company logo
1 of 2
Download to read offline
任务:通过程序完成ChinaUnicom模拟登陆 - by laike9m
1. 通过IE9进行探查,确定各参数含义
(1) 准备工作
操作:先进入登陆页面,F12打开开发工具,工具->清空当前域的缓存/cookie,工具->导航时不要清除任
何东西,输入用户名密码,开始捕获,点击登录按钮,登陆完成,停止捕获
实际上第一个GET请求就是我们所需要的东西:

详细内容如下:
Request Header
键

值

请求

GET /login.do? callback=jQuery17100013734368553252607_1378108363139
&username=13051687401&password=123456
&passwordType=6&wlanuserip=&userOpenAddress=bj&
checkbox=1&basname=&setUserOnline=&
sap=&macAddr=&bandMacAuth=0&isMacAuth=&
basPushUrl=http%253A%252F%252F202.106.46.37%252F
&passwordkey=&_=1378108463014 HTTP/1.1

X-RequestedWith

XMLHttpRequest

Accept

text/javascript, application/javascript, application/ecmascript, application/xecmascript, */*; q=0.01

Referer

http://202.106.46.37/index.do

AcceptLanguage

zh-CN

AcceptEncoding

gzip, deflate

User-Agent

Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)

Host

202.106.46.37

DNT

1

Connection

Keep-Alive

Cookie

JSESSIONID=48274E1BD81CA48374ED7D8C1E5AEEA9

Request Body:由于是GET所以为空
Response Header
键

值

响应

HTTP/1.1 200 OK

Server

Apache-Coyote/1.1

Set-Cookie

13051687401=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT
Set-Cookie

user_name=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT

Set-Cookie

OpenAdress=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT

Set-Cookie

checkbox=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT

Content-Type

text/html;charset=UTF-8

Transfer-Encoding

chunked

Date

Mon, 02 Sep 2013 07:54:23 GMT

Response Body
jur1101746535671718619{rsl'
Qey70033385220_380333('eut:
{bsae:""esoI"",ueifI"",ueolnI""4dd50ffa10
"aNm"",ssind:""srnod:""srnied:0cd24c0e04d
dab5ff,keAieie:300""srae:101841,ueNmDmi""
a581a""eplvTm""000,ueNm""35670""sraeoan:1
35670@lnb.hnuio.n,iLgn:tu""esg""ucs""omnM
01841wa.jciancmc""soi""re,msae:sces,raige
sae:""eUeOln""""srpndes:1""ieog:""pndes:"
sg"",stsrnie:0,ueOeArs""1,tmln"",oeArs"",
"a"",wauei"",cinAtTp"",mcdr:""ootoriae:""
sp:""lnsrp:""letuhye:""aAd"",lguCodnt"",d
ietr"",ftp
rcoy:""sye
"",cinTp""""saAt"",bsuhr""tp/22164.7""zae
:""letye:2,iMcuh:""aPsUl:ht:/0.0.63/,pPg"
:""zrfx:""zoan:""trTm""55:3,lfPt"",vai"",
",pPei"",pDmi"",satie:1:42""etah:""lnd:""
oUl:ht:/0.0.318wa""om:""are"",hmCuty:""oe
kr""tp/22163.5/ln,fr"",crir:""oeonr"",hmC
are"",pei"",sfi"",lgnie:21-90
rir:""rfx:""ufx:""oiTm""030-2
0:42""areNm"",acutye:""con""35670"}
35:3,crirae:""conTp"",acut:101841})
Cookie
方向

键

值

过期时间

域 路安 仅
径 全 HTTP

""

Thu, 01-Jan-1970
00:00:10 GMT

否

否

user_name

""

Thu, 01-Jan-1970
00:00:10 GMT

否

否

已接 OpenAdress
收

""

Thu, 01-Jan-1970
00:00:10 GMT

否

否

""

Thu, 01-Jan-1970
00:00:10 GMT

否

否

已发 JSESSIONID 48274E1BD81CA48374ED7D8C1E5AEEA9
送
已接 13051687401
收
已接
收

已接
收

checkbox

(2) 分析各参数含义
jquery后面跟的那串数字可能无法模拟,暂时考虑就用原来的
主要是cookie JSESSIONID=48274E1BD81CA48374ED7D8C1E5AEEA9要搞清楚来历
结论是cookie在不手动清除的情况下是不会改变的,当前cookie:
JSESSIONID=4003A8C5A8DE955BABAC66B0A6405C02
以后用这个应该就可以
为了保险起见可以把这几个cookie也写上
方向
键
值
已发送
13051687401
123456
已发送
user_name
13051687401
已发送
OpenAdress
bj
已发送
checkbox
true

More Related Content

Similar to China unicom模拟登陆

Easy logins for JavaScript web applications
Easy logins for JavaScript web applicationsEasy logins for JavaScript web applications
Easy logins for JavaScript web applicationsFrancois Marier
 
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...Juliano Martins
 
Cross-Platform Authentication with Google+ Sign-In
Cross-Platform Authentication with Google+ Sign-InCross-Platform Authentication with Google+ Sign-In
Cross-Platform Authentication with Google+ Sign-InPeter Friese
 
Practical Secure Coding Workshop - {DECIPHER} Hackathon
Practical Secure Coding Workshop - {DECIPHER} HackathonPractical Secure Coding Workshop - {DECIPHER} Hackathon
Practical Secure Coding Workshop - {DECIPHER} HackathonStefan Streichsbier
 
Passwords and freedom: can we lose the former and retain the latter?
Passwords and freedom: can we lose the former and retain the latter?Passwords and freedom: can we lose the former and retain the latter?
Passwords and freedom: can we lose the former and retain the latter?Francois Marier
 
Ethical Hacking Workshop Presentation
Ethical Hacking Workshop PresentationEthical Hacking Workshop Presentation
Ethical Hacking Workshop PresentationDeepak Handke
 
МИХАЙЛО БОДНАРЧУК «SuperCharged End to End Testing with CodeceptJS» QADay 2019
МИХАЙЛО БОДНАРЧУК «SuperCharged End to End Testing with CodeceptJS»  QADay 2019МИХАЙЛО БОДНАРЧУК «SuperCharged End to End Testing with CodeceptJS»  QADay 2019
МИХАЙЛО БОДНАРЧУК «SuperCharged End to End Testing with CodeceptJS» QADay 2019GoQA
 
SAP strikes back Your SAP server now counter attacks.
SAP strikes back Your SAP server now counter attacks.SAP strikes back Your SAP server now counter attacks.
SAP strikes back Your SAP server now counter attacks.Dmitry Iudin
 
JsConf 2014 - Google BigQuery API Node.js實作記錄
JsConf 2014 - Google BigQuery API Node.js實作記錄JsConf 2014 - Google BigQuery API Node.js實作記錄
JsConf 2014 - Google BigQuery API Node.js實作記錄Simon Su
 
Windows8 매트로스타일 앱개발 개요
Windows8 매트로스타일 앱개발 개요Windows8 매트로스타일 앱개발 개요
Windows8 매트로스타일 앱개발 개요KH Park (박경훈)
 
Evolveum: IDM story for a growing company
Evolveum: IDM story for a growing companyEvolveum: IDM story for a growing company
Evolveum: IDM story for a growing companyEvolveum
 
Facebook Apps Development 101 (Java)
Facebook Apps Development 101 (Java)Facebook Apps Development 101 (Java)
Facebook Apps Development 101 (Java)Damon Widjaja
 
Fun With Spring Security
Fun With Spring SecurityFun With Spring Security
Fun With Spring SecurityBurt Beckwith
 
Nagios Conference 2014 - Rodrigo Faria - Developing your Plugin
Nagios Conference 2014 - Rodrigo Faria - Developing your PluginNagios Conference 2014 - Rodrigo Faria - Developing your Plugin
Nagios Conference 2014 - Rodrigo Faria - Developing your PluginNagios
 
How we integrate & deploy Mobile Apps with Travis CI
How we integrate & deploy Mobile Apps with Travis CIHow we integrate & deploy Mobile Apps with Travis CI
How we integrate & deploy Mobile Apps with Travis CIMarcio Klepacz
 
We need t go deeper - Testing inception apps.
We need t go deeper - Testing inception apps.We need t go deeper - Testing inception apps.
We need t go deeper - Testing inception apps.SecuRing
 
"We need to go deeper - testing inception apps" - Jakub Kałużny
"We need to go deeper - testing inception apps" - Jakub Kałużny"We need to go deeper - testing inception apps" - Jakub Kałużny
"We need to go deeper - testing inception apps" - Jakub KałużnyPROIDEA
 
From jQuery to App Store in 30 Minutes
From jQuery to App Store in 30 MinutesFrom jQuery to App Store in 30 Minutes
From jQuery to App Store in 30 Minutesedill3484
 

Similar to China unicom模拟登陆 (20)

Easy logins for JavaScript web applications
Easy logins for JavaScript web applicationsEasy logins for JavaScript web applications
Easy logins for JavaScript web applications
 
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...
 
Cross-Platform Authentication with Google+ Sign-In
Cross-Platform Authentication with Google+ Sign-InCross-Platform Authentication with Google+ Sign-In
Cross-Platform Authentication with Google+ Sign-In
 
Practical Secure Coding Workshop - {DECIPHER} Hackathon
Practical Secure Coding Workshop - {DECIPHER} HackathonPractical Secure Coding Workshop - {DECIPHER} Hackathon
Practical Secure Coding Workshop - {DECIPHER} Hackathon
 
Passwords and freedom: can we lose the former and retain the latter?
Passwords and freedom: can we lose the former and retain the latter?Passwords and freedom: can we lose the former and retain the latter?
Passwords and freedom: can we lose the former and retain the latter?
 
Ethical Hacking Workshop Presentation
Ethical Hacking Workshop PresentationEthical Hacking Workshop Presentation
Ethical Hacking Workshop Presentation
 
МИХАЙЛО БОДНАРЧУК «SuperCharged End to End Testing with CodeceptJS» QADay 2019
МИХАЙЛО БОДНАРЧУК «SuperCharged End to End Testing with CodeceptJS»  QADay 2019МИХАЙЛО БОДНАРЧУК «SuperCharged End to End Testing with CodeceptJS»  QADay 2019
МИХАЙЛО БОДНАРЧУК «SuperCharged End to End Testing with CodeceptJS» QADay 2019
 
SAP strikes back Your SAP server now counter attacks.
SAP strikes back Your SAP server now counter attacks.SAP strikes back Your SAP server now counter attacks.
SAP strikes back Your SAP server now counter attacks.
 
JsConf 2014 - Google BigQuery API Node.js實作記錄
JsConf 2014 - Google BigQuery API Node.js實作記錄JsConf 2014 - Google BigQuery API Node.js實作記錄
JsConf 2014 - Google BigQuery API Node.js實作記錄
 
Windows8 매트로스타일 앱개발 개요
Windows8 매트로스타일 앱개발 개요Windows8 매트로스타일 앱개발 개요
Windows8 매트로스타일 앱개발 개요
 
Evolveum: IDM story for a growing company
Evolveum: IDM story for a growing companyEvolveum: IDM story for a growing company
Evolveum: IDM story for a growing company
 
Coroutine
CoroutineCoroutine
Coroutine
 
Facebook Apps Development 101 (Java)
Facebook Apps Development 101 (Java)Facebook Apps Development 101 (Java)
Facebook Apps Development 101 (Java)
 
Fun With Spring Security
Fun With Spring SecurityFun With Spring Security
Fun With Spring Security
 
Nagios Conference 2014 - Rodrigo Faria - Developing your Plugin
Nagios Conference 2014 - Rodrigo Faria - Developing your PluginNagios Conference 2014 - Rodrigo Faria - Developing your Plugin
Nagios Conference 2014 - Rodrigo Faria - Developing your Plugin
 
How we integrate & deploy Mobile Apps with Travis CI
How we integrate & deploy Mobile Apps with Travis CIHow we integrate & deploy Mobile Apps with Travis CI
How we integrate & deploy Mobile Apps with Travis CI
 
We need t go deeper - Testing inception apps.
We need t go deeper - Testing inception apps.We need t go deeper - Testing inception apps.
We need t go deeper - Testing inception apps.
 
"We need to go deeper - testing inception apps" - Jakub Kałużny
"We need to go deeper - testing inception apps" - Jakub Kałużny"We need to go deeper - testing inception apps" - Jakub Kałużny
"We need to go deeper - testing inception apps" - Jakub Kałużny
 
From jQuery to App Store in 30 Minutes
From jQuery to App Store in 30 MinutesFrom jQuery to App Store in 30 Minutes
From jQuery to App Store in 30 Minutes
 
The Security Code Review Guide
The Security Code Review GuideThe Security Code Review Guide
The Security Code Review Guide
 

Recently uploaded

Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 

Recently uploaded (20)

Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 

China unicom模拟登陆

  • 1. 任务:通过程序完成ChinaUnicom模拟登陆 - by laike9m 1. 通过IE9进行探查,确定各参数含义 (1) 准备工作 操作:先进入登陆页面,F12打开开发工具,工具->清空当前域的缓存/cookie,工具->导航时不要清除任 何东西,输入用户名密码,开始捕获,点击登录按钮,登陆完成,停止捕获 实际上第一个GET请求就是我们所需要的东西: 详细内容如下: Request Header 键 值 请求 GET /login.do? callback=jQuery17100013734368553252607_1378108363139 &username=13051687401&password=123456 &passwordType=6&wlanuserip=&userOpenAddress=bj& checkbox=1&basname=&setUserOnline=& sap=&macAddr=&bandMacAuth=0&isMacAuth=& basPushUrl=http%253A%252F%252F202.106.46.37%252F &passwordkey=&_=1378108463014 HTTP/1.1 X-RequestedWith XMLHttpRequest Accept text/javascript, application/javascript, application/ecmascript, application/xecmascript, */*; q=0.01 Referer http://202.106.46.37/index.do AcceptLanguage zh-CN AcceptEncoding gzip, deflate User-Agent Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0) Host 202.106.46.37 DNT 1 Connection Keep-Alive Cookie JSESSIONID=48274E1BD81CA48374ED7D8C1E5AEEA9 Request Body:由于是GET所以为空 Response Header 键 值 响应 HTTP/1.1 200 OK Server Apache-Coyote/1.1 Set-Cookie 13051687401=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT
  • 2. Set-Cookie user_name=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT Set-Cookie OpenAdress=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT Set-Cookie checkbox=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT Content-Type text/html;charset=UTF-8 Transfer-Encoding chunked Date Mon, 02 Sep 2013 07:54:23 GMT Response Body jur1101746535671718619{rsl' Qey70033385220_380333('eut: {bsae:""esoI"",ueifI"",ueolnI""4dd50ffa10 "aNm"",ssind:""srnod:""srnied:0cd24c0e04d dab5ff,keAieie:300""srae:101841,ueNmDmi"" a581a""eplvTm""000,ueNm""35670""sraeoan:1 35670@lnb.hnuio.n,iLgn:tu""esg""ucs""omnM 01841wa.jciancmc""soi""re,msae:sces,raige sae:""eUeOln""""srpndes:1""ieog:""pndes:" sg"",stsrnie:0,ueOeArs""1,tmln"",oeArs"", "a"",wauei"",cinAtTp"",mcdr:""ootoriae:"" sp:""lnsrp:""letuhye:""aAd"",lguCodnt"",d ietr"",ftp rcoy:""sye "",cinTp""""saAt"",bsuhr""tp/22164.7""zae :""letye:2,iMcuh:""aPsUl:ht:/0.0.63/,pPg" :""zrfx:""zoan:""trTm""55:3,lfPt"",vai"", ",pPei"",pDmi"",satie:1:42""etah:""lnd:"" oUl:ht:/0.0.318wa""om:""are"",hmCuty:""oe kr""tp/22163.5/ln,fr"",crir:""oeonr"",hmC are"",pei"",sfi"",lgnie:21-90 rir:""rfx:""ufx:""oiTm""030-2 0:42""areNm"",acutye:""con""35670"} 35:3,crirae:""conTp"",acut:101841}) Cookie 方向 键 值 过期时间 域 路安 仅 径 全 HTTP "" Thu, 01-Jan-1970 00:00:10 GMT 否 否 user_name "" Thu, 01-Jan-1970 00:00:10 GMT 否 否 已接 OpenAdress 收 "" Thu, 01-Jan-1970 00:00:10 GMT 否 否 "" Thu, 01-Jan-1970 00:00:10 GMT 否 否 已发 JSESSIONID 48274E1BD81CA48374ED7D8C1E5AEEA9 送 已接 13051687401 收 已接 收 已接 收 checkbox (2) 分析各参数含义 jquery后面跟的那串数字可能无法模拟,暂时考虑就用原来的 主要是cookie JSESSIONID=48274E1BD81CA48374ED7D8C1E5AEEA9要搞清楚来历 结论是cookie在不手动清除的情况下是不会改变的,当前cookie: JSESSIONID=4003A8C5A8DE955BABAC66B0A6405C02 以后用这个应该就可以 为了保险起见可以把这几个cookie也写上 方向 键 值 已发送 13051687401 123456 已发送 user_name 13051687401 已发送 OpenAdress bj 已发送 checkbox true