Commits

gao shuai committed 6216c7d Draft

init

Comments (0)

Files changed (10)

+#!/usr/bin/env python
+import cookielib, urllib2,urllib
+import re
+import os
+
+username = '18229467518'
+passwd = '103474'
+
+cj = cookielib.CookieJar()
+opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
+
+test = opener.open('http://xiaoxia.org')
+index = opener.open(test.url).read()
+print test.url
+sec=re.findall('window.location="(.*)"',index)[0]
+print sec
+
+
+wlanuserip=''
+wlanacname=''
+log_in_url="https://221.176.1.140/cmcc_mobile_do_login.php"
+
+print sec
+for i in sec.split("?")[1].split("&"):
+	print i
+	print i.split("=")
+	if i.split("=")[0]=="wlanuserip":
+		wlanuserip=i.split("=")[1]
+	if i.split("=")[0]=="wlanacname":
+		wlanacname=i.split("=")[1]
+	if i.split("=")[0]=="wlanacip":
+		wlanacip=i.split("=")[1]
+LogInpostData=\
+{"staticusername" : username,\
+"staticpassword" :passwd,\
+"loginmode":"static",\
+"wlanacname":wlanacname,
+"wlanuserip":wlanuserip,
+"wlanacip":wlanacip,
+"wlanacssid":"CMCC",
+"ualistindex":"UA0999"}
+LogInpostData=urllib.urlencode(LogInpostData)
+log_in=opener.open(log_in_url,LogInpostData)
+print log_in.url
+index=log_in.read()
+
+sec=re.findall('window.location="(.*)"',index)[0]
+print sec
+
+f=file("sec.txt","w+")
+f.write(sec)
+f.close()
+#!/usr/bin/env python
+import cookielib, urllib2,urllib
+import re
+import os
+
+cj = cookielib.CookieJar()
+opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
+
+
+f=file("sec.txt","r")
+sec=f.read()
+f.close()
+
+#logout
+LogOutpostData={}
+
+
+for ce in sec.split("?")[1].split("&"):
+	LogOutpostData[ce.split("=")[0]]=ce.split("=")[1]
+
+LogOutpostData["logouttype"]="TYPESUBMIT"
+
+
+LogOutpostData=urllib.urlencode(LogOutpostData)
+print LogOutpostData
+
+print opener.open('http://221.176.1.140/cmcc_mobile_do_logout.php',LogOutpostData).read()
+

debug_data/do_logout.php

+Request URL:http://221.176.1.140/do_logout.php
+Request Method:POST
+Status Code:200 OK
+Request Headersview source
+Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
+Accept-Charset:UTF-8,*;q=0.5
+Accept-Encoding:gzip,deflate,sdch
+Accept-Language:zh-CN,zh;q=0.8,en-US;q=0.6,en;q=0.4
+Cache-Control:max-age=0
+Connection:keep-alive
+Content-Length:374
+Content-Type:application/x-www-form-urlencoded
+Cookie:PHPSESSID=822741514.43035.0000
+Host:221.176.1.140
+Origin:http://221.176.1.140
+Referer:http://221.176.1.140/user_status.php?username=18229467518&logonsessid=0361.0371.371.00;201209190101001A444E;ps001&wlanacip=221.176.119.178&wlanacname=0361.0371.371.00&wlanuserip=111.7.61.168&logintime=2012-09-19%2001:01:01&remaintime=0&areacode=731&wlanacssid=&productid=22&effecttime=20110907%20000000&expiretime=20380101%20000000&keystr=9ea6cb84cc9adf025ee3e56fa0a78a043e57d3735b3fd6f0&cf=disabled
+User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1
+Form Dataview URL encoded
+username:18229467518
+logintime:2012-09-19 01:01:01
+remaintime:0
+areacode:731
+wlanacip:221.176.119.178
+wlanacname:0361.0371.371.00
+wlanuserip:111.7.61.168
+productid:22
+effecttime:20110907 000000
+expiretime:20380101 000000
+keystr:9ea6cb84cc9adf025ee3e56fa0a78a043e57d3735b3fd6f0
+cf:disabled
+logouttype:TYPESUBMIT
+logonsessid:0361.0371.371.00;201209190101001A444E;ps001
+Response Headersview source
+Connection:close
+Content-Length:1231
+Content-Type:text/html; charset=gbk
+Date:Tue, 18 Sep 2012 17:06:29 GMT
+Server:Apache/2.2.15 (Unix) PHP/5.2.14 mod_ssl/2.2.15 OpenSSL/0.9.8k
+X-Powered-By:PHP/5.2.14

