一个用户自动回复所有的帖子

Action()
{

 int i,num;
 char temp[255];

 web_url("index.php",
  "URL=http://localhost:8000/phpwind/index.php",
  "TargetFrame=",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=",
  "Snapshot=t1.inf",
  "Mode=HTML",
  EXTRARES,
  "URL=js/lang/zh_cn.js", ENDITEM,
  "URL=images/wind85/topbar.png", ENDITEM,
  "URL=images/button.png", ENDITEM,
  "URL=images/wind85/navA.png", ENDITEM,
  "URL=images/wind85/searchA.png", ENDITEM,
  "URL=images/wind85/search_btn.png", ENDITEM,
  "URL=images/select_arrow.gif", ENDITEM,
  "URL=images/wind85/new.gif", ENDITEM,
  "URL=images/del.png", ENDITEM,
  "URL=images/wind/preview.jpg", ENDITEM,
  "URL=images/wind8gray/preview.jpg", ENDITEM,
  "URL=images/wind8black/preview.jpg", ENDITEM,
  "URL=images/wind8green/preview.jpg", ENDITEM,
  "URL=images/wind8purple/preview.jpg", ENDITEM,
  "URL=images/wind85/preview.jpg", ENDITEM,
  "URL=images/register/regright.png", ENDITEM,
  "URL=images/wind85/bg.jpg", ENDITEM,
  "URL=images/pwicon/top.png", ENDITEM,
  LAST);

 lr_think_time(11);

//Correlation comment - Do not change!Original value='{CorParam}' Name ='CorrelationParameter_1'

 web_reg_save_param_ex(
  "ParamName=CorParam",
  "LB= '",
  "RB=';var modeimg ",
  SEARCH_FILTERS,
  "Scope=Body",
  "RequestUrl=*/index.php*",
  LAST);

 web_submit_data("login.php",
  "Action=http://localhost:8000/phpwind/login.php",
  "Method=POST",
  "TargetFrame=",
  "RecContentType=text/html",
  "Referer=http://localhost:8000/phpwind/index.php",
  "Snapshot=t2.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=jumpurl", "Value=http://localhost:8000/phpwind/index.php", ENDITEM,
  "Name=step", "Value=2", ENDITEM,
  "Name=pwuser", "Value={UserParam}", ENDITEM,
  "Name=pwpwd", "Value=kibon123", ENDITEM,
  "Name=head_login", "Value=", ENDITEM,
  "Name=lgt", "Value=0", ENDITEM,
  EXTRARES,
  "URL=images/register/regright2.png", ENDITEM,
  "URL=js/lang/zh_cn.js", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/wind85/colon.png", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/wind85/new.gif", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/wind85/h.png", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/g/facebg_a.png", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/wind85/topbar.png", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/wind85/bg.jpg", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/register/regright.png", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/wind8gray/preview.jpg", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/wind85/down.png", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/wind8black/preview.jpg", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/wind/preview.jpg", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/down.png", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/wind85/hB.png", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/wind85/search_btn.png", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/wind85/searchA.png", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/wind8purple/preview.jpg", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/wind8green/preview.jpg", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/wind85/navA.png", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/wind85/preview.jpg", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/job/doupdatedata.gif", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/job/doupdateavatar.gif", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/job/dosendmessage.gif", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/job/doaddfriend.gif", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  "URL=images/job/menu_tasksA.png", "Referer=http://localhost:8000/phpwind/index.php", ENDITEM,
  LAST);

 web_url("pw_ajax.php",
  "URL=http://localhost:8000/phpwind/pw_ajax.php?action=jobpop&nowtime=1392649932044&verify={CorParam}",
  "TargetFrame=",
  "Resource=0",
  "RecContentType=text/xml",
  "Referer=http://localhost:8000/phpwind/index.php",
  "Snapshot=t3.inf",
  "Mode=HTML",
  LAST);

 web_reg_save_param_ex(
  "ParamName=tid",
  "LB=tid=",
  "RB=\" target=",
  "Ordinal=All",
  SEARCH_FILTERS,
  LAST);


 web_url("thread.php",
  "URL=http://localhost:8000/phpwind/thread.php?fid=2",
  "TargetFrame=",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://localhost:8000/phpwind/index.php",
  "Snapshot=t4.inf",
  "Mode=HTML",
  EXTRARES,
  "URL=images/wind85/thread/sideicon.gif", "Referer=http://localhost:8000/phpwind/thread.php?fid=2", ENDITEM,
  "URL=images/wind85/breadEm.png", "Referer=http://localhost:8000/phpwind/thread.php?fid=2", ENDITEM,
  "URL=images/wind85/post.png?101129", "Referer=http://localhost:8000/phpwind/thread.php?fid=2", ENDITEM,
  LAST);

 web_url("pw_ajax.php_2",
  "URL=http://localhost:8000/phpwind/pw_ajax.php?action=jobpop&nowtime=1392649935710&verify={CorParam}",
  "TargetFrame=",
  "Resource=0",
  "RecContentType=text/xml",
  "Referer=http://localhost:8000/phpwind/thread.php?fid=2",
  "Snapshot=t5.inf",
  "Mode=HTML",
  LAST);

 web_submit_data("pw_ajax.php_3",
  "Action=http://localhost:8000/phpwind/pw_ajax.php?action=jobpop&nowtime=1392649938069&verify={CorParam}",
  "Method=POST",
  "TargetFrame=",
  "RecContentType=text/html",
  "Referer=http://localhost:8000/phpwind/thread.php?fid=2",
  "Mode=HTML",
  ITEMDATA,
  "Name=job", "Value=cookie", ENDITEM,
  "Name=v", "Value=1", ENDITEM,
  LAST);

 lr_think_time(9);

 
 //lr_save_string(lr_paramarr_random("tid"),"outtid");  //做一个用户随机回复一帖子时用,传参数“outtid”

 

 web_url("read.php",
  "URL=http://localhost:8000/phpwind/read.php?tid=1",
  "TargetFrame=",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://localhost:8000/phpwind/thread.php?fid=2",
  "Snapshot=t6.inf",
  "Mode=HTML",
  EXTRARES,
  "URL=images/pwicon/shareAll.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind85/read/userOper.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/pwicon/add_mes.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/pwicon/add_fol.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind85/reply.png?101129", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/bbsradio.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/pwicon/add_home.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/pwicon/add_fri.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/pwicon/add_pro.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind85/read/yin.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=js/breeze/editor/style/B_ico.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/9.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/2.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/3.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/1.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/4.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/5.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/6.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/7.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/8.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/10.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/11.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/12.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/13.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/fp_editor_bg.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/14.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=js/breeze/core/base.js", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=js/breeze/editor/editor.js?v=1.0", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=js/breeze/core/dom.js?v=1.0", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=js/breeze/core/event.js?v=1.0", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=js/breeze/editor/ubb.js?v=1.0", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=js/breeze/util/localStorage.js?v=1.0", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  LAST);

 num=atoi(lr_eval_string("{tid_count}"));

 for(i=1;i<=num;i++)
 {
  sprintf(temp,"{tid_%d}",i);
  lr_save_string(lr_eval_string(temp),"outtid");

 

 web_submit_data("post.php",
  "Action=http://localhost:8000/phpwind/post.php?fid=2&nowtime=1392649972840&verify={CorParam}",
  "Method=POST",
  "EncType=multipart/form-data",
  "TargetFrame=",
  "RecContentType=text/xml",
  "Referer=http://localhost:8000/phpwind/read.php?tid=1",
  "Snapshot=t7.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=atc_usesign", "Value=1", ENDITEM,
  "Name=replytouser", "Value=", ENDITEM,
  "Name=atc_convert", "Value=1", ENDITEM,
  "Name=atc_autourl", "Value=1", ENDITEM,
  "Name=step", "Value=2", ENDITEM,
  "Name=type", "Value=ajax_addfloor", ENDITEM,
  "Name=action", "Value=reply", ENDITEM,
  "Name=fid", "Value=2", ENDITEM,
  "Name=cyid", "Value=", ENDITEM,
  "Name=tid", "Value={outtid}", ENDITEM,
  "Name=stylepath", "Value=wind85", ENDITEM,
  "Name=ajax", "Value=1", ENDITEM,
  "Name=verify", "Value={CorParam}", ENDITEM,
  "Name=_hexie", "Value=a824df3e", ENDITEM,
  "Name=iscontinue", "Value=0", ENDITEM,
  "Name=atc_title", "Value=Re:新年快乐", ENDITEM,
  "Name=atc_content", "Value=新年快乐哦,亲们[s:7] ", ENDITEM,
  EXTRARES,
  "URL=images/online.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/search/pImg_close.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  LAST);
}
 web_url("login.php_2",
  "URL=http://localhost:8000/phpwind/login.php?action=quit&verify=7f5009c8",
  "TargetFrame=",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=http://localhost:8000/phpwind/read.php?tid=1",
  "Snapshot=t8.inf",
  "Mode=HTML",
  EXTRARES,
  "URL=js/lang/zh_cn.js", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind85/read/yin.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/bbsradio.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind85/search_btn.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind85/searchA.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind85/navA.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/button.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind85/topbar.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind85/bg.jpg", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/pwicon/add_fri.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/pwicon/add_home.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/register/regright.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind8purple/preview.jpg", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind8green/preview.jpg", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind8black/preview.jpg", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind8gray/preview.jpg", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind/preview.jpg", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind85/preview.jpg", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/del.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/pwicon/shareAll.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/down.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/pwicon/add_fol.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind85/reply.png?101129", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind85/post.png?101129", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind85/breadEm.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind85/down.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/select_arrow.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/pwicon/add_mes.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/pwicon/add_pro.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/1.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/2.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/3.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/5.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/4.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/7.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/8.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/9.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/10.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/11.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/14.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/fp_editor_bg.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=js/breeze/editor/style/B_ico.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/wind85/h.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/13.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/post/smile/default/12.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/search/pImg.png", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=images/blank.gif", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=u/images/next.cur", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  "URL=u/images/pre.cur", "Referer=http://localhost:8000/phpwind/read.php?tid=1", ENDITEM,
  LAST);

return 0;
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值