我录制了以下脚本代码段:
Action()
{
/*Click on Continue to this website*/
/*Login*/
web_url("startSSO.ping",
"URL=https://e4.pncie.com/sso/idp/0LEMc/resumeSAML20/idp/startSSO.ping",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"URL=/favicon.ico", ENDITEM,
LAST);
web_submit_data("ClaimCenter.do",
"Action={P_url}",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=https://e4.pncie.com/sso/idp/0LEMc/resumeSAML20/idp/startSSO.ping",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=SAMLResponse", "Value=PHNhbWxwOlJlc3BvbnNlIERlc3RpbmF0aW9uPSJodHRwczovL2Nhc3BlcmZwb2MudGVudC50cnQuY3NhYS5wcmkvY2MvQ2xhaW1DZW50ZXIuZG8iIElzc3VlSW5zdGFudD0iMjAxMy0wMS0yNFQwNjozNDozOS4wNzhaIiBJRD0iWVRaLlhPdjZ6Skd2MmNldFk1NE5qZS1BT3FqIiBWZXJzaW9uPSIyLjAiIHhtbG5zOnNhbWxwPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6cHJvdG9jb2wiPjxzYW1sOklzc3VlciB4bWxuczpzYW1sPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YXNzZXJ0aW9uIj5DQVM6SWRQPC9zYW1sOklzc3Vlcj48ZHM6U2lnbmF0dXJlIHhtbG5zOmRzPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4KPGRzOlNpZ25lZEluZm8+CjxkczpDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIi8+CjxkczpTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGR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ZSI+PHNhbWw6QXR0cmlidXRlVmFsdWUgeHNpOnR5cGU9InhzOnN0cmluZyIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSI+VGhvcm4xNTwvc2FtbDpBdHRyaWJ1dGVWYWx1ZT48L3NhbWw6QXR0cmlidXRlPjwvc2FtbDpBdHRyaWJ1dGVTdGF0ZW1lbnQ+PC9zYW1sOkFzc2VydGlvbj4"
"8L3NhbWxwOlJlc3BvbnNlPg==", ENDITEM,
EXTRARES,
"URL=resources/Ocean/images/header_bg.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/modetabs_bgd.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/toolbar_bgd.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/menu_claim_search.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/unsaved_left_off.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/unsaved_middle.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/unsaved_right.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/btn2_left.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/btn2_1px.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/btn2_right.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/tabOn_1px.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/tabOn_left.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/menu-arrow-down-on.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/tabOn_right.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/tabOff_left.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/tabOff_1px.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/menu-arrow-down.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/tabOff_right.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/tabDS_1px.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/tabDS_right.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/tabDS_left.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/infobar_bgd.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/actionButton_middle.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/actionButton_left.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/actionButton_right.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/leftNav_select.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
"URL=resources/Ocean/images/pagetitle_bgd.gif", "Referer={P_url}?inFrame=mainframe&r=44794921&__navigator_index=0", ENDITEM,
LAST);
在第一个请求中,上面发送到服务器的URL中出现动态值"0LEMc"
;同样在第二个请求中。我如何关联它?
答案 0 :(得分:0)
答案 1 :(得分:0)
当您打开浏览器时,显然您每次都没有正确填写此URL?您可能打开一个重定向到该链接的静态登录链接。下载Firebug并查看正在发生的重新定位。
答案 2 :(得分:0)
您需要将五位数值(“0LEMc”)与您的工作相关联。
答案 3 :(得分:0)
您可以使用"web_reg_save_param_regexp()" function
关联值。
例如:
/* Correlation comment - Do not change! Original value='c9cb6401b8' Name ='CorrelationParameter' */
web_reg_save_param_regexp(
"ParamName=CorrelationParameter",
"RegExp=_wpnonce=(.*?)\">Log\\ Out",
SEARCH_FILTERS,
"Scope=Body",
"IgnoreRedirections=Yes",
"RequestUrl=*/wp-admin/*",
LAST);
您必须使用Right boundary和Left Foundry值并将动态值存储到参数中并按如下方式进行关联
web_url("startSSO.ping",
"URL=https://e4.pncie.com/sso/idp/{value}/resumeSAML20/idp/startSSO.ping",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"URL=/favicon.ico", ENDITEM,
LAST);
答案 4 :(得分:0)
分析动态值之前,需要考虑一些关键点。
我建议您一次验证它的目标值是动态值还是其他脚本脚本中常见的值。
如果可以确定,则可以尝试传统的手动值关联方法。 尝试在响应中找到该值,并在相应请求之前,添加web_reg_save_param参数并填写所有LB,RB值。