为在Linux下运行全流程做出修改

This commit is contained in:
hebingning
2021-04-20 10:37:27 +08:00
parent 0fa575a563
commit d0d44bb45e
26 changed files with 954 additions and 1518 deletions

View File

@@ -29,9 +29,9 @@ Proxy-Policy-Monitor-00001
sleep 10
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Monitor_00001_1.bat
... ELSE set variable curl -kv \ curl -kv http://www.vancl.com/?source=vancl_net
${stringlist} run keyword if '${systemType}'=='Windows' Create List 凡客VANCL
... ELSE Create List 凡客VANCL
... ELSE set variable curl -kv http://www.vancl.com/?source=vancl_net
${stringlist} run keyword if '${systemType}'=='Windows' Create List 凡客vancl
... ELSE Create List 凡客vancl
${rescode} SystemCommands ${commandstr} ${stringlist}
Proxy-Policy-Monitor-00002
@@ -121,14 +121,14 @@ Proxy-Policy-Monitor-00008
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Monitor_00008.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" --referer 'https://www.baidu.com/' http://www.zhenai.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 珍爱网-征婚
... ELSE Create List 珍爱网-征婚
${stringlist} run keyword if '${systemType}'=='Windows' Create List Tango 珍爱网-征婚
... ELSE Create List Tango 珍爱网-征婚
${rescode} SystemCommands ${commandstr} ${stringlist}
Comment 改变拦截策略
${policyDict} Create Dictionary policyId=${intercept_monitor_policyId7} policyName=SecurityPolicy-Intercept-monitor-0801 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${monitor_objectId51}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
log ${policyDict}
${rescode} UpdatePolicies 1 ${policyDict} v2 update
sleep 5
sleep 10
Comment 改变阻断策略
${policyDict} Create Dictionary policyId=${monitor_policyId7} policyName=Proxy-Policy-monitor-00008-1 policyType=pxy_manipulation policyDesc=autotest action=monitor userRegion={"method":"monitor","protocol":"HTTP"} filterList=${monitor_objectId52}|TSG_FIELD_HTTP_URL,${monitor_objectId53}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=${HTTP_ID}
log ${policyDict}