请高手帮忙登录个网站,做个技术尝试,分析包也无法进入,无验证码

hanguoji84 2010-01-27 10:51:39
地址:http://mall.cnfol.com/LoginBar.php 登录成功马上结贴。谢谢了。


用工具:Visual Sniffer 分析包中内容摘录部分如下:

cookie[passport][userId]=4273320;
cookie[passport][username]=hanguoji;
cookie[passport][nickname]=garyhan;
cookie[passport][password]=e87f45a5e59a602e945c79203afed09a;
cookie[passport][money]=0;
cookie[passport][keys]=66DB1F0631DD31E2E4659CA41F54706B;
cookie[passport][logtime]=1263837702

cookie[passport][userId]=4273320;
cookie[passport][username]=hanguoji;
cookie[passport][nickname]=garyhan;
cookie[passport][password]=d3673f8bd4ebbf137f173f0bb5675338;
cookie[passport][money]=0;
cookie[passport][keys]=210FCC20FCAD98EB60D469D860DB75A7;
cookie[passport][logtime]=1263839879


但传递所需参数却不能通过验证,post地址:strURL= "http://passport.cnfol.com/accounts/Login"
反复修改参数内容:strArgs = "username=hanguoji&password=hanguoji&act=login&from=&type=0"
代码如下:


HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(strURL);
myHttpWebRequest.AllowAutoRedirect = true;
myHttpWebRequest.KeepAlive = true;
myHttpWebRequest.Accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*";
myHttpWebRequest.Referer = strReferer;

myHttpWebRequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon; .NET CLR 2.0.50727)";
myHttpWebRequest.ContentType = "application/x-www-form-urlencoded";
myHttpWebRequest.Method = "POST";

CookieCollection myCookies = null;
CookieContainer myCookieContainer = new CookieContainer();
myHttpWebRequest.CookieContainer = myCookieContainer;

Stream MyRequestStrearm = myHttpWebRequest.GetRequestStream();
StreamWriter MyStreamWriter = new StreamWriter(MyRequestStrearm,System.Text.Encoding.GetEncoding("UTF-8")); //Encoding.ASCII gb2312
//把数据写入HttpWebRequest的Request流
MyStreamWriter.Write(strArgs);
//关闭打开对象
MyStreamWriter.Close();
MyRequestStrearm.Close();

HttpWebResponse response = null;
//System.IO.StreamReader srContent = null;
response = (HttpWebResponse)myHttpWebRequest.GetResponse();

cookieHeader = myHttpWebRequest.CookieContainer.GetCookieHeader(new Uri(strURL));
myCookies = response.Cookies;
//新增07-30 HGJ
System.IO.StreamReader sr = null;
sr = new System.IO.StreamReader(response.GetResponseStream(), Encoding.GetEncoding("UTF-8")); //, Encoding.GetEncoding("gb2312") //utf-8
strResult = sr.ReadToEnd();

response.Close();




不知为何。请帮忙尝试下。成功了十分感谢。
...全文
341 39 打赏 收藏 转发到动态 举报
写回复
用AI写文章
39 条回复
切换为时间正序
请发表友善的回复…
发表回复
hanguoji84 2010-03-05
  • 打赏
  • 举报
回复
能给个源代码不兄弟?
bbaxx101 2010-03-02
  • 打赏
  • 举报
回复
POST /accounts/Login HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
Referer: http://mall.cnfol.com/LoginBar.php
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; CIBA; .NET CLR 2.0.50727)
Host: passport.cnfol.com
Content-Length: 133
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: Hm_lvt_c378c4854ec370c1c8438f72e19b7170=1263021722656; SUV=1263022645983485; IPLOC=CN4403


把其他信息获取的信息也发给你看吧!
bbaxx101 2010-03-02
  • 打赏
  • 举报
回复
act=login&type=0&return=http%3A%2F%2Fvip.mall.cnfol.com%2F&force=&username=hanguoji&password=hanguoji&imageField.x=17&imageField.y=11
POST的数据是这些
随风落梦 2010-03-02
  • 打赏
  • 举报
回复
友情帮顶!呵呵^^^^
hanguoji84 2010-03-02
  • 打赏
  • 举报
回复
老兄我加上了参数但没有成功。。。。。能给出你登录的完整代码么?
whb147 2010-03-02
  • 打赏
  • 举报
回复
现在还没有搞定?
我都已经搞完了,用这个去下载别人站的图片了


引用 34 楼 hanguoji84 的回复:
老兄我加上了参数但没有成功。。。。。能给出你登录的完整代码么?
whb147 2010-02-23
  • 打赏
  • 举报
回复
引用 32 楼 hanguoji84 的回复:
十分感谢楼上的兄弟,我尝试下,能讲解下你登录这个传递参数的技巧么?如何寻找的,传授下,学习学习!

我不是已经给你答案了吗?

就修改了传递参数登陆进去了

