Action()
{
int i,randVal;
char addres[50],htm[10];
web_reg_save_param("WCSParam_Text1",
"LB=<a href=\"",
"RB=>",
"Ord=ALL",
"RelFrameId=1",
"Search=Body",
"IgnoreRedirections=Yes",
LAST);
web_url("www.51testing.com",
"URL=http://www.51testing.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"URL=/images/new/com-denglu.gif", ENDITEM,
"URL=/images/new/mysearch.gif", ENDITEM,
"URL=/images/new/com-susuo.gif", ENDITEM,
"URL=/images/new/searchL.gif", ENDITEM,
"URL=/images/new/list_icon.gif", ENDITEM,
"URL=/images/new/menu_hbg_l.gif", ENDITEM,
"URL=/images/new/menu_hbg_r.gif", ENDITEM,
"URL=http://www.51testing.net/index.swf", ENDITEM,
"URL=/images/new/hotspace_bg.gif", ENDITEM,
"URL=/images/new/com-shang-gengxin1.gif", ENDITEM,
"URL=/images/new/com-shang-gengxin.gif", ENDITEM,
"URL=/images/new/813diancom.swf", ENDITEM,
"URL=/images/new/menu_hbg.gif", ENDITEM,
"URL=/images/new/com-luntan.gif", ENDITEM,
"URL=/images/new/com-boke.gif", ENDITEM,
"URL=/images/new/com-jingxuan.gif", ENDITEM,
"URL=http://com.zoosnet.net/js/JS_swf.js", ENDITEM,
"URL=http://com.zoosnet.net/js/COM.swf", ENDITEM,
"URL=http://com.zoosnet.net/LR/closeimg/7.gif", ENDITEM,
"URL=http://www.51testing.net/gif/zaixian.gif", ENDITEM,
LAST);
web_custom_request("JS_Float1.aspx",
"URL=http://com.zoosnet.net/js/JS_Float1.aspx",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://com.zoosnet.net/js/COM.swf",
"Snapshot=t2.inf",
"Mode=HTML",
"Body=%5FtimeoutID=1&lng=cn&cid=6334324364444512501290&sid=6334454461891962508879&id=24243265&e=&r=&p=http%253A%2F%2Fwww%2E51testing%2Ecom%2F",
EXTRARES,
"URL=http://www.51testing.com/favicon.ico", ENDITEM,
LAST);
web_custom_request("newsid.aspx",
"URL=http://com.zoosnet.net/ls/newsid.aspx",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://com.zoosnet.net/js/COM.swf",
"Snapshot=t3.inf",
"Mode=HTML",
"Body=%5FtimeoutID=2&z=%2D8&ip2=%E7%94%B5%E4%BF%A1&ip1=%E5%8C%97%E4%BA%AC%E5%B8%82&e=&k=6334324364444512501290&lng=cn&c=32&vp=25&vc=9&fl=1208927713000&ft=1207618914000&s=1024%2A768&nk=6334454461891962508879&r=&p=http%253A%2F%2Fwww%2E51testing%2Ecom%2F&id=COM24243265",
LAST);
for (i = 1; i <= 5; i++)
{
randVal = (rand() % atoi(lr_eval_string("{WCSParam_Text1_count}")));
sprintf( addres,"{WCSParam_Text1_%d}",randVal);
lr_save_string( lr_eval_string(addres),"addres");
sprintf(htm,"htm_%d",i);
web_url("htm","URL={addres}",LAST);
lr_think_time(3);
web_url("www.51testing.com_2",
"URL=http://www.51testing.com/",
LAST);
lr_think_time(3);
}
return 0;
}
原创,转载请注明原始链接.