debug_data/index.php.htm

+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!-- saved from url=(0097)http://221.176.1.140/wlan/index.php?wlanacname=0361.0371.371.00&wlanuserip=111.7.61.168&ssid=CMCC -->
+<html><head><meta http-equiv="Content-Type" content="text/html; charset=GBK">
+
+<link rel="Bookmark" href="http://221.176.1.140/images/cmcc_wlan.ico" type="image/x-icon"> 
+<link rel="shortcut icon" href="http://221.176.1.140/images/cmcc_wlan.ico" type="image/x-icon"> 
+
+<!--
+<WISPAccessGatewayParam xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespace SchemaLocation="http://www.acmewisp.com/WISPAccessGatewayParam.xsd">
+<Proxy>
+<MessageType>110</MessageType>
+<NextURL>http://cmccportal.aicent.net/gis.php?Home_operator=&Hotspot_operator=CMCC&Hotspot_location=beijing&Nas_id=0361.0371.371.00&Nas_ip=221.176.119.178&User_ip=111.7.61.168&Portal_ip=221.176.1.140:80&Client_type=wispr</NextURL>
+<ResponseCode>200</ResponseCode>
+<Delay>2</Delay>
+</Proxy>
+</WISPAccessGatewayParam>
+-->
+
+<!-- cmcccs|login_req||||http://221.176.1.140/cmcc_self_index.php|http://221.176.1.142:8002/wlan/WlanService|http://221.176.1.140/cmcc_self_index.php-->
+
+
+
+<meta http-equiv="Cache-Control" content="no-cache">
+<title></title>
+
+<style type="text/css"></style><style type="text/css">.jlhlebbhengjlhmcjebbkambaekglhkf {top: 0px; left: 0px;min-width: 30px;max-width: 300px;font-size: 13px;font-family: arial, helvetica, sans-serif;opacity: .93;padding:0px;position:absolute;display:block;z-index: 999997;font-style: normal;font-variant: normal;font-weight: normal;}#jlhlebbhengjlhmcjebbkambaekglhkf_up{text-align: center;padding:0px;margin: 0px;}#jlhlebbhengjlhmcjebbkambaekglhkf_cont{background-color: #729FCF;font-family: arial, helvetica, sans-serif-webkit-box-shadow: #729FCF 0px 0px 2px;color: #FFFFFF;padding:7px;-webkit-border-radius: 5px;}#jlhlebbhengjlhmcjebbkambaekglhkf_down{text-align: center;padding:0px;margin: 0px;}</style></head>
+
+
+<frameset rows="1500,*" border="0" framespacing="0" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes">
+
+<frame src="./index.php_files/do_login.htm" name="input" scrolling="yes" marginwidth="0" marginheight="0"> 
+ 
+
+<noframes>
+&lt;body&gt;
+&lt;form name="loginform" action="https://221.176.1.140/wlan/index.php" method="post"&gt;
+
+&lt;input  type="hidden" name="wlanacname" value="0361.0371.371.00"&gt;
+&lt;input  type="hidden" name="wlanuserip" value="111.7.61.168"&gt;
+&lt;input  type="hidden" name="wlanacssid" value="CMCC"&gt;
+&lt;input  type="hidden" name="actiontype" value="LOGIN"&gt;
+&lt;input  type="hidden" name="languagetype" value=""&gt;
+&lt;input  type="hidden" name="booktime" value=""&gt;
+&lt;input  type="hidden" name="validperiod" value=""&gt;
+&lt;input  type="hidden" name="logonsessid" value=""&gt;
+&lt;/form&gt;
+
+
+&lt;/body&gt;
+</noframes>
+</frameset>
+
+
+
+
+
+</html>

debug_data/index.php_files/do_login.htm