详细请参阅
http://topic.csdn.net/u/20100222/12/62d3f25f-5973-4b45-af7d-5c05dacac830.html

揭帖吧
hanguoji84 2010-02-23
  • 打赏
  • 举报
回复
十分感谢楼上的兄弟,我尝试下,能讲解下你登录这个传递参数的技巧么?如何寻找的,传授下,学习学习!
hanguoji84 2010-02-22
  • 打赏
  • 举报
回复
请 CalvinDo 指教下,如何登录成功的!有代码给大家学习下么?
whb147 2010-02-22
  • 打赏
  • 举报
回复
字符串里有密码和账号

引用 30 楼 gdlpc 的回复:
叫你们做黑客吧!...........
gdlpc 2010-02-22
  • 打赏
  • 举报
回复
叫你们做黑客吧!...........
gdlpc 2010-02-22
  • 打赏
  • 举报
回复
无用户名和密码,你叫别人如何登录,荒谬!!!!!

Not Founddocument.writeln('
'); document.writeln(''); document.writeln('
'); document.writeln(' '); document.writeln(' '); document.writeln(' 用户名: '); document.writeln(' 密码: '); document.writeln(' '); document.writeln(' 忘记密码 '); document.writeln('
'); document.writeln('
'); document.writeln(' '); document.writeln('
'); document.getElementById('return').value=top.location.href;
The requested URL /&flag=1 was not found on this server.
gdlpc 2010-02-22
  • 打赏
  • 举报
回复
不明白是什么意思!登录成功马上结贴?
http://mall.cnfol.com/LoginBar.php
whb147 2010-02-22
  • 打赏
  • 举报
回复
在你的参数后面加上即可,
strArgs += "&imageField.x=5&imageField.y=5&act=login&force=&type=0&return=" + HttpUtility.UrlEncode("http://vip.mall.cnfol.com");

详细请参阅
http://topic.csdn.net/u/20100222/12/62d3f25f-5973-4b45-af7d-5c05dacac830.html
我折腾了2天,呵呵
whb147 2010-02-22
  • 打赏
  • 举报
回复
post的速度有点慢
要16秒左右
whb147 2010-02-22
  • 打赏
  • 举报
回复
已经登陆成功,登录后进入我的账号的html
sHtml
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" />\r\n<title>中金在线-我的帐户信息</title>\r\n<link href=\"http://s.cnfolimg.com/v5.0/css/passport/passport08-min.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n</head>\r\n\r\n<body>\r\n<center>\r\n<div class=\"top\">\r\n <div class=\"top1\"><a href=\"http://passport.cnfol.com\" target=\"_blank\"><img src=\"http://i0.cnfolimg.com/uploads/v5.0/passport/top.gif\" border=\"0\" /></a></div>\r\n <div class=\"top-l\">\r\n <div class=\"lj8\" style=\"height:15px;text-align:right;padding:15px 15px 0 0;\"><a href=\"http://passport.cnfol.com/accounts/ShowDynamic\" target=\"_blank\">体验新版用户中心</a></div>\r\n <div class=\"lj8\" style=\"padding-top:15px;padding-right:15px;float:right;text-align:right;\">  <A href=\"http://passport.cnfol.com/messages/InBox\" class=\
" link_b\" target=_blank>站内短信</A>(<script src=\"http://api.passport.cnfol.com/getinfo/0/blog\"></script>)  <A href=\"http://passport.cnfol.com\" class=\" link_b\" target=_blank>我的帐户</a>  <a href=\"http://passport.cnfol.com/pay/SaveMoneyMenu,sh\" target=\"_blank\">充值</a>  <A href=\"http://passport.cnfol.com/member/Profile/0\" target=_blank>我的主页</a>  <a href=\"http://passport.cnfol.com/friends/FriendList\" target=\"_blank\">我的好友</a>  <a href=\"http://www.cnfol.com/\" target=\"_blank\">中金在线</a>  <A href=\"http://passport.cnfol.com/accounts/Logout\" class=\" link_b\">退出</A></div>\r\n</div>\r\n</div>\r\n<script>window.top.location.href='http://passport.cnfol.com/accounts/Login,aHR0cDovL3Bhc3Nwb3J0LmNuZm9sLmNvbS9hY2NvdW50cy9NeUFjY291bnQ=';</script>"
l171147904 2010-02-22
  • 打赏
  • 举报
回复
楼主想干什么。。。这网站!!!

中金啊!

' or 1=1 --
CalvinDo 2010-02-22
  • 打赏
  • 举报
回复
是不是中金在线???、
whb147 2010-02-22
  • 打赏
  • 举报
回复
我今天也在玩模拟登陆,晚上回去测试一下,呵呵
whb147 2010-02-22
  • 打赏
  • 举报
回复
哈哈哈
莫非是图片按钮的问题?
加载更多回复(18)

62,265

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

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