抓包问题。抓包

glacierword 2011-01-13 01:15:35
POST包返回以下数据 POST /login.php?

POST /login.php? HTTP/1.1
Accept: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: http://bbs.leshan.cn/login.php
Accept-Language: zh-CN
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.1)
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Host: bbs.leshan.cn
Content-Length: 114
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: b971d_c_stamp=1294895243; b971d_lastvisit=90%091294895243%09%2Flogin.php; b971d_lastpos=other; b971d_cknum=BgJYBVpbAQIHDjA5BlFXXwcAUQFRBloDBQMAVVhTUVYCD1FXAAlQUwEBVgQ%3D; b971d_ol_offset=96709; lzstat_uv=17252624493684770983|1694322; lzstat_ss=1365361343_0_1294924064_1694322




POST下面的一个包返回 forward=&jumpurl

forward=&jumpurl=index.php&step=2&lgt=0&pwuser=qq123123&pwpwd=q123123&hideid=0&cktime=31536000&submit=%B5%C7%C2%BC



怎么解释呀。。这啥子封包 应该怎么写。我是要做一个POST登陆论坛!
...全文
162 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
hongqi162 2011-01-14
  • 打赏
  • 举报
回复
你执行post的时候没登陆
cntigercat 2011-01-13
  • 打赏
  • 举报
回复
主要就是要设置COOKIE
bdmh 2011-01-13
  • 打赏
  • 举报
回复
用idhttp把这些参数都传进去,比如,下面是淘宝的

FParamList:TStringList;
FInfoGet是idhttp


FInfoGet.HandleRedirects:=False;
FInfoGet.OnRedirect:=MyRedirect;
FInfoGet.Request.UserAgent:='Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)';
FInfoGet.Request.ContentType:='application/x-www-form-urlencoded';
//FInfoGet.Request.Connection:='Keep-Alive';
FInfoGet.Request.CacheControl := 'no-cache';
FInfoGet.Request.AcceptLanguage := 'zh-cn';
FInfoGet.Request.Accept:='*/*';
FInfoGet.Request.Method := hmPost;

FParamList.Clear;
FParamList.Add('TPL_username=xxxxxxx');
FParamList.Add('TPL_password=xxxxxx');
FParamList.Add('_tb_token_=');
FParamList.Add('action=Authenticator');
FParamList.Add('event_submit_do_login=anything');
FParamList.Add('TPL_redirect_url=');
FParamList.Add('from=tb');
FParamList.Add('fc=2');
FParamList.Add('style=default');
FParamList.Add('tid=XOR_1_111000000000000000000000000000_63584421307E09797204760B');
FParamList.Add('support=000001');
FParamList.Add('CtrlVersion=1,0,0,7');
FParamList.Add('loginType=3');
FParamList.Add('minititle=');
FParamList.Add('minipara=');
FParamList.Add('pstrong=2');
FParamList.Add('longLogin=-1');
FParamList.Add('llnick=');
FParamList.Add('sign=');
FParamList.Add('need_sign=');
FParamList.Add('isIgnore=');
FParamList.Add('popid=');
FParamList.Add('callback=');
FParamList.Add('not_duplite_str=');
FParamList.Add('need_user_id=');
FParamList.Add('from_encoding=');
FInfoGet.Request.ContentLength:=Length(FParamList.Text);

1,593

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 网络通信/分布式开发
社区管理员
  • 网络通信/分布式开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