+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!-- saved from url=(0034)https://221.176.1.140/do_login.php -->
+<html><head><meta http-equiv="Content-Type" content="text/html; charset=GBK">
+
+<meta http-equiv="Cache-Control" content="no-cache">
+<title>User Status</title>
+
+<script language="JavaScript">
+function setCookie(name, value, datenum)
+{
+		var expires=new Date();
+		expires.setTime(expires.getTime()+datenum*24*60*60*1000);
+
+		document.cookie=name+"="+escape(value)+"; expires="+expires.toGMTString()+"; path=/; secure";
+
+}
+
+
+
+function popupprovopintro()
+{
+window.open('http://221.176.1.140:80/provopintro.php?pcode=731&key=', 'popup1347987206', 'width=850,height=600,resizable=0 ,status=no,toolbar=no,location=no,menu=no'); 
+}
+//window.onload = popupprovopintro;
+
+</script>
+
+<style type="text/css"></style></head>
+<frameset rows="600,*" border="0" framespacing="0" frameborder="0" marginwidth="0" marginheight="0"><frame src="user_status.htm" name="status" scrolling="no" marginwidth="0" marginheight="0"><noframes>
+&lt;body&gt;
+&lt;/body&gt;
+</noframes>
+</frameset>
+
+
+</html>

debug_data/index.php_files/index.php.htm

+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!-- saved from url=(0097)http://221.176.1.140/wlan/index.php?wlanacname=0361.0371.371.00&wlanuserip=111.7.61.168&ssid=CMCC -->
+<html><head><meta http-equiv="Content-Type" content="text/html; charset=GBK">
+
+<link rel="Bookmark" href="http://221.176.1.140/images/cmcc_wlan.ico" type="image/x-icon"> 
+<link rel="shortcut icon" href="http://221.176.1.140/images/cmcc_wlan.ico" type="image/x-icon"> 
+
+<!--
+<WISPAccessGatewayParam xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespace SchemaLocation="http://www.acmewisp.com/WISPAccessGatewayParam.xsd">
+<Proxy>
+<MessageType>110</MessageType>
+<NextURL>http://cmccportal.aicent.net/gis.php?Home_operator=&Hotspot_operator=CMCC&Hotspot_location=beijing&Nas_id=0361.0371.371.00&Nas_ip=221.176.119.178&User_ip=111.7.61.168&Portal_ip=221.176.1.140:80&Client_type=wispr</NextURL>
+<ResponseCode>200</ResponseCode>
+<Delay>2</Delay>
+</Proxy>
+</WISPAccessGatewayParam>
+-->
+
+<!-- cmcccs|login_req||||http://221.176.1.140/cmcc_self_index.php|http://221.176.1.142:8002/wlan/WlanService|http://221.176.1.140/cmcc_self_index.php-->
+
+
+
+<meta http-equiv="Cache-Control" content="no-cache">
+<title></title>
+
+<style type="text/css"></style><style type="text/css">.jlhlebbhengjlhmcjebbkambaekglhkf {top: 0px; left: 0px;min-width: 30px;max-width: 300px;font-size: 13px;font-family: arial, helvetica, sans-serif;opacity: .93;padding:0px;position:absolute;display:block;z-index: 999997;font-style: normal;font-variant: normal;font-weight: normal;}#jlhlebbhengjlhmcjebbkambaekglhkf_up{text-align: center;padding:0px;margin: 0px;}#jlhlebbhengjlhmcjebbkambaekglhkf_cont{background-color: #729FCF;font-family: arial, helvetica, sans-serif-webkit-box-shadow: #729FCF 0px 0px 2px;color: #FFFFFF;padding:7px;-webkit-border-radius: 5px;}#jlhlebbhengjlhmcjebbkambaekglhkf_down{text-align: center;padding:0px;margin: 0px;}</style></head>
+
+
+<frameset rows="1500,*" border="0" framespacing="0" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes">
+
+<frame src="./index.php_files/do_login.htm" name="input" scrolling="yes" marginwidth="0" marginheight="0"> 
+ 
+
+<noframes>
+&lt;body&gt;
+&lt;form name="loginform" action="https://221.176.1.140/wlan/index.php" method="post"&gt;
+
+&lt;input  type="hidden" name="wlanacname" value="0361.0371.371.00"&gt;
+&lt;input  type="hidden" name="wlanuserip" value="111.7.61.168"&gt;
+&lt;input  type="hidden" name="wlanacssid" value="CMCC"&gt;
+&lt;input  type="hidden" name="actiontype" value="LOGIN"&gt;
+&lt;input  type="hidden" name="languagetype" value=""&gt;
+&lt;input  type="hidden" name="booktime" value=""&gt;
+&lt;input  type="hidden" name="validperiod" value=""&gt;
+&lt;input  type="hidden" name="logonsessid" value=""&gt;
+&lt;/form&gt;
+
+
+&lt;/body&gt;
+</noframes>
+</frameset>
+
+
+
+
+
+</html>

