|
4#
楼主 |
发表于 2007-9-18 11:26:02
|
只看该作者
脚本:
#include "as_web.h"
Action1()
{
web_url("192.168.90.235",
"URL=http://192.168.90.235/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"URL=/swf/flash1.swf", ENDITEM,
"URL=/images/bg_1.gif", ENDITEM,
"URL=/images/bg_left_1.gif", ENDITEM,
LAST);
lr_think_time(5);
web_submit_form("login.asp",
"Snapshot=t2.inf",
ITEMDATA,
"Name=loginname", "Value=sg0040", ENDITEM,
"Name=loginpswd", "Value=888888", ENDITEM,
"Name=img_sub.x", "Value=28", ENDITEM,
"Name=img_sub.y", "Value=13", ENDITEM,
EXTRARES,
"URL=../images/ll.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=../images/bei3.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=../images/bei3_1.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=../images/mrdi.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=../images/dao_zx_2.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
LAST);
lr_think_time(1);
web_image("dao_zx_1.gif",
"Src=../../images/dao_zx_1.gif",
"Snapshot=t3.inf",
EXTRARES,
"URL=../swf/flash1.swf", "Referer=http://192.168.90.235/index.asp", ENDITEM,
"URL=../images/bg_left_1.gif", "Referer=http://192.168.90.235/index.asp", ENDITEM,
"URL=../images/bg_1.gif", "Referer=http://192.168.90.235/index.asp", ENDITEM,
LAST);
lr_think_time(5);
web_submit_form("login.asp2",
"Snapshot=t4.inf",
ITEMDATA,
"Name=loginname", "Value=sg0034", ENDITEM,
"Name=loginpswd", "Value=888888", ENDITEM,
"Name=img_sub.x", "Value=31", ENDITEM,
"Name=img_sub.y", "Value=11", ENDITEM,
EXTRARES,
"URL=../images/ll.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=../images/bei3_1.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=../images/mrdi.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=../images/bei3.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=../images/bei3.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=../images/bei3.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=../images/bei3.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=../images/bei3.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
LAST);
lr_think_time(1);
web_url("sBuildingProject.asp",
"URL=http://192.168.90.235/companySG/refer/sBuildingProject.asp?sg_userid=77&username=杭州钱潮公路工程有限公司",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp",
"Snapshot=t5.inf",
"Mode=HTML",
EXTRARES,
"URL=/images/bei3.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=/images/bei3.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=/images/bei3.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=/images/bei3.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=/images/bei3_1.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=/images/bei3.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=/images/bei3.gif", "Referer=http://192.168.90.235/companySG/refer/refer.asp?iURLFlag=6&strURL=companySG/refer/refer.asp", ENDITEM,
"URL=/Images/buttonbg2.gif", "Referer=http://192.168.90.235/companySG/refer/sBuildingProject.asp?sg_userid=77&username=杭州钱潮公路工程有限公司", ENDITEM,
LAST);
lr_think_time(1);
web_submit_data("sBuildingProject.asp2",
"Action=http://192.168.90.235/companySG/refer/sBuildingProject.asp?sg_userid=77&username=杭州钱潮公路工程有限公司",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.90.235/companySG/refer/sBuildingProject.asp?sg_userid=77&username=杭州钱潮公路工程有限公司",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=delrepeat", "Value=", ENDITEM,
"Name=sg_userid", "Value=77", ENDITEM,
"Name=username", "Value=杭州钱潮公路工程有限公司", ENDITEM,
"Name=backreason", "Value=\t\t\t\t\r\n"
"\t\t\t", ENDITEM,
"Name=hdnback", "Value=", ENDITEM,
"Name=hdnIsPublish", "Value=", ENDITEM,
"Name=projectname", "Value=", ENDITEM,
"Name=hCurrStatus", "Value=-1", ENDITEM,
"Name=btnsubmitfree", "Value=免填", ENDITEM,
LAST);
return 0;
}
感觉脚本好繁琐。。。。。 |
|