找回密码
 加入
搜索
查看: 3324|回复: 2

[网络通信] 一个很简单的post发广告,如今卡主了..求高手帮帮忙

[复制链接]
发表于 2013-7-24 21:50:25 | 显示全部楼层 |阅读模式
我要写一个自动发广告的软件。
目标网站是:www.0453.com
核对密码的网址是:http://www.0453.com/usercheck.asp
提交广告的网址是:http://www.0453.com/user/dbsave.asp
这个网址我也研究过了,是明文传送方式.
模仿论坛已有的代码,前几天测试成功了.很是兴奋.但是转过头来再一测试就不好使了!
另附上账号一枚以便高手测试: USER:635773624        PASS:qwe123654
若是有高手能指点一二小弟不胜感激,传个资料啥的也行啊.


以下是我修改的代码:
$oHTTP = ObjCreate("microsoft.xmlhttp")
$oHTTP.Open("post","http://www.0453.com/usercheck.asp",false)
$oHTTP.setRequestHeader("Cache-Control", "no-cache")
$oHTTP.setRequestHeader("Accept-Language", "zh-cn")
$oHTTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded")  
$oHTTP.setRequestHeader("Referer","http://www.0453.com/userlogin.asp")
$oHTTP.Send("name=635773624&pass=qwe123654&enter=+%C8%B7%B6%A8+");post关键数据
;登陆代码



$oHTTP.Open("post","http://www.0453.com/user/dbsave.asp",false)
$oHTTP.setRequestHeader("Cache-Control", "no-cache")
$oHTTP.setRequestHeader("Accept-Language", "zh-cn")
$oHTTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded")  
$oHTTP.setRequestHeader("Referer","http://www.0453.com/user/tijiao.asp")
$oHTTP.Send("dtitle=%BD%F0%D3%FE%B5%E7%C4%D4&dlei=%B3%F6%CA%DB&dtext=%B2%E2%CA%D41&remlen=77&dstop=7&darea=%C4%B5%B5%A4%BD%AD&dmima=sdfsdf&demail=635773624@qq.com&ipadress=218.10.40.227&submit=%CC%E1+%BD%BB");post关键数据
憋屈死我了....研究了好几天没一点进展...
 楼主| 发表于 2013-7-26 09:23:01 | 显示全部楼层
没人吗 快来人呀
发表于 2013-7-26 12:40:33 | 显示全部楼层
前面加个退出 实测可以发送了

$oHTTP = ObjCreate("MSXML2.XMLHTTP")
$oHTTP.Open("get","http://www.0453.com/user/quit.asp",false)
$oHTTP.setRequestHeader("Cache-Control", "no-cache")
$oHTTP.setRequestHeader("Accept-Language", "zh-cn")
$oHTTP.Send();post关键数据


$oHTTP = ObjCreate("MSXML2.XMLHTTP")
$oHTTP.Open("post","http://www.0453.com/usercheck.asp",false)
$oHTTP.setRequestHeader("Cache-Control", "no-cache")
$oHTTP.setRequestHeader("Accept-Language", "zh-cn")
$oHTTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded")  
$oHTTP.setRequestHeader("User-Agent", "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)")
$oHTTP.Send("name=635773624&pass=qwe123654&enter=+%C8%B7%B6%A8+");post关键数据
;登陆代码
$a2 = BinaryToString($oHTTP.responsebody)
MsgBox(0,"",$a2)

$oHTTP = ObjCreate("MSXML2.XMLHTTP")
$oHTTP.Open("post","http://www.0453.com/user/dbsave.asp",false)
$oHTTP.setRequestHeader("Cache-Control", "no-cache")
$oHTTP.setRequestHeader("Accept-Language", "zh-cn")
$oHTTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded")  
$oHTTP.setRequestHeader("Referer","http://www.0453.com/user/tijiao.asp")
$oHTTP.Send("dtitle=%BD%F0%D3%FE%B5%E7%C4%D4&dlei=%B3%F6%CA%DB&dtext=%B2%E2%CA%D41&remlen=77&dstop=7&darea=%C4%B5%B5%A4%BD%AD&dmima=sdfsdf&demail=635773624@qq.com&ipadress=218.10.40.227&submit=%CC%E1+%BD%BB");post关键数据

$a2 = BinaryToString($oHTTP.responsebody)
MsgBox(0,"",$a2)
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-12-23 02:34 , Processed in 0.082148 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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