debug_data/index.php_files/user_status.htm

+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!-- saved from url=(0399)http://221.176.1.140/user_status.php?username=18229467518&logonsessid=0361.0371.371.00;201209190053261A43A3;ps001&wlanacip=221.176.119.178&wlanacname=0361.0371.371.00&wlanuserip=111.7.61.168&logintime=2012-09-19%2000:53:26&remaintime=0&areacode=731&wlanacssid=&productid=22&effecttime=20110907%20000000&expiretime=20380101%20000000&keystr=9ea6cb84cc9adf025ee3e56fa0a78a043e57d3735b3fd6f0&cf=disabled -->
+<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=GBK">
+
+<title>Portal UserStatus</title>
+<link href="wlanPortal.css" rel="stylesheet" type="text/css">
+<script language="JavaScript1.1" src="clock.js"></script><style type="text/css"></style>
+<script language="JavaScript">
+<!--
+
+function chgprovince(theform,seltext)
+{
+	var pcode;
+	var plink;
+	if(seltext==null)
+	{
+		return false
+	}
+
+	if(seltext=="S_E_L")
+	{
+		alert("��ѡ�����ʡ�ݣ�");
+		return false;
+	}
+
+	sellist = seltext.split("|");
+	listnum = sellist.length;
+
+	if( listnum != 2)
+	{
+		alert("��ʡҳ���������");
+		return false;
+	}
+	pcode = sellist[0];
+	plink = sellist[1];
+	window.open (plink,'plind',"");
+
+	return true
+}
+
+
+function KeyDown()
+{
+  	if ((event.keyCode ==   8)||            //�����˸�ɾ����
+    	(event.keyCode == 114)||
+    	(event.keyCode == 116)||			//���� F5 ˢ�¼�
+    	(event.keyCode == 122)) 			//���� F12 ˢ�¼�
+    {
+     	event.keyCode=0;
+     	event.returnValue=false;
+     }
+
+	if ((window.event.altKey)&& ((window.event.keyCode==37)||(window.event.keyCode==39))) // ���� Alt + -> �� Alt+ <-
+	{
+		event.returnValue=false;
+	}
+
+	if (window.event.ctrlKey ||(event.shiftKey)&&(event.keyCode==121)) //���� Ctrl �� �� shift+F10
+	{
+		event.returnValue=false;
+	}
+}
+
+var IsSubmitLogout = 0;
+
+var IsConfirmIsFalse = 0;
+
+function ButtonSubmit(thisform)
+{
+	if( !confirm("��ȷ�����ߣ�") ) 
+	{
+		IsConfirmIsFalse = 1;
+		return false;
+	}
+
+	IsSubmitLogout = 1;
+	thisform.logouttype.value = "TYPESUBMIT";
+
+	thisform.action='do_logout.php';
+	thisform.submit();
+	return true;
+
+}
+
+
+function exitFunc()
+{
+/*
+	if( IsConfirmIsFalse == 1)
+	{
+		return false;
+	}
+*/
+	if(IsSubmitLogout == 1)
+	{
+		return false;
+	}
+
+	//var message = "�ڱ�ҳ��ֱ�ӷ���������ַ����������������ߣ��������������ҳ���밴��ȡ������ť�������µ�IE���ڽ��к������ʡ�";
+var message = "�ڱ�ҳ��ֱ�ӷ���������ַ����������������ߣ��������������ҳ���밴��ȡ������ť�������µ�IE���ڽ��к������ʡ�"; 
+	if (typeof evt == "undefined")
+	{
+		evt = window.event;
+	}
+
+	if (evt)
+	{
+		evt.returnValue = message;
+	}
+
+
+	return true;
+}
+
+
+function RunOnUnload()
+{
+	/*
+	if( IsConfirmIsFalse == 1)
+	{
+		return false;
+	}
+*/
+	if( IsSubmitLogout == 1)
+	{
+		return;
+	}
+
+	var toTop;
+	var toLeft;
+	var sh = screen.height;
+	var sw = screen.width;
+
+	heightStr = 20;
+	widthStr = 250;
+
+
+	toTop  = parseInt((sh - heightStr)/2)-10;
+	toLeft = parseInt((sw - widthStr )/2);
+
+	var sstyle = "width="+widthStr+",height="+heightStr+",resizable=no,scrollbars=0,status=no,toolbar=no,location=no,menu=no,left="+toLeft+",top="+toTop;
+
+	if(document.getElementById("cancelinfoid").checked)
+	{
+	window.open('do_logout.php?logonsessid=0361.0371.371.00;201209190053261A43A3;ps001&wlanuserip=111.7.61.168&logouttype=URL&cancelinfo=yes&username=18229467518', 'Logout1347987207', sstyle);	}
+	else
+	{
+window.open('do_logout.php?logonsessid=0361.0371.371.00;201209190053261A43A3;ps001&wlanuserip=111.7.61.168&logouttype=URL&cancelinfo=', 'Logout1347987207', sstyle);	}
+
+	window.top.opener = null;
+
+��	window.top.open("","_self");
+��	window.top.close();
+}
+
+
+var onlinetime = 0
+function initFunc()
+{
+	myDate = new Date();
+
+	seconds = (myDate.getTime() + onlinetime*1000 - inittime)/1000
+	updateAllClocks();
+
+	setTimeout('initFunc()',1000);
+}
+
+
+function do_loginself(username)
+{
+
+	var myurl = './do_login_self.php?keystr=9ea6cb84cc9adf025ee3e56fa0a78a043e57d3735b3fd6f0&username=18229467518&logonsessid=0361.0371.371.00;201209190053261A43A3;ps001'; 
+	//var myurl1 = myurl+"&irand="+Math.random();
+	//document.getElementById('loginselfid').href=myurl1;
+	document.getElementById('loginselfid').href=myurl;
+}
+
+
+-->
+</script>
+</head>
+<!--
+<body oncontextmenu="window.event.returnValue=false" onkeydown="KeyDown()" onload='initFunc()' onbeforeunload ='exitFunc()' onunload="RunOnUnload()">
+-->
+<body oncontextmenu="window.event.returnValue=false" onkeydown="KeyDown()" onload="initFunc()" onbeforeunload="exitFunc()" onunload="RunOnUnload()" marginwidth="0" marginheight="0">
+<script language="JavaScript1.1">seconds=0</script><div id="wrapper">
+	<div id="header">
+		<h1 class="logo"><strong>��ӭʹ�á���e�С�ҵ��</strong></h1>
+		<div class="worldwide"><a href="http://221.176.1.140/html/serviceInfo.html" target="_blank">ҵ��ʹ��˵��</a></div>
+		<div class="clear"></div>
+	</div>
+	<div id="content">
+		<form name="portal" method="POST" action="" onsubmit="return false;">
+			<div class="loginInContent">
+				<h2>�û���¼�ɹ�</h2>
+				<ul class="login">
+					<li>
+						<label>�û�����</label>
+							18229467518					</li>
+					<li>
+						<label>����ʱ�䣺</label>
+						<script language="JavaScript1.1">clock = new Clock(6);</script><img class="clock" src="n0.gif" width="15" height="20" border="0"><img class="clock" src="n0.gif" width="15" height="20" border="0"><img class="clock" src="col.gif" width="9" height="20" border="0"><img class="clock" src="n0.gif" width="15" height="20" border="0"><img class="clock" src="n0.gif" width="15" height="20" border="0"><img class="clock" src="col.gif" width="9" height="20" border="0"><img class="clock" src="http://221.176.1.140/images/n3.gif" width="15" height="20" border="0"><img class="clock" src="n0.gif" width="15" height="20" border="0">
+					</li>
+					<li>
+						<label>�ײ���Ϣ��</label>
+						<p>
+����ǰʹ�õ���WLAN��׼�ʷ�,��0.05Ԫ/������ȡWLAN��������<!--
+						�ײ�����/ʣ��ʱ�����ʱ��ʣ��ʱ�����ʱ��ʣ��ʱ�����ʱ��ʣ��ʱ�����ʱ��ʣ��ʱ�����ʱ��ʣ��ʱ�����ʱ��ʣ��ʱ�����ʱ��ʣ��ʱ�����ʱ��ʣ��ʱ�����ʱ��ʣ��ʱ�����ʱ��ʣ��ʱ�����ʱ��ʣ��ʱ�����ʱ��ʣ��ʱ�����ʱ��ʣ��ʱ�����ʱ��ʣ��ʱ�����ʱ��ʣ��ʱ�����ʱ��ʣ��ʱ�����ʱ��
+-->
+						</p><p>
+					</p></li>
+					<li>
+						<input type="checkbox" name="cancelinfo" id="cancelinfoid" value="yes" disabled="">
+						ȡ���Զ���¼���ܣ�������߰�ť����Ч��
+					</li>
+					<li style="color:#C00; font-weight:bold; font-size:14px;">
+						�������߰�ť������߲������������ɷ��������ߣ�������ʹ����ɲ��㡣
+					</li>
+					<li class="loginCtrl">
+						<input type="button" value="�� ��" onclick="ButtonSubmit(this.form)">
+					</li>
+					<li class="center">
+						<a id="loginselfid" href="" onclick="do_loginself(&quot;18229467518&quot;)" target="_blank">�û��Է���</a>
+					</li>
+				</ul>
+			</div>
+
+ <input type="hidden" name="username" value="18229467518"> 
+ <input type="hidden" name="logintime" value="2012-09-19 00:53:26"> 
+ <input type="hidden" name="remaintime" value="0"> 
+ <input type="hidden" name="areacode" value="731"> 
+ <input type="hidden" name="wlanacip" value="221.176.119.178"> 
+ <input type="hidden" name="wlanacname" value="0361.0371.371.00"> 
+ <input type="hidden" name="wlanuserip" value="111.7.61.168"> 
+ <input type="hidden" name="productid" value="22"> 
+ <input type="hidden" name="effecttime" value="20110907 000000"> 
+ <input type="hidden" name="expiretime" value="20380101 000000"> 
+ <input type="hidden" name="keystr" value="9ea6cb84cc9adf025ee3e56fa0a78a043e57d3735b3fd6f0"> 
+ <input type="hidden" name="cf" value="disabled"> 
+ <input type="hidden" name="logouttype" value=""> 
+ <input type="hidden" name="logonsessid" value="0361.0371.371.00;201209190053261A43A3;ps001"> 
+		</form>
+	</div>
+	<div id="footer"><span class="fR">
+		<a href="http://www.miibeian.gov.cn/" target="_blank">��ICP��05002571��</a>|�й��ƶ�ͨ�Ű�Ȩ����</span>
+	</div>
+</div>
+
+
+</body></html>

