|
4#
楼主 |
发表于 2009-9-2 19:28:06
|
只看该作者
Action()
{
web_url("login.aspx",
"URL=http://192.168.3.13/nep/login.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_submit_data("login.aspx_2",
"Action=http://192.168.3.13/nep/login.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.3.13/nep/login.aspx",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value=/wEPDwULLTE1NTMwMTE1NzlkZFvp25SNei++OJoSZ5J24Q+ALjdr", ENDITEM,
"Name=__EVENTTARGET", "Value=btnLogin", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWAwLgoLK4BgKl1bKzCQK1qbSRC4A+Pat20HN3AOSBnoH3a7ehpxAt", ENDITEM,
"Name=txtUserName", "Value=admin", ENDITEM,
"Name=txtPassword", "Value=admin", ENDITEM,
LAST);
lr_think_time(5);
//取图中红框的值
web_reg_save_param("abc",
"LB/IC=",
"RB/IC=",
"Search=Body",
"Savelen=150",
// "SaveOffset=0",
LAST);
web_custom_request("iWebServer.aspx",
"URL=http://192.168.3.13/NEP/iWebServer.aspx",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
"EncType=multipart/form-data; boundary=---------------------------1971102512e",
"Body=-----------------------------1971102512e",
LAST);
lr_output_message("%s",lr_eval_string("{abc}"));
web_custom_request("iWebServer.aspx_2",
"URL=http://192.168.3.13/NEP/iWebServer.aspx",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
"EncType=multipart/form-data; boundary=---------------------------1971102512e",
"Body=-----------------------------1971102512e",
LAST);
web_custom_request("iWebServer.aspx_3",
"URL=http://192.168.3.13/NEP/iWebServer.aspx",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t5.inf",
"Mode=HTML",
"EncType=multipart/form-data; boundary=---------------------------1971102512e",
"Body=-----------------------------1971102512e",
LAST);
web_submit_data("FileUpload.aspx",
"Action=http://192.168.3.13/nep/FileUpload.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.3.13/nep/FileUpload.aspx",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value=/wEPDwUKLTcxMzc1NDMxN2RkLkdzqT1ie68rFGtHF7pwn8addFI=", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWBAKg76qiDAKct7iSDAKY84LIBALl2I/GC+3/SUM4zI3HKDEvAjkG5rfaO6Bq", ENDITEM,
"Name=btnSave", "Value=Button", ENDITEM,
"Name=hdFileName", "Value=新建.txt", ENDITEM,
"Name=hdFilePath", "Value=myfile/新建.txt", ENDITEM,
LAST);
return 0;
} |
|