提交已修复的因策略相互影响导致执行失败的用例
This commit is contained in:
@@ -50,16 +50,16 @@ SecurityPolicy-Deny-Ssl-00002
|
||||
|
||||
SecurityPolicy-Deny-Ssl-00003
|
||||
[Tags] san cat右匹配
|
||||
#Comment 创建cat
|
||||
# ${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*pulitzer.org,*nastol.com.ua
|
||||
# ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*austinama.org,*assegaimedia.com
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建安全策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Ssl-00003 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"SSL","method":"drop"} filterList=110|TSG_FIELD_SSL_SAN isValid=${1} appIdObjects=${SSL_ID}
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Ssl-00003 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"SSL","method":"drop"} filterList=110|TSG_FIELD_SSL_SNI,${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
|
||||
${policyId} Get-Pids ${policyId}
|
||||
${policyId} Set Variable ${policyId}[0]
|
||||
#insert_policyId_to_file1 deny_ssl_objectId2 ${objectId}
|
||||
insert_policyId_to_file1 deny_ssl_objectId2 ${objectId}
|
||||
insert_policyId_to_file1 deny_ssl_policyId2 ${policyId}
|
||||
|
||||
SecurityPolicy-Deny-Ssl-00004
|
||||
|
||||
@@ -52,13 +52,13 @@ Proxy-Policy-deny-00002
|
||||
${response} CreatePolicyFile2 ${url} ${responsePageFiles} 404english.html resPages
|
||||
${profiledId} Get From Dictionary ${response} profileId
|
||||
Comment Comment 创建拦截策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-deny policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=165|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-deny policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=165|TSG_FIELD_SSL_SNI,${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
|
||||
${policyId1} Get-Pids ${policyId1}
|
||||
${policyId1} Set Variable ${policyId1}[0]
|
||||
Comment 创建deny策略
|
||||
${policyDict} Create Dictionary policyName=Proxy-Policy-deny-00002 policyType=pxy_manipulation policyDesc=autotest action=deny userRegion={"method":"block","html_profile":${profiledId},"code":403,"protocol":"HTTP"} filterList=165|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
|
||||
${policyDict} Create Dictionary policyName=Proxy-Policy-deny-00002 policyType=pxy_manipulation policyDesc=autotest action=deny userRegion={"method":"block","html_profile":${profiledId},"code":403,"protocol":"HTTP"} filterList=165|TSG_FIELD_HTTP_HOST,${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
|
||||
${policyId2} Get-Pids ${policyId2}
|
||||
@@ -71,10 +71,10 @@ Proxy-Policy-deny-00002
|
||||
Proxy-Policy-deny-00003
|
||||
[Tags] url4种匹配
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*myamber.ae,*creativetravelgroup.com,*hinabian.com,*smithsonianjourneys.org
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*wimdu.de,*creativetravelgroup.com,*hinabian.com,*smithsonianjourneys.org
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=myamber.ae*,$creativetravelgroup.com/,*hinabian.com/,smithsonianjourneys
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=www.wimdu.de*,$creativetravelgroup.com/,*hinabian.com/,smithsonianjourneys
|
||||
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建引用文件
|
||||
${response} CreatePolicyFile2 ${url} ${responsePageFiles} 404china.html resPages
|
||||
@@ -430,13 +430,13 @@ Proxy-Policy-deny-00013
|
||||
Proxy-Policy-deny-00014
|
||||
[Tags] 请求体字串匹配 update policy:请求体
|
||||
Comment 创建请求体
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=denyTest001401
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=ProxydenyTest001401
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*open.node.com
|
||||
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建请求体2
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=denyTest0014
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=ProxydenyTest001402
|
||||
${rescode} ${objectId2} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建拦截策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-deny policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
|
||||
@@ -459,10 +459,10 @@ Proxy-Policy-deny-00014
|
||||
Proxy-Policy-deny-00015
|
||||
[Tags] 应答体字串匹配
|
||||
Comment 创建应答体
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=ASDFG
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=Proxydeny001501
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建应答体2
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=deny015
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=Proxydeny001502
|
||||
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建deny策略
|
||||
${policyDict} Create Dictionary policyName=Proxy-Policy-deny-00015 policyType=pxy_manipulation policyDesc=autotest action=deny userRegion={"method":"block","message":"涨涨涨涨","code":404,"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_RES_CONTENT isValid=${1} appIdObjects=${HTTP_ID}
|
||||
@@ -522,7 +522,7 @@ Proxy-Policy-deny-00017
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=charset|Content-Type
|
||||
${rescode} ${object_yd_Id} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建请求体
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=mnbv
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=ProxyDenyTest0017
|
||||
${rescode} ${object_body_Id} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建deny策略
|
||||
${policyDict} Create Dictionary policyName=Proxy-Policy-deny-00017 policyType=pxy_manipulation policyDesc=autotest action=deny userRegion={"method":"block","message":"涨涨涨涨","code":404,"protocol":"HTTP"} filterList=${object_fqdn_Id}|TSG_FIELD_HTTP_HOST,${object_url_Id}|TSG_FIELD_HTTP_URL,${object_qq_Id}|TSG_FIELD_HTTP_REQ_HDR,${object_yd_Id}|TSG_FIELD_HTTP_RES_HDR,${object_body_Id}|TSG_FIELD_HTTP_REQ_CONTENT isValid=${1} appIdObjects=${HTTP_ID}
|
||||
|
||||
@@ -29,7 +29,7 @@ Proxy-Policy-hijack-00001
|
||||
${objectDict} Create Dictionary objectType=ip objectSubType=geo_location isValid=${1} addItemList=${addItemLists}
|
||||
${rescode} ${objectId2} AddObjects ${1} ${objectDict}
|
||||
Comment 创建fqdn2
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*vator.tv
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*tor.tv
|
||||
${rescode} ${objectId3} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建拦截策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-hijack policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
@@ -54,8 +54,8 @@ Proxy-Policy-hijack-00001
|
||||
Proxy-Policy-hijack-00002
|
||||
[Tags] cat右匹配
|
||||
Comment 创建fqdn
|
||||
# ${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*cruisecritic.com
|
||||
# ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=$www.uqur.cn
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=uqur.cn
|
||||
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
@@ -75,7 +75,7 @@ Proxy-Policy-hijack-00002
|
||||
${policyId2} Get-Pids ${policyId2}
|
||||
${policyId2} Set Variable ${policyId2}[0]
|
||||
insert_policyId_to_file1 hijack_profileId1 ${profiledId}
|
||||
#insert_policyId_to_file1 hijack_objectId1 ${objectId}
|
||||
insert_policyId_to_file1 hijack_objectId1 ${objectId}
|
||||
insert_policyId_to_file1 hijack_objectId40 ${objectId1}
|
||||
insert_policyId_to_file1 intercept_hijack_policyId1 ${policyId1}
|
||||
insert_policyId_to_file1 hijack_policyId1 ${policyId2}
|
||||
@@ -83,8 +83,8 @@ Proxy-Policy-hijack-00002
|
||||
Proxy-Policy-hijack-00003
|
||||
[Tags] url4种匹配
|
||||
Comment 创建fqdn
|
||||
# ${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*vegas.com,*bytedance.com,*toutiao.com,*douyin.com
|
||||
# ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*lexus.ru,*oktrucking.org,*federalsignal.com,*peasedev.org
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=www.lex*,$oktrucking.org/,*signal.com/,peasedev
|
||||
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
@@ -92,7 +92,7 @@ Proxy-Policy-hijack-00003
|
||||
${response} CreatePolicyFile2 ${url} ${path}/hijack_files/ Create-Hijack Files-test-1.exe hijack {"isValid":1,"contentType":"application/x-msdos-program","opAction":"add","profileName":"test2","contentName":"Create-Hijack Files-test-1.exe","profileId":null,"returnData":1}
|
||||
${profiledId} Get From Dictionary ${response} profileId
|
||||
Comment Comment 创建拦截策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-hijack policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=160|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-hijack policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=160|TSG_FIELD_SSL_SNI,${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
|
||||
${policyId1} Get-Pids ${policyId1}
|
||||
@@ -104,7 +104,7 @@ Proxy-Policy-hijack-00003
|
||||
${policyId2} Get-Pids ${policyId2}
|
||||
${policyId2} Set Variable ${policyId2}[0]
|
||||
insert_policyId_to_file1 hijack_profileId2 ${profiledId}
|
||||
#insert_policyId_to_file1 hijack_objectId2 ${objectId}
|
||||
insert_policyId_to_file1 hijack_objectId2 ${objectId}
|
||||
insert_policyId_to_file1 hijack_objectId3 ${objectId1}
|
||||
insert_policyId_to_file1 intercept_hijack_policyId2 ${policyId1}
|
||||
insert_policyId_to_file1 hijack_policyId2 ${policyId2}
|
||||
|
||||
@@ -294,7 +294,7 @@ Proxy-Policy-insert-00009
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=nevada/las-vegas/
|
||||
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建请求头
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html|Content-Type
|
||||
${rescode} ${objectId2} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建insert文件
|
||||
|
||||
@@ -40,7 +40,7 @@ SecurityPolicy-Intercept-Http-00002
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$mbzponton.org
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建安全策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-Http-00002 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=109|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-Http-00002 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=109|TSG_FIELD_HTTP_HOST,${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
|
||||
${policyId} Get-Pids ${policyId}
|
||||
|
||||
@@ -5,7 +5,6 @@ Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot
|
||||
Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
|
||||
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
|
||||
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
|
||||
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
|
||||
Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
|
||||
Resource ../../../03-Variable/ApplicationID.txt
|
||||
|
||||
|
||||
@@ -39,21 +39,21 @@ SecurityPolicy-Monitor-Http-00001
|
||||
SecurityPolicy-Monitor-Http-00002
|
||||
[Tags] cat右匹配
|
||||
Comment 创建cat
|
||||
# ${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*jc.jd.com
|
||||
# ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*fitzhughmedia.com
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建安全策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00002 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"HTTP"} filterList=149|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00002 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"HTTP"} filterList=144|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
|
||||
${policyId} Get-Pids ${policyId}
|
||||
${policyId} Set Variable ${policyId}[0]
|
||||
#insert_policyId_to_file1 monitor_http_objectId1 ${objectId}
|
||||
insert_policyId_to_file1 monitor_http_objectId1 ${objectId}
|
||||
insert_policyId_to_file1 monitor_http_policyId1 ${policyId}
|
||||
|
||||
SecurityPolicy-Monitor-Http-00003
|
||||
[Tags] url4种匹配
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*portal/zh_CN/home/index.html,$www.universalmusic.ru/artists,davidsmithhunting.com,crosswordheaven
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*portal/zh_CN/home/index.html,www.nuk-baby.ru*,davidsmithhunting.com,crosswordheaven
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建安全策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00003 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=${HTTP_ID}
|
||||
@@ -114,7 +114,7 @@ SecurityPolicy-Monitor-Http-00006
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=AppleWebKit/537.36|User-Agent
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=weixingche
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=dollshouseforum
|
||||
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建安全策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00006 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_REQ_HDR,${object_url_Id}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=${HTTP_ID}
|
||||
|
||||
@@ -112,7 +112,7 @@ SecurityPolicy-Monitor-Mail-00005
|
||||
SecurityPolicy-Monitor-Mail-00006
|
||||
[Tags] subject左匹配 from左匹配
|
||||
Comment 创建Subject
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=Tomor*
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=Tomator*
|
||||
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建From
|
||||
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=26621*
|
||||
|
||||
@@ -12,12 +12,20 @@ Resource ../../../03-Variable/ApplicationID.txt
|
||||
|
||||
*** Test Cases ***
|
||||
Proxy-Policy-monitor-00001
|
||||
[Tags] fqdn完整匹配
|
||||
[Tags] fqdn完整匹配 update policy:ip geo,fqdn
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$newsela.com
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$tv.cctv.com
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建ip geo
|
||||
${addItemList1} Create Dictionary keywordArray=XXG地区.*
|
||||
${addItemLists} Create list ${addItemList1}
|
||||
${objectDict} Create Dictionary objectType=ip objectSubType=geo_location isValid=${1} addItemList=${addItemLists}
|
||||
${rescode} ${objectId1} AddObjects ${1} ${objectDict}
|
||||
Comment 创建fqdn2
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*vancl.com
|
||||
${rescode} ${objectId2} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建拦截策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor-01 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
|
||||
${policyId1} Get-Pids ${policyId1}
|
||||
@@ -29,14 +37,16 @@ Proxy-Policy-monitor-00001
|
||||
${policyId2} Get-Pids ${policyId2}
|
||||
${policyId2} Set Variable ${policyId2}[0]
|
||||
insert_policyId_to_file1 monitor_objectId ${objectId}
|
||||
insert_policyId_to_file1 monitor_objectId46 ${objectId1}
|
||||
insert_policyId_to_file1 monitor_objectId47 ${objectId2}
|
||||
insert_policyId_to_file1 intercept_monitor_policyId ${policyId1}
|
||||
insert_policyId_to_file1 monitor_policyId ${policyId2}
|
||||
|
||||
Proxy-Policy-monitor-00002
|
||||
[Tags] cat右匹配
|
||||
Comment 创建fqdn
|
||||
# ${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*villaday.com
|
||||
# ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*parkpennies.com
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment Comment 创建拦截策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=109|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
log ${policyDict}
|
||||
@@ -49,7 +59,7 @@ Proxy-Policy-monitor-00002
|
||||
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
|
||||
${policyId2} Get-Pids ${policyId2}
|
||||
${policyId2} Set Variable ${policyId2}[0]
|
||||
#insert_policyId_to_file1 monitor_objectId1 ${objectId}
|
||||
insert_policyId_to_file1 monitor_objectId1 ${objectId}
|
||||
insert_policyId_to_file1 intercept_monitor_policyId1 ${policyId1}
|
||||
insert_policyId_to_file1 monitor_policyId1 ${policyId2}
|
||||
|
||||
@@ -79,18 +89,27 @@ Proxy-Policy-monitor-00003
|
||||
insert_policyId_to_file1 monitor_policyId2 ${policyId2}
|
||||
|
||||
Proxy-Policy-monitor-00004
|
||||
[Tags] 请求头左匹配
|
||||
[Tags] 请求头左匹配 update policy:url,请求头
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*usdebtclock.org
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*v.qq.com
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=state-of-california-debt-clock.html
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=qq.com
|
||||
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
|
||||
${rescode} ${objectId2} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建fqdn2
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*kumi.cn
|
||||
${rescode} ${objectId3} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建url2
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=kumi
|
||||
${rescode} ${objectId4} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建请求头2
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0|User-Agent
|
||||
${rescode} ${objectId5} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建拦截策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor-04 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
|
||||
${policyId1} Get-Pids ${policyId1}
|
||||
@@ -104,22 +123,25 @@ Proxy-Policy-monitor-00004
|
||||
insert_policyId_to_file1 monitor_objectId4 ${objectId}
|
||||
insert_policyId_to_file1 monitor_objectId5 ${objectId1}
|
||||
insert_policyId_to_file1 monitor_objectId6 ${objectId2}
|
||||
insert_policyId_to_file1 monitor_objectId48 ${objectId3}
|
||||
insert_policyId_to_file1 monitor_objectId49 ${objectId4}
|
||||
insert_policyId_to_file1 monitor_objectId50 ${objectId5}
|
||||
insert_policyId_to_file1 intercept_monitor_policyId3 ${policyId1}
|
||||
insert_policyId_to_file1 monitor_policyId3 ${policyId2}
|
||||
|
||||
Proxy-Policy-monitor-00005
|
||||
[Tags] 请求头完整匹配
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$americantesol.com
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.mgtv.com
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=tesol-register
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=mgtv.com
|
||||
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36|User-Agent
|
||||
${rescode} ${objectId2} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建拦截策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor-05 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
|
||||
${policyId1} Get-Pids ${policyId1}
|
||||
@@ -139,10 +161,10 @@ Proxy-Policy-monitor-00005
|
||||
Proxy-Policy-monitor-00006
|
||||
[Tags] 请求头字串匹配
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.playgroundsessions.com
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$v.ifeng.com
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=software-features
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=ifeng
|
||||
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=AppleWebKit|User-Agent
|
||||
@@ -168,10 +190,10 @@ Proxy-Policy-monitor-00006
|
||||
Proxy-Policy-monitor-00007
|
||||
[Tags] 请求头右匹配
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$peoplestalkradio.com
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.pptv.com
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=forums/register.php
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*pptv.com
|
||||
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent
|
||||
@@ -195,18 +217,27 @@ Proxy-Policy-monitor-00007
|
||||
insert_policyId_to_file1 monitor_policyId6 ${policyId2}
|
||||
|
||||
Proxy-Policy-monitor-00008
|
||||
[Tags] 应答头右匹配
|
||||
[Tags] 应答头右匹配 update policy:fqdn,url,应答头
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*6renyou.com
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*zhenai.com
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=user_comment
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=zhenai
|
||||
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建请求头
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*utf-8|Content-Type
|
||||
${rescode} ${objectId2} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建fqdn2
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*love.163.com
|
||||
${rescode} ${objectId3} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建url2
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=163.com
|
||||
${rescode} ${objectId4} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建应答头2
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=utf-8|Content-Type
|
||||
${rescode} ${objectId5} AddObject2 ${1} ${objectDict}
|
||||
Comment Comment 创建拦截策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor-08 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
|
||||
${policyId1} Get-Pids ${policyId1}
|
||||
@@ -220,19 +251,22 @@ Proxy-Policy-monitor-00008
|
||||
insert_policyId_to_file1 monitor_objectId16 ${objectId}
|
||||
insert_policyId_to_file1 monitor_objectId17 ${objectId1}
|
||||
insert_policyId_to_file1 monitor_objectId18 ${objectId2}
|
||||
insert_policyId_to_file1 monitor_objectId51 ${objectId3}
|
||||
insert_policyId_to_file1 monitor_objectId52 ${objectId4}
|
||||
insert_policyId_to_file1 monitor_objectId53 ${objectId5}
|
||||
insert_policyId_to_file1 intercept_monitor_policyId7 ${policyId1}
|
||||
insert_policyId_to_file1 monitor_policyId7 ${policyId2}
|
||||
|
||||
Proxy-Policy-monitor-00009
|
||||
[Tags] 应答头完整匹配
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*ljale.com
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*ilu.com
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=webdir.html
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=$v.iqilu.com/
|
||||
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html; charset=utf-8|Content-Type
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html|Content-Type
|
||||
${rescode} ${objectId2} AddObject2 ${1} ${objectDict}
|
||||
Comment Comment 创建拦截策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
|
||||
@@ -255,10 +289,10 @@ Proxy-Policy-monitor-00009
|
||||
Proxy-Policy-monitor-00010
|
||||
[Tags] 应答头字串匹配
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*duckduckmoose.com
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*fun.tv
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=learn
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=/movie
|
||||
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text/html|Content-Type
|
||||
@@ -284,10 +318,10 @@ Proxy-Policy-monitor-00010
|
||||
Proxy-Policy-monitor-00011
|
||||
[Tags] 应答头左匹配
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*tutcandy.com
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*hongniang.com
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=sketch-to
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=hongniang
|
||||
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text*|Content-Type
|
||||
@@ -310,162 +344,162 @@ Proxy-Policy-monitor-00011
|
||||
insert_policyId_to_file1 intercept_monitor_policyId10 ${policyId1}
|
||||
insert_policyId_to_file1 monitor_policyId10 ${policyId2}
|
||||
|
||||
Proxy-Policy-monitor-00012
|
||||
[Tags] cookie字串匹配
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.youqulu.com
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=zixun
|
||||
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=saltkey|Cookie
|
||||
${rescode} ${objectId2} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建拦截策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
|
||||
${policyId1} Get-Pids ${policyId1}
|
||||
${policyId1} Set Variable ${policyId1}[0]
|
||||
Comment 创建monitor策略
|
||||
${policyDict} Create Dictionary policyName=Proxy-Policy-monitor-00012 policyType=pxy_manipulation policyDesc=autotest action=monitor userRegion={"method":"monitor","protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_URL,${objectId2}|TSG_FIELD_HTTP_REQ_HDR isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
|
||||
${policyId2} Get-Pids ${policyId2}
|
||||
${policyId2} Set Variable ${policyId2}[0]
|
||||
insert_policyId_to_file1 monitor_objectId28 ${objectId}
|
||||
insert_policyId_to_file1 monitor_objectId29 ${objectId1}
|
||||
insert_policyId_to_file1 monitor_objectId30 ${objectId2}
|
||||
insert_policyId_to_file1 intercept_monitor_policyId11 ${policyId1}
|
||||
insert_policyId_to_file1 monitor_policyId11 ${policyId2}
|
||||
# Proxy-Policy-monitor-00012
|
||||
# [Tags] cookie字串匹配
|
||||
# Comment 创建fqdn
|
||||
# ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.youqulu.com
|
||||
# ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建url
|
||||
# ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=zixun
|
||||
# ${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建cookie
|
||||
# ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=saltkey|Cookie
|
||||
# ${rescode} ${objectId2} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建拦截策略
|
||||
# ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
# log ${policyDict}
|
||||
# ${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
|
||||
# ${policyId1} Get-Pids ${policyId1}
|
||||
# ${policyId1} Set Variable ${policyId1}[0]
|
||||
# Comment 创建monitor策略
|
||||
# ${policyDict} Create Dictionary policyName=Proxy-Policy-monitor-00012 policyType=pxy_manipulation policyDesc=autotest action=monitor userRegion={"method":"monitor","protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_URL,${objectId2}|TSG_FIELD_HTTP_REQ_HDR isValid=${1} appIdObjects=${HTTP_ID}
|
||||
# log ${policyDict}
|
||||
# ${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
|
||||
# ${policyId2} Get-Pids ${policyId2}
|
||||
# ${policyId2} Set Variable ${policyId2}[0]
|
||||
# insert_policyId_to_file1 monitor_objectId28 ${objectId}
|
||||
# insert_policyId_to_file1 monitor_objectId29 ${objectId1}
|
||||
# insert_policyId_to_file1 monitor_objectId30 ${objectId2}
|
||||
# insert_policyId_to_file1 intercept_monitor_policyId11 ${policyId1}
|
||||
# insert_policyId_to_file1 monitor_policyId11 ${policyId2}
|
||||
|
||||
Proxy-Policy-monitor-00013
|
||||
[Tags] set-cookie4种匹配
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.nypl.org,*thailand.com.co,*ke.com,$nationalbank.kz
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=incap_ses*|Set-Cookie,*Max-Age=604800|Set-Cookie,domain=.ke.com|Set-Cookie,irkzadmin_session*|Set-Cookie
|
||||
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建拦截策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
|
||||
${policyId1} Get-Pids ${policyId1}
|
||||
${policyId1} Set Variable ${policyId1}[0]
|
||||
Comment 创建monitor策略
|
||||
${policyDict} Create Dictionary policyName=Proxy-Policy-monitor-00013 policyType=pxy_manipulation policyDesc=autotest action=monitor userRegion={"method":"monitor","protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
|
||||
${policyId2} Get-Pids ${policyId2}
|
||||
${policyId2} Set Variable ${policyId2}[0]
|
||||
insert_policyId_to_file1 monitor_objectId31 ${objectId}
|
||||
insert_policyId_to_file1 monitor_objectId32 ${objectId1}
|
||||
insert_policyId_to_file1 intercept_monitor_policyId12 ${policyId1}
|
||||
insert_policyId_to_file1 monitor_policyId12 ${policyId2}
|
||||
# Proxy-Policy-monitor-00013
|
||||
# [Tags] set-cookie4种匹配
|
||||
# Comment 创建fqdn
|
||||
# ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.nypl.org,*thailand.com.co,*ke.com,$nationalbank.kz
|
||||
# ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建set-cookie
|
||||
# ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=incap_ses*|Set-Cookie,*Max-Age=604800|Set-Cookie,domain=.ke.com|Set-Cookie,irkzadmin_session*|Set-Cookie
|
||||
# ${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建拦截策略
|
||||
# ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
# log ${policyDict}
|
||||
# ${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
|
||||
# ${policyId1} Get-Pids ${policyId1}
|
||||
# ${policyId1} Set Variable ${policyId1}[0]
|
||||
# Comment 创建monitor策略
|
||||
# ${policyDict} Create Dictionary policyName=Proxy-Policy-monitor-00013 policyType=pxy_manipulation policyDesc=autotest action=monitor userRegion={"method":"monitor","protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=${HTTP_ID}
|
||||
# log ${policyDict}
|
||||
# ${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
|
||||
# ${policyId2} Get-Pids ${policyId2}
|
||||
# ${policyId2} Set Variable ${policyId2}[0]
|
||||
# insert_policyId_to_file1 monitor_objectId31 ${objectId}
|
||||
# insert_policyId_to_file1 monitor_objectId32 ${objectId1}
|
||||
# insert_policyId_to_file1 intercept_monitor_policyId12 ${policyId1}
|
||||
# insert_policyId_to_file1 monitor_policyId12 ${policyId2}
|
||||
|
||||
Proxy-Policy-monitor-00014
|
||||
[Tags] 请求体字串匹配
|
||||
Comment 创建请求体
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=1234567
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*open.node.com
|
||||
${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建拦截策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
|
||||
${policyId1} Get-Pids ${policyId1}
|
||||
${policyId1} Set Variable ${policyId1}[0]
|
||||
Comment 创建monitor策略
|
||||
${policyDict} Create Dictionary policyName=Proxy-Policy-monitor-00014 policyType=pxy_manipulation policyDesc=autotest action=monitor userRegion={"method":"monitor","protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_REQ_CONTENT isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
|
||||
${policyId2} Get-Pids ${policyId2}
|
||||
${policyId2} Set Variable ${policyId2}[0]
|
||||
insert_policyId_to_file1 monitor_objectId33 ${objectId}
|
||||
insert_policyId_to_file1 monitor_objectId34 ${objectId1}
|
||||
insert_policyId_to_file1 intercept_monitor_policyId13 ${policyId1}
|
||||
insert_policyId_to_file1 monitor_policyId13 ${policyId2}
|
||||
# Proxy-Policy-monitor-00014
|
||||
# [Tags] 请求体字串匹配
|
||||
# Comment 创建请求体
|
||||
# ${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=1234567
|
||||
# ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建fqdn
|
||||
# ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*open.node.com
|
||||
# ${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建拦截策略
|
||||
# ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
|
||||
# log ${policyDict}
|
||||
# ${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
|
||||
# ${policyId1} Get-Pids ${policyId1}
|
||||
# ${policyId1} Set Variable ${policyId1}[0]
|
||||
# Comment 创建monitor策略
|
||||
# ${policyDict} Create Dictionary policyName=Proxy-Policy-monitor-00014 policyType=pxy_manipulation policyDesc=autotest action=monitor userRegion={"method":"monitor","protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_REQ_CONTENT isValid=${1} appIdObjects=${HTTP_ID}
|
||||
# log ${policyDict}
|
||||
# ${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
|
||||
# ${policyId2} Get-Pids ${policyId2}
|
||||
# ${policyId2} Set Variable ${policyId2}[0]
|
||||
# insert_policyId_to_file1 monitor_objectId33 ${objectId}
|
||||
# insert_policyId_to_file1 monitor_objectId34 ${objectId1}
|
||||
# insert_policyId_to_file1 intercept_monitor_policyId13 ${policyId1}
|
||||
# insert_policyId_to_file1 monitor_policyId13 ${policyId2}
|
||||
|
||||
Proxy-Policy-monitor-00015
|
||||
[Tags] 应答体字串匹配
|
||||
Comment 创建应答体
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=ASDFG
|
||||
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建monitor策略
|
||||
${policyDict} Create Dictionary policyName=Proxy-Policy-monitor-00015 policyType=pxy_manipulation policyDesc=autotest action=monitor userRegion={"method":"monitor","protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_RES_CONTENT isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
|
||||
${policyId2} Get-Pids ${policyId2}
|
||||
${policyId2} Set Variable ${policyId2}[0]
|
||||
insert_policyId_to_file1 monitor_objectId35 ${objectId}
|
||||
insert_policyId_to_file1 monitor_policyId14 ${policyId2}
|
||||
# Proxy-Policy-monitor-00015
|
||||
# [Tags] 应答体字串匹配
|
||||
# Comment 创建应答体
|
||||
# ${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=ASDFG
|
||||
# ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建monitor策略
|
||||
# ${policyDict} Create Dictionary policyName=Proxy-Policy-monitor-00015 policyType=pxy_manipulation policyDesc=autotest action=monitor userRegion={"method":"monitor","protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_RES_CONTENT isValid=${1} appIdObjects=${HTTP_ID}
|
||||
# log ${policyDict}
|
||||
# ${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
|
||||
# ${policyId2} Get-Pids ${policyId2}
|
||||
# ${policyId2} Set Variable ${policyId2}[0]
|
||||
# insert_policyId_to_file1 monitor_objectId35 ${objectId}
|
||||
# insert_policyId_to_file1 monitor_policyId14 ${policyId2}
|
||||
|
||||
Proxy-Policy-monitor-00016
|
||||
[Tags] 最大组合1
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*open.node.com
|
||||
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*action
|
||||
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建请求头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
|
||||
${rescode} ${object_qq_Id} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建应答头
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=charset|Content-Type
|
||||
${rescode} ${object_yd_Id} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建请求体
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=mnbv
|
||||
${rescode} ${object_body_Id} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建monitor策略
|
||||
${policyDict} Create Dictionary policyName=Proxy-Policy-monitor-00016 policyType=pxy_manipulation policyDesc=autotest action=monitor userRegion={"method":"monitor","protocol":"HTTP"} filterList=${object_fqdn_Id}|TSG_FIELD_HTTP_HOST,${object_url_Id}|TSG_FIELD_HTTP_URL,${object_qq_Id}|TSG_FIELD_HTTP_REQ_HDR,${object_yd_Id}|TSG_FIELD_HTTP_RES_HDR,${object_body_Id}|TSG_FIELD_HTTP_REQ_CONTENT isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
|
||||
${policyId2} Get-Pids ${policyId2}
|
||||
${policyId2} Set Variable ${policyId2}[0]
|
||||
insert_policyId_to_file1 monitor_objectId36 ${object_fqdn_Id}
|
||||
insert_policyId_to_file1 monitor_objectId37 ${object_url_Id}
|
||||
insert_policyId_to_file1 monitor_objectId38 ${object_qq_Id}
|
||||
insert_policyId_to_file1 monitor_objectId39 ${object_yd_Id}
|
||||
insert_policyId_to_file1 monitor_objectId40 ${object_body_Id}
|
||||
insert_policyId_to_file1 monitor_policyId15 ${policyId2}
|
||||
# Proxy-Policy-monitor-00016
|
||||
# [Tags] 最大组合1
|
||||
# Comment 创建fqdn
|
||||
# ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*open.node.com
|
||||
# ${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建url
|
||||
# ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*action
|
||||
# ${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建请求头
|
||||
# ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
|
||||
# ${rescode} ${object_qq_Id} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建应答头
|
||||
# ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=charset|Content-Type
|
||||
# ${rescode} ${object_yd_Id} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建请求体
|
||||
# ${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=mnbv
|
||||
# ${rescode} ${object_body_Id} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建monitor策略
|
||||
# ${policyDict} Create Dictionary policyName=Proxy-Policy-monitor-00016 policyType=pxy_manipulation policyDesc=autotest action=monitor userRegion={"method":"monitor","protocol":"HTTP"} filterList=${object_fqdn_Id}|TSG_FIELD_HTTP_HOST,${object_url_Id}|TSG_FIELD_HTTP_URL,${object_qq_Id}|TSG_FIELD_HTTP_REQ_HDR,${object_yd_Id}|TSG_FIELD_HTTP_RES_HDR,${object_body_Id}|TSG_FIELD_HTTP_REQ_CONTENT isValid=${1} appIdObjects=${HTTP_ID}
|
||||
# log ${policyDict}
|
||||
# ${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
|
||||
# ${policyId2} Get-Pids ${policyId2}
|
||||
# ${policyId2} Set Variable ${policyId2}[0]
|
||||
# insert_policyId_to_file1 monitor_objectId36 ${object_fqdn_Id}
|
||||
# insert_policyId_to_file1 monitor_objectId37 ${object_url_Id}
|
||||
# insert_policyId_to_file1 monitor_objectId38 ${object_qq_Id}
|
||||
# insert_policyId_to_file1 monitor_objectId39 ${object_yd_Id}
|
||||
# insert_policyId_to_file1 monitor_objectId40 ${object_body_Id}
|
||||
# insert_policyId_to_file1 monitor_policyId15 ${policyId2}
|
||||
|
||||
Proxy-Policy-monitor-00017
|
||||
[Tags] 最大组合2
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.umusicpub.com
|
||||
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建url
|
||||
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=sicpub.com
|
||||
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=timezoneoffset|Cookie
|
||||
${rescode} ${object_qq_Id} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建set-cookie
|
||||
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Domain=.umusicpub.com|Set-Cookie
|
||||
${rescode} ${object_yd_Id} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建应答体
|
||||
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=NOFOLLOW
|
||||
${rescode} ${object_body_Id} AddObject2 ${1} ${objectDict}
|
||||
Comment 创建拦截策略
|
||||
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${object_fqdn_Id}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
|
||||
${policyId1} Get-Pids ${policyId1}
|
||||
${policyId1} Set Variable ${policyId1}[0]
|
||||
Comment 创建monitor策略
|
||||
${policyDict} Create Dictionary policyName=Proxy-Policy-monitor-00017 policyType=pxy_manipulation policyDesc=autotest action=monitor userRegion={"method":"monitor","protocol":"HTTP"} filterList=${object_fqdn_Id}|TSG_FIELD_HTTP_HOST,${object_url_Id}|TSG_FIELD_HTTP_URL,${object_qq_Id}|TSG_FIELD_HTTP_REQ_HDR,${object_yd_Id}|TSG_FIELD_HTTP_RES_HDR,${object_body_Id}|TSG_FIELD_HTTP_RES_CONTENT isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
|
||||
${policyId2} Get-Pids ${policyId2}
|
||||
${policyId2} Set Variable ${policyId2}[0]
|
||||
insert_policyId_to_file1 monitor_objectId41 ${object_fqdn_Id}
|
||||
insert_policyId_to_file1 monitor_objectId42 ${object_url_Id}
|
||||
insert_policyId_to_file1 monitor_objectId43 ${object_qq_Id}
|
||||
insert_policyId_to_file1 monitor_objectId44 ${object_yd_Id}
|
||||
insert_policyId_to_file1 monitor_objectId45 ${object_body_Id}
|
||||
insert_policyId_to_file1 intercept_monitor_policyId14 ${policyId1}
|
||||
insert_policyId_to_file1 monitor_policyId16 ${policyId2}
|
||||
# Proxy-Policy-monitor-00017
|
||||
# [Tags] 最大组合2
|
||||
# Comment 创建fqdn
|
||||
# ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.umusicpub.com
|
||||
# ${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建url
|
||||
# ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=sicpub.com
|
||||
# ${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建cookie
|
||||
# ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=timezoneoffset|Cookie
|
||||
# ${rescode} ${object_qq_Id} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建set-cookie
|
||||
# ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Domain=.umusicpub.com|Set-Cookie
|
||||
# ${rescode} ${object_yd_Id} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建应答体
|
||||
# ${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=NOFOLLOW
|
||||
# ${rescode} ${object_body_Id} AddObject2 ${1} ${objectDict}
|
||||
# Comment 创建拦截策略
|
||||
# ${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-monitor policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${object_fqdn_Id}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
# log ${policyDict}
|
||||
# ${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
|
||||
# ${policyId1} Get-Pids ${policyId1}
|
||||
# ${policyId1} Set Variable ${policyId1}[0]
|
||||
# Comment 创建monitor策略
|
||||
# ${policyDict} Create Dictionary policyName=Proxy-Policy-monitor-00017 policyType=pxy_manipulation policyDesc=autotest action=monitor userRegion={"method":"monitor","protocol":"HTTP"} filterList=${object_fqdn_Id}|TSG_FIELD_HTTP_HOST,${object_url_Id}|TSG_FIELD_HTTP_URL,${object_qq_Id}|TSG_FIELD_HTTP_REQ_HDR,${object_yd_Id}|TSG_FIELD_HTTP_RES_HDR,${object_body_Id}|TSG_FIELD_HTTP_RES_CONTENT isValid=${1} appIdObjects=${HTTP_ID}
|
||||
# log ${policyDict}
|
||||
# ${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
|
||||
# ${policyId2} Get-Pids ${policyId2}
|
||||
# ${policyId2} Set Variable ${policyId2}[0]
|
||||
# insert_policyId_to_file1 monitor_objectId41 ${object_fqdn_Id}
|
||||
# insert_policyId_to_file1 monitor_objectId42 ${object_url_Id}
|
||||
# insert_policyId_to_file1 monitor_objectId43 ${object_qq_Id}
|
||||
# insert_policyId_to_file1 monitor_objectId44 ${object_yd_Id}
|
||||
# insert_policyId_to_file1 monitor_objectId45 ${object_body_Id}
|
||||
# insert_policyId_to_file1 intercept_monitor_policyId14 ${policyId1}
|
||||
# insert_policyId_to_file1 monitor_policyId16 ${policyId2}
|
||||
|
||||
@@ -137,7 +137,7 @@ SecurityPolicy-Deny-Http-00009
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00009.bat
|
||||
... ELSE set variable curl http://www.skycn.com/soft/bangongruanjian.html
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List timed out
|
||||
... ELSE Create List Connection reset by peer
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
|
||||
@@ -145,7 +145,7 @@ SecurityPolicy-Deny-Http-00010
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00010.bat
|
||||
... ELSE set variable curl http://www.avaxsearch.com/tangkas/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List timed out
|
||||
... ELSE Create List Connection reset by peer
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
Comment 改变阻断策略
|
||||
@@ -155,14 +155,14 @@ SecurityPolicy-Deny-Http-00010
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00010.bat
|
||||
... ELSE set variable curl http://www.avaxsearch.com/tangkas/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List timed out
|
||||
... ELSE Create List Connection reset by peer
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
SecurityPolicy-Deny-Http-00011
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00011.bat
|
||||
... ELSE set variable curl http://www.finestquotes.com/quotesbyauthors.php
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List timed out
|
||||
... ELSE Create List Connection reset by peer
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
|
||||
@@ -241,6 +241,10 @@ SecurityPolicy-Deny-Http-00016
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List 000
|
||||
... ELSE Create List 000
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
Comment 失效阻断策略,高优先级策略存在相同网址使用情况时候应在使用之后将策略失效
|
||||
${policyDict} Create Dictionary policyId=${deny_http_policyId15} policyName=SecurityPolicy-Deny-Http-00016 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"HTTP","method":"drop"} filterList=${deny_http_objectId23}|TSG_FIELD_HTTP_HOST,${deny_http_objectId24}|TSG_FIELD_HTTP_URL,${deny_http_objectId25}|TSG_FIELD_HTTP_REQ_HDR,${deny_http_objectId26}|TSG_FIELD_HTTP_RES_HDR,${deny_http_objectId27}|TSG_FIELD_HTTP_REQ_CONTENT isValid=${0} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
|
||||
SecurityPolicy-Deny-Http-00017
|
||||
Comment 功能端验证HTTP验证
|
||||
|
||||
@@ -21,10 +21,12 @@ Proxy-Policy-deny-00001
|
||||
${policyDict} Create Dictionary policyId=${intercept_deny_policyId} source=${deny_objectId46}|TSG_SECURITY_SOURCE_LOCATION policyName=SecurityPolicy-Intercept-deny-1 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${deny_objectId47}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
sleep 5
|
||||
Comment 改变阻断策略
|
||||
${policyDict} Create Dictionary policyId=${deny_policyId} source=${deny_objectId46}|TSG_SECURITY_SOURCE_LOCATION policyName=Proxy-Policy-deny-00001-1 policyType=pxy_manipulation policyDesc=autotest action=deny userRegion={"method":"block","message":"重新开始","code":403,"protocol":"HTTP"} filterList=${deny_objectId47}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
sleep 5
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00001.bat
|
||||
... ELSE set variable curl -kv \ https://newsela.com/about/content/
|
||||
@@ -42,11 +44,11 @@ Proxy-Policy-deny-00002
|
||||
|
||||
Proxy-Policy-deny-00003
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00003.bat
|
||||
... ELSE set variable curl -kv \ https://myamber.ae/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
|
||||
... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
# ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00003.bat
|
||||
# ... ELSE set variable curl -kv \ https://www.wimdu.de/
|
||||
# ${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
|
||||
# ... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用 Tango Secure Gateway CA
|
||||
# ${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00003_1.bat
|
||||
... ELSE set variable curl -kv \ https://creativetravelgroup.com/
|
||||
@@ -261,8 +263,8 @@ Proxy-Policy-deny-00017
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Deny_00016.bat
|
||||
... ELSE set variable curl -H "Content-Type:application/json;charset=UTF-8" -X POST -d "{"requestbody":"mnbv","setcook":"asdf","contenttype": "content-type","responsebody": "adzx"}" -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'http://www.baidu.com/' http://open.node.com/go
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List Not Found
|
||||
... ELSE Create List Not Found
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List 涨涨涨涨
|
||||
... ELSE Create List 涨涨涨涨
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
|
||||
Proxy-Policy-deny-00018
|
||||
|
||||
@@ -14,6 +14,8 @@ Proxy-Policy-hijack-00001
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00001.bat
|
||||
... ELSE set variable curl -kv https://vator.tv/news
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00001.bat
|
||||
... ELSE set variable curl -kv https://vator.tv/news
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List 6b72:f91d:6f81:bfcd:5b0f:e81d:f827:e075 Tango Secure Gateway CA
|
||||
... ELSE Create List 6b72:f91d:6f81:bfcd:5b0f:e81d:f827:e075 Tango Secure Gateway CA
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
@@ -21,17 +23,29 @@ Proxy-Policy-hijack-00001
|
||||
${policyDict} Create Dictionary policyId=${intercept_hijack_policyId} source=${hijack_objectId42}|TSG_SECURITY_SOURCE_LOCATION policyName=SecurityPolicy-Intercept-hijack-1 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${hijack_objectId43}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
Comment 改变重Hijack策略
|
||||
${policyDict} Create Dictionary policyId=${hijack_policyId} source=${hijack_objectId42}|TSG_SECURITY_SOURCE_LOCATION policyName=Proxy-Policy-hijack-00001-1 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"hijack","hijack_profile":${intercept_hijack_policyId},"protocol":"HTTP"} filterList=${hijack_objectId43}|TSG_FIELD_HTTP_HOST,${hijack_objectId39}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=${HTTP_ID}
|
||||
sleep 5
|
||||
Comment 改变Hijack策略
|
||||
${policyDict} Create Dictionary policyId=${hijack_policyId} source=${hijack_objectId42}|TSG_SECURITY_SOURCE_LOCATION policyName=Proxy-Policy-hijack-00001-1 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"hijack","hijack_profile":${hijack_profileId},"protocol":"HTTP"} filterList=${hijack_objectId43}|TSG_FIELD_HTTP_HOST,${hijack_objectId39}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
sleep 5
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00001.bat
|
||||
... ELSE set variable curl -kv https://vator.tv/news
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00001.bat
|
||||
... ELSE set variable curl -kv https://vator.tv/news
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List 6b72:f91d:6f81:bfcd:5b0f:e81d:f827:e075 Tango Secure Gateway CA
|
||||
... ELSE Create List 6b72:f91d:6f81:bfcd:5b0f:e81d:f827:e075 Tango Secure Gateway CA
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
|
||||
Comment 失效拦截策略
|
||||
${policyDict} Create Dictionary policyId=${intercept_hijack_policyId} source=${hijack_objectId42}|TSG_SECURITY_SOURCE_LOCATION policyName=SecurityPolicy-Intercept-hijack-1 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${hijack_objectId43}|TSG_FIELD_SSL_SNI isValid=${0} appIdObjects=${SSL_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
Comment 失效hijack策略
|
||||
${policyDict} Create Dictionary policyId=${hijack_policyId} source=${hijack_objectId42}|TSG_SECURITY_SOURCE_LOCATION policyName=Proxy-Policy-hijack-00001-1 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"hijack","hijack_profile":${hijack_profileId},"protocol":"HTTP"} filterList=${hijack_objectId43}|TSG_FIELD_HTTP_HOST,${hijack_objectId39}|TSG_FIELD_HTTP_URL isValid=${0} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
|
||||
Proxy-Policy-hijack-00002
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00002.bat
|
||||
@@ -62,6 +76,8 @@ Proxy-Policy-hijack-00003
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00003_3.bat
|
||||
... ELSE set variable curl -kv https://peasedev.org/
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00003_3.bat
|
||||
... ELSE set variable curl -kv https://peasedev.org/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List b76f:a340:7b1f:f4d0:27f3:8f0e:2db0:2bac Tango Secure Gateway CA
|
||||
... ELSE Create List b76f:a340:7b1f:f4d0:27f3:8f0e:2db0:2bac Tango Secure Gateway CA
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
@@ -119,7 +135,11 @@ Proxy-Policy-hijack-00008
|
||||
${policyDict} Create Dictionary policyId=${hijack_policyId7} policyName=Proxy-Policy-hijack-00008-1 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"hijack","hijack_profile":${hijack_profileId7},"protocol":"HTTP"} filterList=${hijack_objectId17}|TSG_FIELD_HTTP_URL,${hijack_objectId46}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00008.bat
|
||||
... ELSE set variable curl http://www.mafengwo.cn/mdd/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List 控制小蛇在地图范围内移动
|
||||
... ELSE Create List 控制小蛇在地图范围内移动
|
||||
|
||||
Proxy-Policy-hijack-00009
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00009.bat
|
||||
@@ -140,11 +160,17 @@ Proxy-Policy-hijack-00011
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00011.bat
|
||||
... ELSE set variable curl http://www.airwargame.com/eng/start/
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00011.bat
|
||||
... ELSE set variable curl http://www.airwargame.com/eng/start/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List b76f:a340:7b1f:f4d0:27f3:8f0e:2db0:2bac
|
||||
... ELSE Create List b76f:a340:7b1f:f4d0:27f3:8f0e:2db0:2bac
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
|
||||
Proxy-Policy-hijack-00012
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00012.bat
|
||||
... ELSE set variable curl -kv --cookie "lQfQ_2132_saltkey=t8WY1oPe; lQfQ_2132_lastvisit=1595381790; lQfQ_2132_sid=vqXOg6; lQfQ_2132_lastact=1595385400%09forum.php%09image" --referer 'https://www.baidu.com/' \ https://www.reval.com/corporates/
|
||||
sleep 3
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00012.bat
|
||||
... ELSE set variable curl -kv --cookie "lQfQ_2132_saltkey=t8WY1oPe; lQfQ_2132_lastvisit=1595381790; lQfQ_2132_sid=vqXOg6; lQfQ_2132_lastact=1595385400%09forum.php%09image" --referer 'https://www.baidu.com/' \ https://www.reval.com/corporates/
|
||||
@@ -188,6 +214,8 @@ Proxy-Policy-hijack-00014
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00014.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" \ --cookie "__cfduid=d5c21129d57e7124b729fd86dc82abdcd1596020306; __stripe_sid=2940d4d5-6822-4daf-8b38-9cd18d745beb; __stripe_mid=dd118cd8-845c-4b6e-98ce-81e8d5bdd52c" --referer 'https://www.baidu.com/' \ https://www.travelzoo.com/cn/collections/hotels/ihg-group-meta/
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_hijack_00014.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" \ --cookie "__cfduid=d5c21129d57e7124b729fd86dc82abdcd1596020306; __stripe_sid=2940d4d5-6822-4daf-8b38-9cd18d745beb; __stripe_mid=dd118cd8-845c-4b6e-98ce-81e8d5bdd52c" --referer 'https://www.baidu.com/' \ https://www.travelzoo.com/cn/collections/hotels/ihg-group-meta/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List test-2.gif Tango Secure Gateway CA
|
||||
... ELSE Create List test-2.gif Tango Secure Gateway CA
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
|
||||
@@ -21,7 +21,7 @@ Proxy-Policy-insert-00001
|
||||
${policyDict} Create Dictionary policyId=${intercept_insert_policyId} source=${insert_objectId41}|TSG_SECURITY_SOURCE_LOCATION policyName=SecurityPolicy-Intercept-insert-1 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${insert_objectId42}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
Comment 改变Hijack策略
|
||||
Comment 改变Insert策略
|
||||
${policyDict} Create Dictionary policyId=${insert_policyId} source=${insert_objectId41}|TSG_SECURITY_SOURCE_LOCATION policyName=Proxy-Policy-insert-00001-1 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"insert","insert_profile":${insert_profileId},"protocol":"HTTP"} filterList=${insert_objectId42}|TSG_FIELD_HTTP_HOST,${insert_objectId39}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
@@ -31,6 +31,14 @@ Proxy-Policy-insert-00001
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
|
||||
... ELSE Create List X-TG-Construct-By: tfe Tango Secure Gateway CA
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
Comment 失效拦截策略
|
||||
${policyDict} Create Dictionary policyId=${intercept_insert_policyId} source=${insert_objectId41}|TSG_SECURITY_SOURCE_LOCATION policyName=SecurityPolicy-Intercept-insert-1 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${insert_objectId42}|TSG_FIELD_SSL_SNI isValid=${0} appIdObjects=${SSL_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
Comment 失效Insert策略
|
||||
${policyDict} Create Dictionary policyId=${insert_policyId} source=${insert_objectId41}|TSG_SECURITY_SOURCE_LOCATION policyName=Proxy-Policy-insert-00001-1 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"insert","insert_profile":${insert_profileId},"protocol":"HTTP"} filterList=${insert_objectId42}|TSG_FIELD_HTTP_HOST,${insert_objectId39}|TSG_FIELD_HTTP_URL isValid=${0} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
|
||||
Proxy-Policy-insert-00002
|
||||
Comment 功能端验证HTTP验证
|
||||
@@ -44,6 +52,8 @@ Proxy-Policy-insert-00003
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00003.bat
|
||||
... ELSE set variable curl -kv https://scottsdalepublicart.org/
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00003.bat
|
||||
... ELSE set variable curl -kv https://scottsdalepublicart.org/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List alert Tango Secure Gateway CA
|
||||
... ELSE Create List alert Tango Secure Gateway CA
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
@@ -62,6 +72,8 @@ Proxy-Policy-insert-00003
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00003_3.bat
|
||||
... ELSE set variable curl -kv https://www.doctorpoo.net/
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00003_3.bat
|
||||
... ELSE set variable curl -kv https://www.doctorpoo.net/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List alert Tango Secure Gateway CA
|
||||
... ELSE Create List alert Tango Secure Gateway CA
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
@@ -73,7 +85,7 @@ Proxy-Policy-insert-00004
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List select_language Tango Secure Gateway CA
|
||||
... ELSE Create List select_language Tango Secure Gateway CA
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
Comment 改变Hijack策略
|
||||
Comment 改变Insert策略
|
||||
${policyDict} Create Dictionary policyId=${insert_policyId3} policyName=Proxy-Policy-insert-00004-1 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"insert","insert_profile":${insert_profileId3},"protocol":"HTTP"} filterList=${insert_objectId43}|TSG_FIELD_HTTP_URL,${insert_objectId44}|TSG_FIELD_HTTP_REQ_HDR isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
@@ -112,16 +124,21 @@ Proxy-Policy-insert-00008
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00008.bat
|
||||
... ELSE set variable curl -kv http://www.waikikibeachwalk.com/Shops.htm
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00008.bat
|
||||
... ELSE set variable curl -kv http://www.waikikibeachwalk.com/Shops.htm
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List alert
|
||||
... ELSE Create List alert
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
Comment 改变Hijack策略
|
||||
Comment 改变Insert策略
|
||||
${policyDict} Create Dictionary policyId=${insert_policyId7} policyName=Proxy-Policy-insert-00008-1 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"insert","insert_profile":${insert_profileId7},"protocol":"HTTP"} filterList=${insert_objectId17}|TSG_FIELD_HTTP_URL,${insert_objectId45}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
sleep 5
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00008.bat
|
||||
... ELSE set variable curl -kv http://www.waikikibeachwalk.com/Shops.htm
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00008.bat
|
||||
... ELSE set variable curl -kv http://www.waikikibeachwalk.com/Shops.htm
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List alert
|
||||
... ELSE Create List alert
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
@@ -130,6 +147,9 @@ Proxy-Policy-insert-00009
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00009.bat
|
||||
... ELSE set variable curl -kv \ http://www.world-guides.com/north-america/usa/nevada/las-vegas/
|
||||
sleep 3
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_insert_00009.bat
|
||||
... ELSE set variable curl -kv \ http://www.world-guides.com/north-america/usa/nevada/las-vegas/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List X-TG-Construct-By: tfe
|
||||
... ELSE Create List X-TG-Construct-By: tfe
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
|
||||
@@ -31,9 +31,9 @@ SecurityPolicy-Monitor-Http-00001
|
||||
SecurityPolicy-Monitor-Http-00002
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00002.bat
|
||||
... ELSE set variable curl http://www.freenom.link/zh/index.html?lang=zh
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List Freenom World
|
||||
... ELSE Create List Freenom World
|
||||
... ELSE set variable curl http://fitzhughmedia.com/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List Fitzhugh Media
|
||||
... ELSE Create List Fitzhugh Media
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
|
||||
SecurityPolicy-Monitor-Http-00003
|
||||
@@ -166,12 +166,6 @@ SecurityPolicy-Monitor-Http-00013
|
||||
... ELSE Create List 小吃快餐
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00013_2.bat
|
||||
... ELSE set variable curl http://cn.bing.com/translator
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List 快速翻译单词
|
||||
... ELSE Create List 快速翻译单词
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00013_3.bat
|
||||
... ELSE set variable curl http://virtualflowers.ru/en/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List virtualflowers
|
||||
|
||||
@@ -195,7 +195,7 @@ SecurityPolicy-Momitor-Mail-00008
|
||||
${邮箱密码} Set Variable ${mailqqPasswd}
|
||||
${邮件主题} Set Variable asdf741852
|
||||
${发送者} Set Variable ${mailqqAccount}
|
||||
${附件} Set Variable ["${mailpath}/姬巍川测试文件.txt"]
|
||||
${附件} Set Variable ["${mailpath}/何冰凝测试文件.txt"]
|
||||
${接收者} Set Variable ["${mailAccountGeedge}"]
|
||||
${抄送者} Set Variable ["${mailAccountGeedge}"]
|
||||
${密送者} Set Variable ["${mailAccountGeedge}"]
|
||||
@@ -215,7 +215,7 @@ SecurityPolicy-Momitor-Mail-00008
|
||||
${邮箱密码} Set Variable ${mailqqPasswd}
|
||||
${邮件主题} Set Variable asdf741852
|
||||
${发送者} Set Variable ${mailqqAccount}
|
||||
${附件} Set Variable ["${mailpath}/姬巍川测试文件.txt"]
|
||||
${附件} Set Variable ["${mailpath}/何冰凝测试文件.txt"]
|
||||
${接收者} Set Variable ["${mailAccountGeedge}"]
|
||||
${抄送者} Set Variable ["${mailAccountGeedge}"]
|
||||
${密送者} Set Variable ["${mailAccountGeedge}"]
|
||||
|
||||
@@ -204,13 +204,15 @@ Proxy-Policy-redirect-00014
|
||||
Comment 改变重定向策略
|
||||
${policyDict} Create Dictionary policyId=${redirect_policyId13} policyName=Proxy-Policy-redirect-00014-1 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"redirect","to":"http://www.iceo.com.cn/renwu2013/","code":302,"protocol":"HTTP"} filterList=${redirect_objectId54}|TSG_FIELD_HTTP_REQ_CONTENT,${redirect_objectId47}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
sleep 5
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00014.bat
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_redirect_00014_1.bat
|
||||
... ELSE set variable curl -H "Content-Type:application/json;charset=UTF-8" -X POST -d "{"requestbody":"testredirect0014002","setcook":"monitortest142","contenttype": "content-type","responsebody": "testredirect0014002"}" -kv http://open.node.com/go
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List http://www.iceo.com.cn/renwu2013/
|
||||
... ELSE Create List http://www.iceo.com.cn/renwu2013/
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
sleep 5
|
||||
|
||||
Proxy-Policy-redirect-00015
|
||||
Comment 功能端验证HTTP验证
|
||||
|
||||
@@ -44,7 +44,7 @@ Proxy-Policy-replace-00002
|
||||
${policyDict} Create Dictionary policyId=${replace_policyId1} policyName=Proxy-Policy-replace-00002-1 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"replace","rules":[{"search_in":"http_req_uri","find":"splishsplash","replace_with":"halashaotestreplace0002"}],"protocol":"HTTP"} filterList=109|TSG_FIELD_HTTP_HOST,${replace_objectId44}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
sleep 3
|
||||
sleep 5
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00002.bat
|
||||
... ELSE set variable curl -kv https://www.splishsplash.com/
|
||||
@@ -62,6 +62,8 @@ Proxy-Policy-replace-00003
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00003_1.bat
|
||||
... ELSE set variable curl -kv https://www.pjpugliese.com/
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00003_1.bat
|
||||
... ELSE set variable curl -kv https://www.pjpugliese.com/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List Peter Pugliese Tango Secure Gateway CA
|
||||
... ELSE Create List Peter Pugliese Tango Secure Gateway CA
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
@@ -89,7 +91,7 @@ Proxy-Policy-replace-00004
|
||||
${policyDict} Create Dictionary policyId=${replace_policyId3} policyName=Proxy-Policy-replace-00004-1 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"replace","rules":[{"search_in":"http_resp_header","find":"html","replace_with":"hahaha"}],"protocol":"HTTP"} filterList=${replace_objectId5}|TSG_FIELD_HTTP_URL,${replace_objectId45}|TSG_FIELD_HTTP_REQ_HDR isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
sleep 3
|
||||
sleep 5
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_replace_00004.bat
|
||||
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' https://www.ino.com/news/headlines/
|
||||
|
||||
@@ -45,13 +45,13 @@ Proxy-Policy-deny-00003
|
||||
${profiledId} set Variable ${deny_profileId1}
|
||||
#删除对象
|
||||
${objectids} set Variable ${deny_objectId2}
|
||||
${objectids} set Variable ${deny_objectId3}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId3}
|
||||
#删除策略
|
||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId2}]}
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId2}]}
|
||||
${policyIds} Create List ${policyId1} ${policyId2}
|
||||
${s} Convert to String ${deny_policyId2}
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host myamber.ae
|
||||
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host myamber.ae
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host creativetravelgroup.com
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.hinabian.com
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host smithsonianjourneys
|
||||
|
||||
@@ -35,7 +35,7 @@ Proxy-Policy-hijack-00002
|
||||
#删除文件
|
||||
${profiledId} set Variable ${hijack_profileId1}
|
||||
#删除对象
|
||||
#${objectids} set Variable ${hijack_objectId1}
|
||||
${objectids} set Variable ${hijack_objectId1}
|
||||
${objectids} set Variable ${hijack_objectId40}
|
||||
#删除策略
|
||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_hijack_policyId1}]}
|
||||
|
||||
@@ -26,11 +26,11 @@ SecurityPolicy-Monitor-Http-00001
|
||||
|
||||
SecurityPolicy-Monitor-Http-00002
|
||||
#删除对象
|
||||
#${objectids} set Variable ${monitor_http_objectId1}
|
||||
${objectids} set Variable ${monitor_http_objectId1}
|
||||
#删除策略
|
||||
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId1}]}
|
||||
${s} Convert to String ${monitor_http_policyId1}
|
||||
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host freenom
|
||||
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host fitzhughmedia.com
|
||||
|
||||
SecurityPolicy-Monitor-Http-00003
|
||||
#删除对象
|
||||
@@ -134,7 +134,6 @@ SecurityPolicy-Monitor-Http-00013
|
||||
${s} Convert to String ${monitor_http_policyId12}
|
||||
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.spore.com
|
||||
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.dianping.com
|
||||
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host cn.bing.com
|
||||
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host virtualflowers.ru
|
||||
|
||||
SecurityPolicy-Monitor-Http-00014
|
||||
|
||||
@@ -105,12 +105,16 @@ Proxy-Policy-monitor-00008
|
||||
${objectids} set Variable ${monitor_objectId16}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId17}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId18}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId51}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId52}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId53}
|
||||
#删除策略
|
||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId7}]}
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId7}]}
|
||||
${policyIds} Create List ${policyId1} ${policyId2}
|
||||
${s} Convert to String ${monitor_policyId7}
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.6renyou.com
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.zhenai.com
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host love.163.com
|
||||
|
||||
Proxy-Policy-monitor-00009
|
||||
#删除对象
|
||||
@@ -122,7 +126,7 @@ Proxy-Policy-monitor-00009
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId8}]}
|
||||
${policyIds} Create List ${policyId1} ${policyId2}
|
||||
${s} Convert to String ${monitor_policyId8}
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.ljale.com
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host v.iqilu.com
|
||||
|
||||
Proxy-Policy-monitor-00010
|
||||
#删除对象
|
||||
@@ -134,87 +138,87 @@ Proxy-Policy-monitor-00010
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId9}]}
|
||||
${policyIds} Create List ${policyId1} ${policyId2}
|
||||
${s} Convert to String ${monitor_policyId9}
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.duckduckmoose.com
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.fun.tv
|
||||
|
||||
Proxy-Policy-monitor-00011
|
||||
#删除对象
|
||||
${objectids} set Variable ${monitor_objectId25}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId26}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId27}
|
||||
#删除策略
|
||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId10}]}
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId10}]}
|
||||
${policyIds} Create List ${policyId1} ${policyId2}
|
||||
${s} Convert to String ${monitor_policyId10}
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host tutcandy.com
|
||||
# Proxy-Policy-monitor-00011
|
||||
# #删除对象
|
||||
# ${objectids} set Variable ${monitor_objectId25}
|
||||
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId26}
|
||||
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId27}
|
||||
# #删除策略
|
||||
# ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId10}]}
|
||||
# ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId10}]}
|
||||
# ${policyIds} Create List ${policyId1} ${policyId2}
|
||||
# ${s} Convert to String ${monitor_policyId10}
|
||||
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host tutcandy.com
|
||||
|
||||
Proxy-Policy-monitor-00012
|
||||
#删除对象
|
||||
${objectids} set Variable ${monitor_objectId28}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId29}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId30}
|
||||
#删除策略
|
||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId11}]}
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId11}]}
|
||||
${policyIds} Create List ${policyId1} ${policyId2}
|
||||
${s} Convert to String ${monitor_policyId11}
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.youqulu.com
|
||||
# Proxy-Policy-monitor-00012
|
||||
# #删除对象
|
||||
# ${objectids} set Variable ${monitor_objectId28}
|
||||
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId29}
|
||||
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId30}
|
||||
# #删除策略
|
||||
# ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId11}]}
|
||||
# ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId11}]}
|
||||
# ${policyIds} Create List ${policyId1} ${policyId2}
|
||||
# ${s} Convert to String ${monitor_policyId11}
|
||||
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.youqulu.com
|
||||
|
||||
Proxy-Policy-monitor-00013
|
||||
#删除对象
|
||||
${objectids} set Variable ${monitor_objectId31}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId32}
|
||||
#删除策略
|
||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId12}]}
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId12}]}
|
||||
${policyIds} Create List ${policyId1} ${policyId2}
|
||||
${s} Convert to String ${monitor_policyId12}
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.nypl.org
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.thailand.com.co
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host bj.zu.ke.com
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host nationalbank.kz
|
||||
# Proxy-Policy-monitor-00013
|
||||
# #删除对象
|
||||
# ${objectids} set Variable ${monitor_objectId31}
|
||||
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId32}
|
||||
# #删除策略
|
||||
# ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId12}]}
|
||||
# ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId12}]}
|
||||
# ${policyIds} Create List ${policyId1} ${policyId2}
|
||||
# ${s} Convert to String ${monitor_policyId12}
|
||||
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.nypl.org
|
||||
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.thailand.com.co
|
||||
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host bj.zu.ke.com
|
||||
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host nationalbank.kz
|
||||
|
||||
Proxy-Policy-monitor-00014
|
||||
#删除对象
|
||||
${objectids} set Variable ${monitor_objectId33}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId34}
|
||||
#删除策略
|
||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId13}]}
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId13}]}
|
||||
${policyIds} Create List ${policyId1} ${policyId2}
|
||||
${s} Convert to String ${monitor_policyId13}
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
# Proxy-Policy-monitor-00014
|
||||
# #删除对象
|
||||
# ${objectids} set Variable ${monitor_objectId33}
|
||||
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId34}
|
||||
# #删除策略
|
||||
# ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId13}]}
|
||||
# ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId13}]}
|
||||
# ${policyIds} Create List ${policyId1} ${policyId2}
|
||||
# ${s} Convert to String ${monitor_policyId13}
|
||||
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
Proxy-Policy-monitor-00015
|
||||
#删除对象
|
||||
${objectids} set Variable ${monitor_objectId35}
|
||||
#删除策略
|
||||
${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId14}]}
|
||||
${s} Convert to String ${monitor_policyId14}
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
# Proxy-Policy-monitor-00015
|
||||
# #删除对象
|
||||
# ${objectids} set Variable ${monitor_objectId35}
|
||||
# #删除策略
|
||||
# ${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId14}]}
|
||||
# ${s} Convert to String ${monitor_policyId14}
|
||||
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
Proxy-Policy-monitor-00016
|
||||
#删除对象
|
||||
${objectids} set Variable ${monitor_objectId36}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId37}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId38}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId39}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId40}
|
||||
#删除策略
|
||||
${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId15}]}
|
||||
${s} Convert to String ${monitor_policyId15}
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
# Proxy-Policy-monitor-00016
|
||||
# #删除对象
|
||||
# ${objectids} set Variable ${monitor_objectId36}
|
||||
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId37}
|
||||
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId38}
|
||||
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId39}
|
||||
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId40}
|
||||
# #删除策略
|
||||
# ${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId15}]}
|
||||
# ${s} Convert to String ${monitor_policyId15}
|
||||
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
||||
|
||||
Proxy-Policy-monitor-00017
|
||||
#删除对象
|
||||
${objectids} set Variable ${monitor_objectId41}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId42}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId43}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId44}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId45}
|
||||
#删除策略
|
||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId14}]}
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId16}]}
|
||||
${policyIds} Create List ${policyId1} ${policyId2}
|
||||
${s} Convert to String ${monitor_policyId16}
|
||||
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.umusicpub.com
|
||||
# Proxy-Policy-monitor-00017
|
||||
# #删除对象
|
||||
# ${objectids} set Variable ${monitor_objectId41}
|
||||
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId42}
|
||||
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId43}
|
||||
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId44}
|
||||
# ${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId45}
|
||||
# #删除策略
|
||||
# ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId14}]}
|
||||
# ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId16}]}
|
||||
# ${policyIds} Create List ${policyId1} ${policyId2}
|
||||
# ${s} Convert to String ${monitor_policyId16}
|
||||
# GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.umusicpub.com
|
||||
|
||||
@@ -30,7 +30,8 @@ Proxy-Policy-replace-00001
|
||||
Proxy-Policy-replace-00002
|
||||
#删除对象
|
||||
${objectids} set Variable ${replace_objectId1}
|
||||
${objectids} set Variable ${replace_objectId40}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId40}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId44}
|
||||
#删除策略
|
||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId1}]}
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId1}]}
|
||||
@@ -57,6 +58,7 @@ Proxy-Policy-replace-00004
|
||||
${objectids} set Variable ${replace_objectId4}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId5}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId6}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId45}
|
||||
#删除策略
|
||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId3}]}
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId3}]}
|
||||
@@ -105,6 +107,7 @@ Proxy-Policy-replace-00008
|
||||
${objectids} set Variable ${replace_objectId16}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId17}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId18}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId46}
|
||||
#删除策略
|
||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId7}]}
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId7}]}
|
||||
@@ -128,6 +131,7 @@ Proxy-Policy-replace-00010
|
||||
#删除对象
|
||||
${objectids} set Variable ${replace_objectId22}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId23}
|
||||
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId47}
|
||||
#删除策略
|
||||
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId9}]}
|
||||
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId9}]}
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl -kv https://www.hugedomains.com/domain_profile.cfm?d=bagarres&e=com | iconv -f utf-8 -t gbk
|
||||
curl -kv https://kingidentity.com/ | iconv -f utf-8 -t gbk
|
||||
@@ -1 +1 @@
|
||||
curl -kv https://railways.kz/ | iconv -f utf-8 -t gbk
|
||||
curl -kv https://www.wimdu.de/ | iconv -f utf-8 -t gbk
|
||||
@@ -1 +1 @@
|
||||
curl -H "Content-Type:application/json;charset=UTF-8" -X POST -d "{\"requestbody\":\"denyTest001401\",\"setcook\":\"12345678\",\"contenttype\": \"content-type\",\"responsebody\": \"Response Body\"}" http://open.node.com/go | iconv -f utf-8 -t gbk
|
||||
curl -H "Content-Type:application/json;charset=UTF-8" -X POST -d "{\"requestbody\":\"ProxydenyTest001401\",\"setcook\":\"12345678\",\"contenttype\": \"content-type\",\"responsebody\": \"Response Body\"}" http://open.node.com/go | iconv -f utf-8 -t gbk
|
||||
@@ -1 +1 @@
|
||||
curl -H "Content-Type:application/json;charset=UTF-8" -X POST -d "{\"requestbody\":\"denyTest0014\",\"setcook\":\"12345678\",\"contenttype\": \"content-type\",\"responsebody\": \"Response Body\"}" http://open.node.com/go | iconv -f utf-8 -t gbk
|
||||
curl -H "Content-Type:application/json;charset=UTF-8" -X POST -d "{\"requestbody\":\"ProxydenyTest001402\",\"setcook\":\"12345678\",\"contenttype\": \"content-type\",\"responsebody\": \"Response Body\"}" http://open.node.com/go | iconv -f utf-8 -t gbk
|
||||
@@ -1,4 +1 @@
|
||||
curl -H "Content-Type:application/json;charset=UTF-8" -X POST -d "{\"requestbody\":\"lkjh\",\"setcook\":\"qeqew\",\"contenttype\": \"content-type\",\"responsebody\": \"ASDFG\"}" http://open.node.com/go | iconv -f utf-8 -t gbk
|
||||
|
||||
|
||||
|
||||
curl -H "Content-Type:application/json;charset=UTF-8" -X POST -d "{\"requestbody\":\"lkjh\",\"setcook\":\"qeqew\",\"contenttype\": \"content-type\",\"responsebody\": \"Proxydeny001501\"}" http://open.node.com/go | iconv -f utf-8 -t gbk
|
||||
@@ -1,4 +1,4 @@
|
||||
curl -H "Content-Type:application/json;charset=UTF-8" -X POST -d "{\"requestbody\":\"lkjh\",\"setcook\":\"qeqew\",\"contenttype\": \"content-type\",\"responsebody\": \"deny015\"}" http://open.node.com/go | iconv -f utf-8 -t gbk
|
||||
curl -H "Content-Type:application/json;charset=UTF-8" -X POST -d "{\"requestbody\":\"lkjh\",\"setcook\":\"qeqew\",\"contenttype\": \"content-type\",\"responsebody\": \"Proxydeny001502\"}" http://open.node.com/go | iconv -f utf-8 -t gbk
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl -H "Content-Type:application/json;charset=UTF-8" -X POST -d "{\"requestbody\":\"mnbv\",\"setcook\":\"asdf\",\"contenttype\": \"content-type\",\"responsebody\": \"adzx\"}" -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'http://www.baidu.com/' http://open.node.com/go | iconv -f utf-8 -t gbk
|
||||
curl -H "Content-Type:application/json;charset=UTF-8" -X POST -d "{\"requestbody\":\"ProxyDenyTest0017\",\"setcook\":\"asdf\",\"contenttype\": \"content-type\",\"responsebody\": \"adzx\"}" -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'http://www.baidu.com/' http://open.node.com/go | iconv -f utf-8 -t gbk
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl -kv https://www.stewart.com/en.html | iconv -f utf-8 -t gbk
|
||||
curl -kv https://mt.meipai.com/ | iconv -f utf-8 -t gbk
|
||||
@@ -1,4 +1,4 @@
|
||||
curl -H "Content-Type:application/json;charset=UTF-8" -X POST -d "Content-Type:application/json;charset=UTF-8" -X POST -d "{\"requestbody\":\"testredirect0015\",\"setcook\":\"monitortest142\",\"contenttype\": \"content-type\",\"responsebody\": \"testredirect0014002\"}" -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'http://www.baidu.com/' http://open.node.com/go | iconv -f utf-8 -t gbk
|
||||
curl -H "Content-Type:application/json;charset=UTF-8" -X POST -d "{\"requestbody\":\"testredirect0015\",\"setcook\":\"monitortest142\",\"contenttype\": \"content-type\",\"responsebody\": \"testredirect0015\"}" -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'http://www.baidu.com/' http://open.node.com/go | iconv -f utf-8 -t gbk
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl http://www.cmbchina.com/CmbQuesInfo/index.aspx | iconv -f utf-8 -t gbk
|
||||
curl --connect-timeout 5 -m 10 -kv --referer 'http://www.baidu.com/' http://www.cmbchina.com/CmbQuesInfo/index.aspx | iconv -f utf-8 -t gbk
|
||||
@@ -1 +1 @@
|
||||
curl http://www.skycn.com/soft/bangongruanjian.html | iconv -f utf-8 -t gbk
|
||||
curl --connect-timeout 5 -m 10 -kv --referer 'http://www.baidu.com/' http://www.skycn.com/soft/bangongruanjian.html | iconv -f utf-8 -t gbk
|
||||
@@ -1 +1 @@
|
||||
curl http://www.avaxsearch.com/tangkas/ | iconv -f utf-8 -t gbk
|
||||
curl --connect-timeout 5 -m 10 -kv --referer 'http://www.baidu.com/' http://www.avaxsearch.com/tangkas/ | iconv -f utf-8 -t gbk
|
||||
@@ -1 +1 @@
|
||||
curl http://www.finestquotes.com/quotesbyauthors.php | iconv -f utf-8 -t gbk
|
||||
curl --connect-timeout 5 -m 10 -kv --referer 'http://www.baidu.com/' http://www.finestquotes.com/quotesbyauthors.php | iconv -f utf-8 -t gbk
|
||||
@@ -1 +1 @@
|
||||
curl http://www.ziroom.com/life/index | iconv -f utf-8 -t gbk
|
||||
curl --connect-timeout 5 -m 10 -w %{http_code} www.ziroom.com/life/index -o /dev/null
|
||||
@@ -1 +1 @@
|
||||
curl http://blog.cnstock.com/ | iconv -f utf-8 -t gbk
|
||||
curl --connect-timeout 5 -m 10 -w %{http_code} blog.cnstock.com | iconv -f utf-8 -t gbk
|
||||
@@ -1 +1 @@
|
||||
curl http://www.sinovision.net/portal.php?mod=center | iconv -f utf-8 -t gbk
|
||||
curl --connect-timeout 5 -m 10 -w %{http_code} www.sinovision.net/portal.php?mod=center | iconv -f utf-8 -t gbk
|
||||
@@ -1 +1 @@
|
||||
curl http://nlr.ru/nlr_visit/RA549/novosti | iconv -f utf-8 -t gbk
|
||||
curl --connect-timeout 5 -m 10 -w %{http_code} nlr.ru/nlr_visit/RA549/novosti | iconv -f utf-8 -t gbk
|
||||
@@ -1 +1 @@
|
||||
curl -H "Content-Type:application/json;charset=UTF-8" -X POST -d "{\"requestbody\":\"mnbv\",\"setcook\":\"asdf\",\"contenttype\": \"content-type\",\"responsebody\": \"adzx\"}" -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'http://www.baidu.com/' http://open.node.com/go | iconv -f utf-8 -t gbk
|
||||
curl --connect-timeout 5 -m 10 -H "Content-Type:application/json;charset=UTF-8" -X POST -d "{\"requestbody\":\"DenyHttp0016\",\"setcook\":\"asdf\",\"contenttype\": \"charset\",\"responsebody\": \"adzx\"}" -kv --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36" --referer 'https://www.baidu.com/' http://open.node.com/go -w %{http_code} | iconv -f utf-8 -t gbk
|
||||
@@ -1 +1 @@
|
||||
curl -kv --cookie "*_ga=GA1.2.721078436.1587543528; _gid=GA1.2.916148851.1587543528; _gat=1; _ym_uid=1587543532244912958; _ym_d=1587543532; _ym_isad=2" --referer 'http://www.baidu.com/' \ http://smspunch.net/send-free-sms.aspx | iconv -f utf-8 -t gbk
|
||||
curl --connect-timeout 5 -m 10 -kv --cookie "*_ga=GA1.2.721078436.1587543528; _gid=GA1.2.916148851.1587543528; _gat=1; _ym_uid=1587543532244912958; _ym_d=1587543532; _ym_isad=2" --referer 'http://www.baidu.com/' \ http://smspunch.net/send-free-sms.aspx -w %{http_code} | iconv -f utf-8 -t gbk
|
||||
@@ -1 +1 @@
|
||||
curl https://www.utarc.org/ | iconv -f utf-8 -t gbk
|
||||
curl --connect-timeout 5 -m 10 -kv --referer 'http://www.baidu.com/' \ https://austinama.org/
|
||||
@@ -1 +1 @@
|
||||
curl https://www.nq4y.net/ | iconv -f utf-8 -t gbk
|
||||
curl --connect-timeout 5 -m 10 -kv --referer 'http://www.baidu.com/' \ https://assegaimedia.com/
|
||||
@@ -1 +1 @@
|
||||
curl https://www.prlib.ru | iconv -f utf-8 -t gbk
|
||||
curl --connect-timeout 5 -m 10 -kv --referer 'http://www.baidu.com/' \ https://www.prlib.ru
|
||||
@@ -1 +1 @@
|
||||
curl https://www.leisu.com/ | iconv -f utf-8 -t gbk
|
||||
curl --connect-timeout 5 -m 10 -kv --referer 'http://www.baidu.com/' \ https://www.leisu.com/
|
||||
@@ -1 +1 @@
|
||||
curl http://www.freenom.link/zh/index.html?lang=zh | iconv -f utf-8 -t gbk
|
||||
curl http://fitzhughmedia.com/ | iconv -f utf-8 -t gbk
|
||||
Reference in New Issue
Block a user