0

我记录了以下脚本片段:

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+CjxkczpTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3L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mJhc2ljIiBOYW1lPSJMYXN0TmFtZSI+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);

在上面的第一个请求中,向服务器发送"0LEMc"的 URL 中出现了一个动态值;同样在第二个请求中。我如何关联它?

4

5 回答 5

0
  1. 你怎么知道这个值是动态的?对我来说,它看起来像一个目录结构。
  2. 如果它在第一个请求中(并且是动态的),那么它是客户端本地生成的值。这些首次调用动态项中的大多数都是基于自纪元以来的 13 位时钟滴答的唯一会话指示器。0LEMc 这个五位数的值似乎与时间值不对应。您是否向客户端应用程序的开发人员询问过见解?
于 2013-01-31T15:06:11.310 回答
0

当您打开浏览器时,显然您不会每次都编造这个 URL 对吗?您可能会打开一个重定向到该链接的静态登录链接。下载Firebug并查看正在发生的重定向。

于 2013-02-01T08:13:02.457 回答
0

您需要关联五位数的值(“0LEMc”)才能使您的请求生效。

于 2014-05-20T18:01:30.680 回答
0

在分析动态值之前,需要考虑一些关键点。

  1. 录制完脚本后,尝试以同样的方式再录制一次。
  2. 当您比较这两个创建的脚本时,您将了解第二个脚本中所有值的变化。这些动态值可以用相关性来处理。

我建议您验证一下您的目标值是动态的还是其他轮脚本中的常见值。

如果您确定,那么您可以尝试手动关联值的传统方式。尝试在响应中查找值,并在相应请求之前添加 web_reg_save_param 参数并填写所有 LB、RB 值。

于 2020-02-17T09:39:08.777 回答
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);

您必须使用右边界和左铸造值并将动态值存储到参数中并按如下方式进行相关性

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);
于 2017-02-20T13:10:03.843 回答