|
8#
楼主 |
发表于 2004-10-18 14:16:00
|
只看该作者
已经改了,可是问题还存在;
已经改了,可是问题还存在;
是测sohu登陆邮箱的操作;
用的协议是:http/html;
改的脚本如下:
#include "as_web.h"
Action()
{
int i;
web_add_cookie("SUV=1097226707843193; DOMAIN=www.sohu.com");
web_add_cookie("IPLOC=CN11; DOMAIN=www.sohu.com");
web_add_cookie("NG00=shiyezhi; DOMAIN=www.sohu.com");
web_add_cookie("NG01=3; DOMAIN=www.sohu.com");
web_add_cookie("NG02=2; DOMAIN=www.sohu.com");
web_add_cookie("NG03=1001; DOMAIN=www.sohu.com");
web_add_cookie("NG04=1; DOMAIN=www.sohu.com");
web_add_cookie("NG05=8; DOMAIN=www.sohu.com");
web_add_cookie("NG06=1; DOMAIN=www.sohu.com");
web_add_cookie("NG07=29; DOMAIN=www.sohu.com");
web_add_cookie("NG08=321; DOMAIN=www.sohu.com");
web_add_cookie("SUV=1097226707843193; DOMAIN=images.sohu.com");
web_add_cookie("IPLOC=CN11; DOMAIN=images.sohu.com");
web_add_cookie("NG00=shiyezhi; DOMAIN=images.sohu.com");
web_add_cookie("NG01=3; DOMAIN=images.sohu.com");
web_add_cookie("NG02=2; DOMAIN=images.sohu.com");
web_add_cookie("NG03=1001; DOMAIN=images.sohu.com");
web_add_cookie("NG04=1; DOMAIN=images.sohu.com");
web_add_cookie("NG05=8; DOMAIN=images.sohu.com");
web_add_cookie("NG06=1; DOMAIN=images.sohu.com");
web_add_cookie("NG07=29; DOMAIN=images.sohu.com");
web_add_cookie("NG08=321; DOMAIN=images.sohu.com");
web_url("www.sohu.com",
"URL=http://www.sohu.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=http://images.sohu.com/uiue/tg_bj02.gif", ENDITEM,
"Url=http://images.sohu.com/uiue/tg_bj01.gif", ENDITEM,
"Url=http://images.sohu.com/cs/button/xiaxin/f6/4501051015.swf?clickthru=http://goto.sohu.com/goto.php3?code=xiaxingd-fr450105", "Referer=", ENDITEM,
"Url=http://images.sohu.com/h_7.gif", ENDITEM,
"Url=http://images.sohu.com/cs/button/toyota/315500630.swf?clickthru=http://goto.sohu.com/goto.php3?code=toyota-bj251-fr31550", "Referer=", ENDITEM,
"Url=http://images.sohu.com/cs/button/palading/120501012h.swf?clickthru=http://goto.sohu.com/goto.php3?code=palading-bj341-fr1pb", "Referer=", ENDITEM,
"Url=http://images.sohu.com/cs/button/tcltv/09/1201000915.swf?clickthru=http://goto.sohu.com/goto.php3?code=tcltv-gz62-fr120100", "Referer=", ENDITEM,
"Url=http://images.sohu.com/h_8.gif", ENDITEM,
LAST);
web_add_cookie("SUV=1097226707843193; DOMAIN=www53.mail.sohu.com");
web_add_cookie("IPLOC=CN11; DOMAIN=www53.mail.sohu.com");
web_add_cookie("NG00=shiyezhi; DOMAIN=www53.mail.sohu.com");
web_add_cookie("NG01=3; DOMAIN=www53.mail.sohu.com");
web_add_cookie("NG02=2; DOMAIN=www53.mail.sohu.com");
web_add_cookie("NG03=1001; DOMAIN=www53.mail.sohu.com");
web_add_cookie("NG04=1; DOMAIN=www53.mail.sohu.com");
web_add_cookie("NG05=8; DOMAIN=www53.mail.sohu.com");
web_add_cookie("NG06=1; DOMAIN=www53.mail.sohu.com");
web_add_cookie("NG07=29; DOMAIN=www53.mail.sohu.com");
web_add_cookie("NG08=321; DOMAIN=www53.mail.sohu.com");
web_submit_data("chkpwd.php",
"Action=http://login.mail.sohu.com/chkpwd.php",
"Method=POST",
"RecContentType=text/html",
"Referer=http://www.sohu.com/",
"Snapshot=t2.inf",
"Mode=HTML",
for(i=0;i<=3;i++)
{
"Name=id", "Value=shiyezhi", ENDITEM,
"Name=password", "Value=11230210", ENDITEM,
"Name=username", "Value=shiyezhi", ENDITEM,
"Name=m", "Value=shiyezhi", ENDITEM,
"Name=mpass", "Value=11230210", ENDITEM,
"Name=UserName", "Value=shiyezhi", ENDITEM,
"Name=domain", "Value=sohu.com", ENDITEM,
"Name=Password", "Value=11230210", ENDITEM,
"Name=Submit", "Value=登录", ENDITEM,
EXTRARES,
"Url=http://images.sohu.com/freemail/webmail2003/f2.gif", "Referer=http://www53.mail.sohu.com/control/toolbar?sid=aaads6i_LbPg5q", ENDITEM,
"Url=http://images.sohu.com/freemail/webmail2003/m.gif", "Referer=http://www53.mail.sohu.com/control/toolbar?sid=aaads6i_LbPg5q", ENDITEM,
"Url=http://images.sohu.com/freemail/webmail2003/pw_b1.gif", "Referer=http://www53.mail.sohu.com/control/toolbar?sid=aaads6i_LbPg5q", ENDITEM,
"Url=http://images.sohu.com/freemail/webmail2003/bg06.gif", "Referer=http://www53.mail.sohu.com/control/toolbar?sid=aaads6i_LbPg5q", ENDITEM,
LAST);
}
web_url("sohuemail02.htm",
"URL=http://images.sohu.com/cs/mail/sohuemail02.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=http://images.sohu.com/cs/mail/sohuemail.htm",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"Url=http://secure-cn.imrworldwide.com/v51.js", "Referer=http://www53.mail.sohu.com/control/toolbar?sid=aaads6i_LbPg5q", ENDITEM,
LAST);
return 0;
} |
|