找回密码
 加入
搜索
查看: 7695|回复: 10

[IE类操作] 抓包抓到这段POST代码。如何用AU3实现?

  [复制链接]
发表于 2010-4-21 18:51:04 | 显示全部楼层 |阅读模式
POST /account/activate HTTP/1.1..Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*..Referer: http://www.7uif.com/account/activation_input..Accept-Language: zh-cn..Content-Type: application/x-www-form-urlencoded..UA-CPU: x86..Accept-Encoding: gzip, deflate..User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; QQPinyin 689; QQPinyin 730; GTB6.4)..Host: www.7uif.com..Content-Length: 165..Connection: Keep-Alive..Cache-Control: no-cache..Cookie: cc=45d5ff67c58bfede8026bb6b8bb18d6bd1709884; u=17acab40f310e9472ecf06cd49af61ff48ecde28; pt=2bhmegzjzcb0mr2z71ewfzqqr.yqeenq; __utmc=244509123; __utma=244509123.604687659.1271845603.1271845603.1271845603.1; __utmb=244509123.37.10.1271845603; __utmz=244509123.1271845603.1.1.utmcsr=tzyol.7uif.com|utmccn=(referral)|utmcmd=referral|utmcct=/activation.html....userId=fengzitzy&userIdConfirm=fengzitzy&number=3aadvccx&followup=http%3A%2F%2Ftzyol.7uif.com%2Fiframe%2Factivation_ok%2Factivation_ok.html&submit=%E7%A1%AE%E8%AE%A4
 楼主| 发表于 2010-4-21 18:51:36 | 显示全部楼层
其中 fengzitzy 是账号。 3aadvccx 是当前激活码。无效。
 楼主| 发表于 2010-4-21 19:16:45 | 显示全部楼层
你能不能 换下行 看的头好疼。。
chenjiaji 发表于 2010-4-21 18:53



    我也看不懂。 抓包工具抓出来就这个样子。
 楼主| 发表于 2010-4-21 19:17:29 | 显示全部楼层
我自己写了这个模拟手工操作的工具已经激活成功了好多号了,可惜就是不知道POST怎么操作。
代码如下。
#NoTrayIcon
HotKeySet ("{F9}","quit")
$id=InputBox("账号设置","请输入您的账号!","","",200,80)
MsgBox(0,"提示","程序开始后可以按F9退出。")
If WinExists("天之翼OL-账号激活") Then
        Sleep(100)
        WinActivate("天之翼OL-账号激活")
        Sleep(200)
        MouseClick("left",510,340,1,1)
        Send("{tab 4}")
        Send($id)
        Send("{tab}")
        Send($id)
Else
        Run("C:\Program Files\Internet Explorer\iexplore.exe http://tzyol.7uif.com/activation.html")
        WinWaitActive("天之翼OL-账号激活")
        WinSetState("天之翼OL-账号激活","",@SW_MAXIMIZE)
        Sleep(1000)
        MouseClick("left",510,353,1,1)
        Sleep(200)
        Send($id)
        Send("{tab}")
        Send($id)
EndIf
While 1
InetGet("http://vote.newgame.17173.com/taohao.php?id=401","souce.txt",1)
$str=FileRead("souce.txt")
$1=StringSplit($str,"red>",1)
$2=StringSplit($1[2],"</font>",1)
$CODE=$2[1]

MouseClick("left",510,423,2,1)
Send($CODE)
Send("{enter}")
Sleep(200)
MouseClick("left",510,423,2,1)
Sleep(200)
WEnd

Func quit()
        Exit
EndFunc
发表于 2010-4-21 21:11:51 | 显示全部楼层
抓包都抓错了,唉!
发表于 2010-4-21 21:13:17 | 显示全部楼层
要提取POST提交时的数据,你给出这么一堆代码,我能看懂,不过实话说了,没找到最关键的Post提交数据!
发表于 2010-4-22 00:40:11 | 显示全部楼层
userId=fengzitzy&userIdConfirm=fengzitzy&number=3aadvccx&followup=http%3A%2F%2Ftzyol.7uif.com%2Fiframe%2Factivation_ok%2Factivation_ok.html
发表于 2010-4-22 00:50:55 | 显示全部楼层
$web = "http://www.7uif.com/account/register_simple_step1"
$oHTTP = ObjCreate("microsoft.xmlhttp")
$oHTTP.Open("post", $web, False)
$oHTTP.setRequestHeader("Cache-Control", "no-cache")
$oHTTP.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
$oHTTP.setRequestHeader("Content-Length", "31")
$oHTTP.Send("userId=r123456&passwordText=123456&passwordConfirm=123456&email=123456@qq.com&captchaText=vdeu&agreement=on&followup=http%3A%2F%2Ftzyol.7uif.com%2Fiframe%2Fregister_ok1%2Fregister_ok1.html")
MsgBox(0,'',BinaryToString($oHTTP.responseText))
 楼主| 发表于 2010-4-25 11:46:36 | 显示全部楼层


如图。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2010-5-19 17:20:17 | 显示全部楼层
换了头像我再告诉你
发表于 2010-6-10 22:42:48 | 显示全部楼层
确实头像让人觉得不舒服。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-18 21:15 , Processed in 0.089203 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表