debug_data/logout_sucessful.php

+Request URL:http://221.176.1.140/logout_success.php
+Request Method:GET
+Status Code:200 OK
+Request Headersview source
+Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
+Accept-Charset:UTF-8,*;q=0.5
+Accept-Encoding:gzip,deflate,sdch
+Accept-Language:zh-CN,zh;q=0.8,en-US;q=0.6,en;q=0.4
+Connection:keep-alive
+Cookie:PHPSESSID=822741514.43035.0000
+Host:221.176.1.140
+Referer:http://221.176.1.140/do_logout.php
+User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1
+Response Headersview source
+Connection:close
+Content-Length:1135
+Content-Type:text/html; charset=gbk
+Date:Tue, 18 Sep 2012 17:06:30 GMT
+Server:Apache/2.2.15 (Unix) PHP/5.2.14 mod_ssl/2.2.15 OpenSSL/0.9.8k
+X-Powered-By:PHP/5.2.14

handle_user_status.py

+#!/usr/bin/env python
+import re
+import os
+f=file("user_status.htm","r")
+for l in f.readlines():
+    print re.findall(""" <input type="hidden" name="(.*)" value="(.*)">.*""",l)
+http://221.176.1.140:80/cmcc_mobile_user_status.php?username=18229467518&logonsessid=0361.0371.371.00;201209190352201B039B;ps001&wlanacip=221.176.119.178&wlanacname=0361.0371.371.00&wlanuserip=111.7.61.168&logintime=2012-09-19 03:52:20&remaintime=0&areacode=731&wlanacssid=&productid=22&effecttime=20110907 000000&expiretime=20380101 000000&keystr=9ea6cb84cc9adf025ee3e56fa0a78a043e57d3735b3fd6f0&cf=disabled&ualistindex=UA0999