|
9#
楼主 |
发表于 2012-7-2 16:32:15
|
只看该作者
char hashpass[32],lasspass[32];
char originpass[64] = "C4CA4238A0B923820DCC509A6F75849B";
char *pass;
char strpass[64]="Value=";
Action()
{
// [WCSPARAM WCSParam_Diff1 19 4629168773216440160] Parameter {WCSParam_Diff1} created by Correlation Studio
web_reg_save_param( "WCSParam_Diff1", "LB= hex_md5(hashone+'", "RB='", "Ord=1", "Search=Body", "RelFrameId=1", LAST );
web_url("caqc",
"URL=http://10.0.52.49:5000/caqc/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=resources/greybox/header_bg.gif", ENDITEM,
"Url=resources/greybox/w_close.gif", ENDITEM,
"Url=resources/greybox/g_close.gif", ENDITEM,
"Url=resources/greybox/indicator.gif", ENDITEM,
LAST);
web_url("My97DatePicker.htm",
"URL=http://10.0.52.49:5000/caqc/resources/DatePicker/My97DatePicker.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.0.52.49:5000/caqc/",
"Snapshot=t2.inf",
"Mode=HTML",
EXTRARES,
"Url=lang/zh-cn.js", ENDITEM,
"Url=skin/default/datepicker.css", ENDITEM,
"Url=skin/whyGreen/datepicker.css", ENDITEM,
"Url=skin/default/img.gif", ENDITEM,
LAST);
sprintf(hashpass,"%s" ,lr_eval_string("{WCSParam_Diff1}"));
strcat(originpass,hashpass);
GetMd5FromString(originpass,lasspass);
pass = (char *)strupr(&lasspass);
strcat(strpass,pass);
web_submit_data("login_login.action",
"Action=http://10.0.52.49:5000/caqc/login_login.action",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.0.52.49:5000/caqc/",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=j_username", "Value=test35", ENDITEM,
"Name=url", "Value=/caqc/dist_A4.jsp", ENDITEM,
"Name=j_password", strpass, ENDITEM,
"Name=hash", "Value={WCSParam_Diff1}", ENDITEM,
"Name=domainId", "Value=caqc", ENDITEM,
EXTRARES,
"Url=resources/ext2/resources/images/default/s.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/tree/folder.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/panel/white-top-bottom.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/toolbar/bg.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/grid/grid-blue-split.gif", ENDITEM,
"Url=resources/images/button_portal2.gif", ENDITEM,
"Url=resources/images/button_tabs.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/toolbar/btn-arrow.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/tabs/tab-strip-btm-bg.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/tabs/tab-btm-left-bg.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/tabs/tab-btm-right-bg.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/tabs/tab-btm-inactive-right-bg.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/tabs/tab-btm-inactive-left-bg.gif", ENDITEM,
"Url=resources/images/button_nav1.png", ENDITEM,
"Url=resources/ext2/resources/images/default/panel/tool-sprites.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/panel/light-hd.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/tabs/tab-strip-bg.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/tabs/tabs-sprite.gif", ENDITEM,
"Url=resources/images/button_search.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/layout/mini-bottom.gif", ENDITEM,
"Url=resources/images/button_flow.gif", ENDITEM,
"Url=resources/images/button_exp.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/grid/page-first-disabled.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/grid/page-prev-disabled.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/grid/page-next-disabled.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/grid/page-last-disabled.gif", ENDITEM,
"Url=resources/images/button_help.gif", ENDITEM,
"Url=resources/images/button_signout.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/tree/elbow-end-plus.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/grid/grid3-hrow.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/grid/row-check-sprite.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/grid/grid3-hd-btn.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/dd/drop-no.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/grid/col-move-top.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/grid/col-move-bottom.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/grid/grid3-hrow-over.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/grid/sort_desc.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/panel/left-right.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/panel/corners-sprite.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/panel/top-bottom.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/button/btn-sprite.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/form/text-bg.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/form/date-trigger.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/box/tb-blue.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/tree/leaf.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/grid/done.gif", ENDITEM,
"Url=resources/ext2/resources/images/default/grid/grid3-special-col-sel-bg.gif", ENDITEM,
LAST);
web_custom_request("appTroubleregManager.getTroubleregSize.dwr",
"URL=http://10.0.52.49:5000/caqc/dwr/call/plaincall/appTroubleregManager.getTroubleregSize.dwr",
"Method=POST",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://10.0.52.49:5000/caqc/login_login.action",
"Snapshot=t4.inf",
"EncType=text/plain",
"Body=callCount=1\npage=/caqc/login_login.action\nhttpSessionId=\nscriptSessionId=${scriptSessionId}520\nc0-scriptName=appTroubleregManager\nc0-methodName=getTroubleregSize\nc0-id=0\nbatchId=0\n",
LAST);
web_custom_request("appTroubleregManager.getA1Size.dwr",
"URL=http://10.0.52.49:5000/caqc/dwr/call/plaincall/appTroubleregManager.getA1Size.dwr",
"Method=POST",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://10.0.52.49:5000/caqc/login_login.action",
"Snapshot=t5.inf",
"EncType=text/plain",
"Body=callCount=1\npage=/caqc/login_login.action\nhttpSessionId=\nscriptSessionId=${scriptSessionId}520\nc0-scriptName=appTroubleregManager\nc0-methodName=getA1Size\nc0-id=0\nbatchId=1\n",
LAST);
web_submit_data("troubleReg_getA4Result.action",
"Action=http://10.0.52.49:5000/caqc/troubleReg/troubleReg_getA4Result.action?_dc=1341217282442",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.0.52.49:5000/caqc/login_login.action",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=start", "Value=0", ENDITEM,
"Name=strdtlid", "Value=", ENDITEM,
"Name=tshowmodeid", "Value=", ENDITEM,
LAST);
return 0;
}
这是所有的登录录制代码。其中我们用了加密方法,用到获取hash值,我已经自动获取了。且我们系统的后台,已经显示此用户登录。但是lr就是报错。错误如下:
ction.c(43): Error -26627: HTTP Status-Code=404 (/caqc/embed/alert.jsp) for "http://10.0.52.49:5000/caqc/embed/alert.jsp" [MsgId: MERR-26627]
Action.c(43): Warning -26627: HTTP Status-Code=404 (/caqc/black) for "http://10.0.52.49:5000/caqc/black" [MsgId: MWAR-26627]
Action.c(43): web_submit_data("login_login.action") highest severity level was "ERROR", 283284 body bytes, 18514 header bytes, 168 chunking overhead bytes [MsgId: MMSG-26387]
Ending action Action.
且run-timer viewer 报: |
|