调整,fqdn_category无法添加问题,补充代理白名单用例,安全除Tango外其他证书用例

This commit is contained in:
hebingning
2021-01-20 20:23:15 +08:00
parent 442492de7f
commit 4c54382709
19 changed files with 337 additions and 327 deletions

View File

@@ -27,9 +27,9 @@ Proxy-Policy-allow-00001
insert_policyId_to_file1 allow_policyId ${policyId2} insert_policyId_to_file1 allow_policyId ${policyId2}
Proxy-Policy-allow-00002 Proxy-Policy-allow-00002
[Tags] cat匹配 [Tags] cat匹配
Comment 创建fqdn Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*feishu.cn ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*feishu.cn
${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment Comment 创建拦截策略 Comment Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-allow 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-allow 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}
@@ -46,20 +46,20 @@ Proxy-Policy-allow-00002
Proxy-Policy-allow-00003 Proxy-Policy-allow-00003
[Tags] url4种匹配 [Tags] url4种匹配
Comment 创建fqdn Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*smzdm.com,*bilibili.com,*cheapair.com,*surfline.com # ${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*smzdm.com,*bilibili.com,*cheapair.com,*surfline.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict} # ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建url Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=passport.bilibili.com/l*,$www.smzdm.com/jingxuan/,*air.com/hotels/,premium ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=csgo500,$znakitaro.ru/,*trou.ru/,lun*
${rescode} ${objectId1} AddObject2 ${1} ${objectDict} ${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
Comment Comment 创建拦截策略 Comment Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-allow 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-allow policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=114|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
log ${policyDict} log ${policyDict}
${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2 ${rescode} ${policyId1} AddPolicies 1 ${policyDict} v2
Comment 创建allow策略 Comment 创建allow策略
${policyDict} Create Dictionary policyName=Proxy-Policy-allow-00003 policyType=pxy_manipulation policyDesc=autotest action=allow userRegion={"method":"allow","protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=${HTTP_ID} ${policyDict} Create Dictionary policyName=Proxy-Policy-allow-00003 policyType=pxy_manipulation policyDesc=autotest action=allow userRegion={"method":"allow","protocol":"HTTP"} filterList=${objectId1}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=${HTTP_ID}
log ${policyDict} log ${policyDict}
${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2 ${rescode} ${policyId2} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 allow_objectId2 ${objectId} #insert_policyId_to_file1 allow_objectId2 ${objectId}
insert_policyId_to_file1 allow_objectId3 ${objectId1} insert_policyId_to_file1 allow_objectId3 ${objectId1}
insert_policyId_to_file1 intercept_allow_policyId2 ${policyId1} insert_policyId_to_file1 intercept_allow_policyId2 ${policyId1}
insert_policyId_to_file1 allow_policyId2 ${policyId2} insert_policyId_to_file1 allow_policyId2 ${policyId2}
@@ -67,10 +67,10 @@ Proxy-Policy-allow-00003
Proxy-Policy-allow-00004 Proxy-Policy-allow-00004
[Tags] 请求头左匹配 [Tags] 请求头左匹配
Comment 创建fqdn Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*expeditionportal.com ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*123.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建url Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=al.com/4wd/ ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=www.hao123.com
${rescode} ${objectId1} AddObject2 ${1} ${objectDict} ${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
Comment 创建请求头 Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
@@ -145,7 +145,7 @@ Proxy-Policy-allow-00007
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.woodsnap.com ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.woodsnap.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建url Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=about-us/frames ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=woodsnap
${rescode} ${objectId1} AddObject2 ${1} ${objectDict} ${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
Comment 创建请求头 Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent
@@ -215,7 +215,7 @@ Proxy-Policy-allow-00009
insert_policyId_to_file1 allow_policyId8 ${policyId2} insert_policyId_to_file1 allow_policyId8 ${policyId2}
Proxy-Policy-allow-00010 Proxy-Policy-allow-00010
[Tags] 应答头串匹配 [Tags] 应答头串匹配
Comment 创建fqdn Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*gf.com.cn ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*gf.com.cn
${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -265,15 +265,15 @@ Proxy-Policy-allow-00011
insert_policyId_to_file1 allow_policyId10 ${policyId2} insert_policyId_to_file1 allow_policyId10 ${policyId2}
Proxy-Policy-allow-00012 Proxy-Policy-allow-00012
[Tags] cookie字串匹配 [Tags] cookie四种匹配
Comment 创建fqdn Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.virtuoso.com ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.virtuoso.com,$b.faloo.com,*readnovel.com,*hongxiu.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建url Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=destinations ${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=virtuoso.com,faloo,readnovel,hongxiu.com
${rescode} ${objectId1} AddObject2 ${1} ${objectDict} ${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
Comment 创建cookie Comment 创建cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=saltkey|Cookie ${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=lQfQ_2132|Cookie,_csrfToken|Cookie,curr_url*|Cookie,*1406562325|Cookie,UM_*|Cookie
${rescode} ${objectId2} AddObject2 ${1} ${objectDict} ${rescode} ${objectId2} AddObject2 ${1} ${objectDict}
Comment 创建拦截策略 Comment 创建拦截策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-allow 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-allow 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}

View File

@@ -25,13 +25,34 @@ SecurityPolicy-Intercept-Ssl-00001
insert_policyId_to_file1 intercept_ssl_policyId ${policyId} insert_policyId_to_file1 intercept_ssl_policyId ${policyId}
SecurityPolicy-Intercept-Ssl-00002 SecurityPolicy-Intercept-Ssl-00002
[Tags] cat右匹配 [Tags] category
Comment 创建cat # ${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*momondo.ru
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*momondo.ru # ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略 Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-Ssl-00002 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-Ssl-00002 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=166|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
# insert_policyId_to_file1 intercept_ssl_objectId1 ${objectId}
insert_policyId_to_file1 intercept_ssl_policyId1 ${policyId}
SecurityPolicy-Intercept-Ssl-00003
[Tags] fqdn other
Comment fqdn Certificate
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.xs8.cn
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-Ssl-00003 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1727,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
log ${policyDict} log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2 ${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 intercept_ssl_objectId1 ${objectId} insert_policyId_to_file1 intercept_ssl_objectId1 ${objectId}
insert_policyId_to_file1 intercept_ssl_policyId1 ${policyId} insert_policyId_to_file1 intercept_ssl_policyId2 ${policyId}
SecurityPolicy-Intercept-Ssl-00004
[Tags] category Other Certificate to replace
# ${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*momondo.ru
# ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Intercept-Ssl-00004 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"SSL","keyring":1727,"decryption":1,"decrypt_mirror":{"enable":0,"mirror_profile":null}} filterList=167|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
# insert_policyId_to_file1 intercept_ssl_objectId1 ${objectId}
insert_policyId_to_file1 intercept_ssl_policyId3 ${policyId}

View File

@@ -10,7 +10,7 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
Proxy-Policy-allow-00001 Proxy-Policy-allow-00001
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00001.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00001.bat
... ELSE set variable curl -kv https://mp.pipix.com/extra/user_agreement ... ELSE set variable curl -kv https://mp.pipix.com
${stringlist} run keyword if '${systemType}'=='Windows' Create List 皮皮虾下载 Tango Secure Gateway CA ${stringlist} run keyword if '${systemType}'=='Windows' Create List 皮皮虾下载 Tango Secure Gateway CA
... ELSE Create List 皮皮虾下载 Tango Secure Gateway CA ... ELSE Create List 皮皮虾下载 Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -26,35 +26,35 @@ Proxy-Policy-allow-00002
Proxy-Policy-allow-00003 Proxy-Policy-allow-00003
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00003.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00003.bat
... ELSE set variable curl -kv \ https://www.smzdm.com/jingxuan/ ... ELSE set variable curl -kv \ https://csgo500.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List PC所有AB测试集合 Tango Secure Gateway CA ${stringlist} run keyword if '${systemType}'=='Windows' Create List csgo500 Tango Secure Gateway CA
... ELSE Create List PC所有AB测试集合 Tango Secure Gateway CA ... ELSE Create List csgo500 Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00003_1.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00003_1.bat
... ELSE set variable curl -kv \ https://passport.bilibili.com/login ... ELSE set variable curl -kv \ https://znakitaro.ru/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 哔哩哔哩弹幕视频网 Tango Secure Gateway CA ${stringlist} run keyword if '${systemType}'=='Windows' Create List Тайные Tango Secure Gateway CA
... ELSE Create List 哔哩哔哩弹幕视频网 Tango Secure Gateway CA ... ELSE Create List Новости Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00003_2.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00003_2.bat
... ELSE set variable curl -kv \ https://www.cheapair.com/hotels/ ... ELSE set variable curl -kv \ https://https://astrou.ru/
${stringlist} run keyword if '${systemType}'=='Windows' Create List search cheap hotels Tango Secure Gateway CA ${stringlist} run keyword if '${systemType}'=='Windows' Create List каждые Tango Secure Gateway CA
... ELSE Create List search cheap hotels Tango Secure Gateway CA ... ELSE Create List каждые Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00003_3.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00003_3.bat
... ELSE set variable curl -kv https://www.surfline.com/category/premium ... ELSE set variable curl -kv https://lunar.pw/
${stringlist} run keyword if '${systemType}'=='Windows' Create List premium journalism. Get breaking news in all things surf Tango Secure Gateway CA ${stringlist} run keyword if '${systemType}'=='Windows' Create List Лунный календарь Tango Secure Gateway CA
... ELSE Create List premium journalism. Get breaking news in all things surf Tango Secure Gateway CA ... ELSE Create List МАРТА Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}
Proxy-Policy-allow-00004 Proxy-Policy-allow-00004
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00004.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_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://expeditionportal.com/4wd/ ... 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.hao123.com
${stringlist} run keyword if '${systemType}'=='Windows' Create List as images are available in the DOM Tango Secure Gateway CA ${stringlist} run keyword if '${systemType}'=='Windows' Create List 上网从这里开始 Tango Secure Gateway CA
... ELSE Create List as images are available in the DOM Tango Secure Gateway CA ... ELSE Create List 上网从这里开始 Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}
Proxy-Policy-allow-00005 Proxy-Policy-allow-00005
@@ -77,8 +77,8 @@ Proxy-Policy-allow-00007
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00007.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00007.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.woodsnap.com/about-us/frames ... 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.woodsnap.com/about-us/frames
${stringlist} run keyword if '${systemType}'=='Windows' Create List Google Tag Manager Tango Secure Gateway CA ${stringlist} run keyword if '${systemType}'=='Windows' Create List WoodSnap Tango Secure Gateway CA
... ELSE Create List Google Tag Manager Tango Secure Gateway CA ... ELSE Create List WoodSnap Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}
Proxy-Policy-allow-00008 Proxy-Policy-allow-00008
@@ -93,16 +93,16 @@ Proxy-Policy-allow-00009
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00009.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00009.bat
... ELSE set variable curl http://www.szse.cn/lawrules/index.html ... ELSE set variable curl http://www.szse.cn/lawrules/index.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List 党的建设 ${stringlist} run keyword if '${systemType}'=='Windows' Create List 信息订阅
... ELSE Create List 党的建设 ... ELSE Create List 信息订阅
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}
Proxy-Policy-allow-00010 Proxy-Policy-allow-00010
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00010.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00010.bat
... ELSE set variable curl http://www.gf.com.cn/about/intro ... ELSE set variable curl http://www.gf.com.cn/about/intro
${stringlist} run keyword if '${systemType}'=='Windows' Create List 广发证券官方网站 ${stringlist} run keyword if '${systemType}'=='Windows' Create List 广发证券
... ELSE Create List 广发证券官方网站 ... ELSE Create List 广发证券
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}
Proxy-Policy-allow-00011 Proxy-Policy-allow-00011
@@ -117,8 +117,23 @@ Proxy-Policy-allow-00012
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00012.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_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.virtuoso.com/destinations ... 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.virtuoso.com/destinations
${stringlist} run keyword if '${systemType}'=='Windows' Create List Object moved to Tango Secure Gateway CA ${stringlist} run keyword if '${systemType}'=='Windows' Create List Object moved Tango Secure Gateway CA
... ELSE Create List Object moved to Tango Secure Gateway CA ... ELSE Create List Object moved Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00012_2.bat
... ELSE set variable curl -kv --cookie "UM_distinctid=177195d2f67c6b-06a24c7c217958-31346d-384000-177195d2f68bcf; CNZZDATA1279340671=485789824-1611035725-null%7C1611035725; Hm_lvt_76131d7573faf448cb1cfa2a37e6e3ff=1611038274; Hm_lpvt_76131d7573faf448cb1cfa2a37e6e3ff=1611038274; _csrfToken=hcK679WZm6N2HCbL4lEBi8VIc5GD6d3nVrFPZTDP; newstatisticUUID=1611038276_1033864685" --referer 'https://www.baidu.com/' \ https://www.hongxiu.com/
${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_allow_00012_3.bat
... ELSE set variable curl -kv --cookie "_csrfToken=qjRd8SBOkzGEgOrCAvpDpRLD0hqTSIoNDVZ6DpbU; newstatisticUUID=1611038238_1406562325" --referer 'https://www.baidu.com/' \ https://www.readnovel.com/
${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_allow_00012_4.bat
... ELSE set variable curl -kv --cookie "curr_url=https%3A//b.faloo.com/; host4chongzhi=http%3a%2f%2fb.faloo.com%2f" --referer 'https://www.baidu.com/' \ https://b.faloo.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Tango Secure Gateway CA
... ELSE Create List Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}
Proxy-Policy-allow-00013 Proxy-Policy-allow-00013
@@ -143,8 +158,8 @@ Proxy-Policy-allow-00013
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00013_3.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00013_3.bat
... ELSE set variable curl -kv https://www.vitalsource.com/textbooks ... ELSE set variable curl -kv https://www.vitalsource.com/textbooks
${stringlist} run keyword if '${systemType}'=='Windows' Create List VitalSource Technologies Inc Tango Secure Gateway CA ${stringlist} run keyword if '${systemType}'=='Windows' Create List Shop online and downloadable Tango Secure Gateway CA
... ELSE Create List VitalSource Technologies Inc Tango Secure Gateway CA ... ELSE Create List Shop online and downloadable Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}
Proxy-Policy-allow-00014 Proxy-Policy-allow-00014

View File

@@ -11,14 +11,30 @@ SecurityPolicy-Intercept-Ssl-00001
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_SSL_00001.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_SSL_00001.bat
... ELSE set variable curl -kv https://www.reviewpro.com/ ... ELSE set variable curl -kv https://www.reviewpro.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Before Tango Secure Gateway CA ${stringlist} run keyword if '${systemType}'=='Windows' Create List reviewpro Tango Secure Gateway CA
... ELSE Create List Before Tango Secure Gateway CA ... ELSE Create List reviewpro Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}
SecurityPolicy-Intercept-Ssl-00002 SecurityPolicy-Intercept-Ssl-00002
Comment 功能端验证HTTP验证 Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_SSL_00002.bat ${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_SSL_00002.bat
... ELSE set variable curl -kv https://www.momondo.ru/ ... ELSE set variable curl -kv https://fenopy.se/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Дешевые ави Tango Secure Gateway CA ${stringlist} run keyword if '${systemType}'=='Windows' Create List Fenopy Tango Secure Gateway CA
... ELSE Create List Дешевые ави Tango Secure Gateway CA ... ELSE Create List Fenopy Tango Secure Gateway CA
${rescode} SystemCommands ${commandstr} ${stringlist}
SecurityPolicy-Intercept-Http-00003
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_SSL_00002_2.bat
... ELSE set variable curl -kv https://www.xs8.cn/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 言情小说吧 CA TRUST
... ELSE Create List Book
${rescode} SystemCommands ${commandstr} ${stringlist}
SecurityPolicy-Intercept-Ssl-00004
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Intercept_SSL_00002_3.bat
... ELSE set variable curl -kv https://worldweapon.info/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Энциклопедия CA TRUST
... ELSE Create List Camp Chippewa for Boys CA TRUST
${rescode} SystemCommands ${commandstr} ${stringlist} ${rescode} SystemCommands ${commandstr} ${stringlist}

View File

@@ -36,34 +36,34 @@ Proxy-Policy-allow-00002
Proxy-Policy-allow-00003 Proxy-Policy-allow-00003
#删除对象 #删除对象
${objectids} set Variable ${allow_objectId2} #${objectids} set Variable ${allow_objectId2}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId3} ${objectids} set Variable ${allow_objectId3}
#删除策略 #删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId2}]} ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId2}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId2}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId2}]}
${policyIds} Create List ${policyId1} ${policyId2} ${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${allow_policyId2} ${s} Convert to String ${allow_policyId2}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host smzdm.com GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host csgo500
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host bilibili.com GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host znakitaro.ru
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host cheapair.com GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host astrou.ru
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host surfline.com GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host lunar
Proxy-Policy-allow-00004 Proxy-Policy-allow-00004
#删除对象 #删除对象
${objectids} set Variable ${allow_objectId4} ${objectids} set Variable ${allow_objectId4}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId5} ${objectids} Catenate SEPARATOR=, ${allow_objectId5}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId6} ${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId6}
#删除策略 #删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId3}]} ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId3}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId3}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId3}]}
${policyIds} Create List ${policyId1} ${policyId2} ${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${allow_policyId3} ${s} Convert to String ${allow_policyId3}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host expeditionportal.com GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host hao123
Proxy-Policy-allow-00005 Proxy-Policy-allow-00005
#删除对象 #删除对象
${objectids} set Variable ${allow_objectId7} ${objectids} set Variable ${allow_objectId7}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId8} ${objectids} Catenate SEPARATOR=, ${allow_objectId8}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId9} ${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId9}
#删除策略 #删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId4}]} ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId4}]}
@@ -75,7 +75,7 @@ Proxy-Policy-allow-00005
Proxy-Policy-allow-00006 Proxy-Policy-allow-00006
#删除对象 #删除对象
${objectids} set Variable ${allow_objectId10} ${objectids} set Variable ${allow_objectId10}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId11} ${objectids} Catenate SEPARATOR=, ${allow_objectId11}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId12} ${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId12}
#删除策略 #删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId5}]} ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId5}]}
@@ -87,7 +87,7 @@ Proxy-Policy-allow-00006
Proxy-Policy-allow-00007 Proxy-Policy-allow-00007
#删除对象 #删除对象
${objectids} set Variable ${allow_objectId13} ${objectids} set Variable ${allow_objectId13}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId14} ${objectids} Catenate SEPARATOR=, ${allow_objectId14}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId15} ${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId15}
#删除策略 #删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId6}]} ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId6}]}
@@ -99,7 +99,7 @@ Proxy-Policy-allow-00007
Proxy-Policy-allow-00008 Proxy-Policy-allow-00008
#删除对象 #删除对象
${objectids} set Variable ${allow_objectId16} ${objectids} set Variable ${allow_objectId16}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId17} ${objectids} Catenate SEPARATOR=, ${allow_objectId17}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId18} ${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId18}
#删除策略 #删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId7}]} ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId7}]}
@@ -111,7 +111,7 @@ Proxy-Policy-allow-00008
Proxy-Policy-allow-00009 Proxy-Policy-allow-00009
#删除对象 #删除对象
${objectids} set Variable ${allow_objectId19} ${objectids} set Variable ${allow_objectId19}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId20} ${objectids} Catenate SEPARATOR=, ${allow_objectId20}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId21} ${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId21}
#删除策略 #删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId8}]} ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId8}]}
@@ -123,7 +123,7 @@ Proxy-Policy-allow-00009
Proxy-Policy-allow-00010 Proxy-Policy-allow-00010
#删除对象 #删除对象
${objectids} set Variable ${allow_objectId22} ${objectids} set Variable ${allow_objectId22}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId23} ${objectids} Catenate SEPARATOR=, ${allow_objectId23}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId24} ${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId24}
#删除策略 #删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId9}]} ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId9}]}
@@ -135,7 +135,7 @@ Proxy-Policy-allow-00010
Proxy-Policy-allow-00011 Proxy-Policy-allow-00011
#删除对象 #删除对象
${objectids} set Variable ${allow_objectId25} ${objectids} set Variable ${allow_objectId25}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId26} ${objectids} Catenate SEPARATOR=, ${allow_objectId26}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId27} ${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId27}
#删除策略 #删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId10}]} ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId10}]}
@@ -147,7 +147,7 @@ Proxy-Policy-allow-00011
Proxy-Policy-allow-00012 Proxy-Policy-allow-00012
#删除对象 #删除对象
${objectids} set Variable ${allow_objectId28} ${objectids} set Variable ${allow_objectId28}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId29} ${objectids} Catenate SEPARATOR=, ${allow_objectId29}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId30} ${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId30}
#删除策略 #删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId11}]} ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId11}]}
@@ -155,11 +155,14 @@ Proxy-Policy-allow-00012
${policyIds} Create List ${policyId1} ${policyId2} ${policyIds} Create List ${policyId1} ${policyId2}
${s} Convert to String ${allow_policyId11} ${s} Convert to String ${allow_policyId11}
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.virtuoso.com GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.virtuoso.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.hongxiu.com
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host readnovel
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host b.faloo.com
Proxy-Policy-allow-00013 Proxy-Policy-allow-00013
#删除对象 #删除对象
${objectids} set Variable ${allow_objectId31} ${objectids} set Variable ${allow_objectId31}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId32} ${objectids} Catenate SEPARATOR=, ${allow_objectId32}
#删除策略 #删除策略
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId12}]} ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_allow_policyId12}]}
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId12}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${allow_policyId12}]}
@@ -173,7 +176,7 @@ Proxy-Policy-allow-00013
Proxy-Policy-allow-00014 Proxy-Policy-allow-00014
#删除对象 #删除对象
${objectids} set Variable ${allow_objectId33} ${objectids} set Variable ${allow_objectId33}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId34} ${objectids} Catenate SEPARATOR=, ${allow_objectId34}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId35} ${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId35}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId36} ${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId36}
${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId37} ${objectids} Catenate SEPARATOR=, ${objectids} ${allow_objectId37}

View File

@@ -24,8 +24,24 @@ SecurityPolicy-Intercept-Ssl-00001
SecurityPolicy-Intercept-Ssl-00002 SecurityPolicy-Intercept-Ssl-00002
#删除对象 #删除对象
${objectids} set Variable ${intercept_ssl_objectId1} ${objectids} set Variable ${EMPTY}
#删除策略 #删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${intercept_ssl_policyId1}]} ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${intercept_ssl_policyId1}]}
${s} Convert to String ${intercept_ssl_policyId1} ${s} Convert to String ${intercept_ssl_policyId1}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni www.momondo.ru GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni fenopy.se
SecurityPolicy-Intercept-Ssl-00003
#删除对象
${objectids} set Variable ${intercept_ssl_objectId1}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${intercept_ssl_policyId2}]}
${s} Convert to String ${intercept_ssl_policyId2}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni xs8
SecurityPolicy-Intercept-Ssl-00004
#删除对象
${objectids} set Variable ${EMPTY}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${intercept_ssl_policyId3}]}
${s} Convert to String ${intercept_ssl_policyId3}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} ssl_sni worldweapon.info

View File

@@ -28,22 +28,19 @@ Policy-Get-v2-00001
${policyIds} Create List ${policyIds} Create List
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
Log ${rescode} ${response} Log ${rescode} ${response}
Policy-Post-v1-00001 Policy-Post-v1-00001
${policy} Create Dictionary policyId=1 policyType=tsg_security ${policy} Create Dictionary policyId=1 policyType=tsg_security policyName=wx-policyName1 action=allow doBlacklist=0 doLog=0 isValid=1 effectiveRange={} userRegion={"protocol":"HTTP","traffic_forward":{"enable":1}}
... policyName=wx-policyName1 action=allow doBlacklist=0
... doLog=0 isValid=1 effectiveRange={}
... userRegion={"protocol":"HTTP","traffic_forward":{"enable":1}}
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
${rescode} ${policyIds} AddPolicies 1 ${policy} v1 ${rescode} ${policyIds} AddPolicies 1 ${policy} v1
Log ${rescode} ${policyIds} ${objectIds} Log ${rescode} ${policyIds} ${objectIds}
Policy-Post-v2-00001 Policy-Post-v2-00001
${policy} Create Dictionary policyId=1 policyType=tsg_security ${policy} Create Dictionary policyId=1 policyType=tsg_security policyName=wx-policyName1 action=allow doBlacklist=0 doLog=0 isValid=1 effectiveRange={} userRegion={"protocol":"HTTP","traffic_forward":{"enable":1}}
... policyName=wx-policyName1 action=allow doBlacklist=0
... doLog=0 isValid=1 effectiveRange={}
... userRegion={"protocol":"HTTP","traffic_forward":{"enable":1}}
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
${rescode} ${policyIds} AddPolicies 1 ${policy} v2 ${rescode} ${policyIds} AddPolicies 1 ${policy} v2
Log ${rescode} ${policyIds} ${objectIds} Log ${rescode} ${policyIds} ${objectIds}
Policy-Post-v1-00002 Policy-Post-v1-00002
${policy} Create Dictionary policyId=1 policyType=tsg_security ${policy} Create Dictionary policyId=1 policyType=tsg_security
... policyName=wx-policyName1 action=allow doBlacklist=0 ... policyName=wx-policyName1 action=allow doBlacklist=0
@@ -63,6 +60,7 @@ Policy-Post-v1-00002
@{policyList} Create List ${policy} ${policy1} ${policy2} @{policyList} Create List ${policy} ${policy1} ${policy2}
${rescode} ${policyIds} AddPolicies 1 ${policyList} v1 ${rescode} ${policyIds} AddPolicies 1 ${policyList} v1
Log ${rescode} ${policyIds} ${objectIds} Log ${rescode} ${policyIds} ${objectIds}
Policy-Post-v2-00002 Policy-Post-v2-00002
${policy} Create Dictionary policyId=1 policyType=tsg_security ${policy} Create Dictionary policyId=1 policyType=tsg_security
... policyName=wx-policyName1 action=allow doBlacklist=0 ... policyName=wx-policyName1 action=allow doBlacklist=0
@@ -82,18 +80,14 @@ Policy-Post-v2-00002
@{policyList} Create List ${policy} ${policy1} ${policy2} @{policyList} Create List ${policy} ${policy1} ${policy2}
${rescode} ${policyIds} AddPolicies 1 ${policyList} v2 ${rescode} ${policyIds} AddPolicies 1 ${policyList} v2
Log ${rescode} ${policyIds} ${objectIds} Log ${rescode} ${policyIds} ${objectIds}
Policy-Post-v1-00003 Policy-Post-v1-00003
Comment 创建fqdn Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*baidu.com ${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*baidu.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
${objectIds} Set Variable ${objectId} ${objectIds} Set Variable ${objectId}
Comment 创建安全策略 Comment 创建安全策略
${policy} Create Dictionary policyName=WX_SecurityPolicy-v1-00003 policyType=tsg_security ${policy} Create Dictionary policyName=WX_SecurityPolicy-v1-00003 policyType=tsg_security policyDesc=autotest userTags= action=deny effectiveRange={} userRegion={"protocol":"SSL","method":"drop"} referenceObject=${objectId}|TSG_FIELD_SSL_CN&TSG_FIELD_SSL_SAN isValid=${1} appObjectIdArray=3
... policyDesc=autotest userTags=
... action=deny effectiveRange={}
... userRegion={"protocol":"SSL","method":"drop"}
... referenceObject=${objectId}|TSG_FIELD_SSL_CN&TSG_FIELD_SSL_SAN
... isValid=${1} appObjectIdArray=3
${rescode} ${policyIds} AddPolicies 1 ${policy} v1 ${rescode} ${policyIds} AddPolicies 1 ${policy} v1
Log ${rescode} ${policyIds} ${objectIds} Log ${rescode} ${policyIds} ${objectIds}
Policy-Post-v2-00004 Policy-Post-v2-00004
@@ -103,19 +97,13 @@ Policy-Post-v2-00004
${rescode} ${objectId} AddObject2 ${1} ${objectDict} ${rescode} ${objectId} AddObject2 ${1} ${objectDict}
${objectIds} Set Variable ${objectId} ${objectIds} Set Variable ${objectId}
Comment 创建安全策略 Comment 创建安全策略
${policy} Create Dictionary policyName=WX_SecurityPolicy-v2-00004 policyType=tsg_security ${policy} Create Dictionary policyName=WX_SecurityPolicy-v2-00004 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"SSL","method":"drop"} filterList=${objectId}|TSG_FIELD_SSL_CN isValid=${1} appIdObjects=${SSL_ID} #effectiveRange={}
... policyDesc=autotest
... action=deny #effectiveRange={}
... userRegion={"protocol":"SSL","method":"drop"}
... filterList=${objectId}|TSG_FIELD_SSL_CN
... isValid=${1} appIdObjects=${SSL_ID}
${rescode} ${policyIds} AddPolicies 1 ${policy} v2 ${rescode} ${policyIds} AddPolicies 1 ${policy} v2
Log ${rescode} ${policyIds} ${objectIds} Log ${rescode} ${policyIds} ${objectIds}
Policy-Post-v2-00005 Policy-Post-v2-00005
Comment 创建IP Comment 创建IP
${objectDict} Create Dictionary objectType=ip isValid=${1} ${objectDict} Create Dictionary objectType=ip isValid=${1} isInitialize=0 addItemList=range|192.168.41.68|192.168.41.68|0/0
... isInitialize=0
... addItemList=range|192.168.41.68|192.168.41.68|0/0
${rescode} ${objectId1} AddObject2 ${1} ${objectDict} ${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
${objectIds} Set Variable ${objectId1} ${objectIds} Set Variable ${objectId1}
Log Create IP Object Log Create IP Object
@@ -134,6 +122,7 @@ Policy-Post-v2-00005
... isValid=${1} appIdObjects=${HTTP_ID} ... isValid=${1} appIdObjects=${HTTP_ID}
${rescode} ${policyIds} AddPolicies 1 ${policy} v2 ${rescode} ${policyIds} AddPolicies 1 ${policy} v2
Log ${rescode} ${policyIds} ${objectIds} Log ${rescode} ${policyIds} ${objectIds}
Policy-Post-v2-00006 Policy-Post-v2-00006
[Tags] reflection [Tags] reflection
${caseName} set variable WX_ActiveDefencePolicy-Reflection-V2-00006 ${caseName} set variable WX_ActiveDefencePolicy-Reflection-V2-00006
@@ -160,16 +149,12 @@ Policy-Post-v2-00006
Log ${rescode} ${policyIds} ${objectIds} Log ${rescode} ${policyIds} ${objectIds}
Policy-Post-v2-00007 Policy-Post-v2-00007
Comment 创建IP Comment 创建IP
${objectDict} Create Dictionary objectType=ip isValid=${1} ${objectDict} Create Dictionary objectType=ip isValid=${1} isInitialize=0 addItemList=range|192.168.41.68|192.168.41.68|0/0
... isInitialize=0
... addItemList=range|192.168.41.68|192.168.41.68|0/0
${rescode} ${objectId1} AddObject2 ${1} ${objectDict} ${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
${objectIds} Set Variable ${objectId1} ${objectIds} Set Variable ${objectId1}
Log Create IP Object1 Log Create IP Object1
Comment 创建IP1 Comment 创建IP1
${objectDict} Create Dictionary objectType=ip isValid=${1} ${objectDict} Create Dictionary objectType=ip isValid=${1} isInitialize=0 addItemList=range|192.168.41.67|192.168.41.67|0/0
... isInitialize=0
... addItemList=range|192.168.41.67|192.168.41.67|0/0
${rescode} ${objectId2} AddObject2 ${1} ${objectDict} ${rescode} ${objectId2} AddObject2 ${1} ${objectDict}
${objectIds} Set Variable ${objectId2} ${objectIds} Set Variable ${objectId2}
Log Create IP Object2 Log Create IP Object2
@@ -205,9 +190,7 @@ Policy-Post-v2-00007
${rescode} UpdatePolicies 1 ${policy} v2 update ${rescode} UpdatePolicies 1 ${policy} v2 update
Policy-Post-v2-00008 Policy-Post-v2-00008
Comment 创建IP Comment 创建IP
${objectDict} Create Dictionary objectType=ip isValid=${1} ${objectDict} Create Dictionary objectType=ip isValid=${1} isInitialize=0 addItemList=range|192.168.41.68|192.168.41.68|0/0
... isInitialize=0
... addItemList=range|192.168.41.68|192.168.41.68|0/0
${rescode} ${objectId1} AddObject2 ${1} ${objectDict} ${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
${objectIds} Set Variable ${objectId1} ${objectIds} Set Variable ${objectId1}
Log Create IP Object1 Log Create IP Object1
@@ -232,11 +215,10 @@ Policy-Post-v2-00008
Comment 更新安全策略 Comment 更新安全策略
Set To Dictionary ${policy1} policyId=${updatePolicyId} Set To Dictionary ${policy1} policyId=${updatePolicyId}
${rescode} UpdatePolicies 1 ${policy1} v2 disable ${rescode} UpdatePolicies 1 ${policy1} v2 disable
Policy-Post-v2-00009 Policy-Post-v2-00009
Comment 创建IP Comment 创建IP
${objectDict} Create Dictionary objectType=ip isValid=${1} ${objectDict} Create Dictionary objectType=ip isValid=${1} isInitialize=0 addItemList=range|192.168.41.68|192.168.41.68|0/0
... isInitialize=0
... addItemList=range|192.168.41.68|192.168.41.68|0/0
${rescode} ${objectId1} AddObject2 ${1} ${objectDict} ${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
${objectIds} Set Variable ${objectId1} ${objectIds} Set Variable ${objectId1}
Log Create IP Object1 Log Create IP Object1
@@ -245,7 +227,6 @@ Policy-Post-v2-00009
${rescode} ${objectId3} AddObject2 ${1} ${objectDict} ${rescode} ${objectId3} AddObject2 ${1} ${objectDict}
${objectIds} Set Variable ${objectId3},${objectIds} ${objectIds} Set Variable ${objectId3},${objectIds}
Log Create url Object3 Log Create url Object3
Comment 创建安全策略 Comment 创建安全策略
${policy} Create Dictionary policyName=WX_AddPolicy-v2-00009 policyType=tsg_security ${policy} Create Dictionary policyName=WX_AddPolicy-v2-00009 policyType=tsg_security
... policyDesc=wx-autotest ... policyDesc=wx-autotest
@@ -261,11 +242,10 @@ Policy-Post-v2-00009
Comment 更新安全策略 Comment 更新安全策略
Set To Dictionary ${policy1} policyId=${updatePolicyId} Set To Dictionary ${policy1} policyId=${updatePolicyId}
${rescode} UpdatePolicies 1 ${policy1} v2 enable ${rescode} UpdatePolicies 1 ${policy1} v2 enable
Policy-Post-v2-00010 Policy-Post-v2-00010
Comment 创建IP Comment 创建IP
${objectDict} Create Dictionary objectType=ip isValid=${1} ${objectDict} Create Dictionary objectType=ip isValid=${1} isInitialize=0 addItemList=range|192.168.41.68|192.168.41.68|0/0
... isInitialize=0
... addItemList=range|192.168.41.68|192.168.41.68|0/0
${rescode} ${objectId1} AddObject2 ${1} ${objectDict} ${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
${objectIds} Set Variable ${objectId1} ${objectIds} Set Variable ${objectId1}
Log Create IP Object1 Log Create IP Object1
@@ -274,7 +254,6 @@ Policy-Post-v2-00010
${rescode} ${objectId3} AddObject2 ${1} ${objectDict} ${rescode} ${objectId3} AddObject2 ${1} ${objectDict}
${objectIds} Set Variable ${objectId3},${objectIds} ${objectIds} Set Variable ${objectId3},${objectIds}
Log Create url Object3 Log Create url Object3
Comment 创建安全策略 Comment 创建安全策略
${policy} Create Dictionary policyName=WX_AddPolicy-v2-00010 policyType=tsg_security ${policy} Create Dictionary policyName=WX_AddPolicy-v2-00010 policyType=tsg_security
... policyDesc=wx-autotest ... policyDesc=wx-autotest
@@ -289,11 +268,10 @@ Policy-Post-v2-00010
Comment 更新安全策略 Comment 更新安全策略
${policy} Create Dictionary policyId=${updatePolicyId} ${policy} Create Dictionary policyId=${updatePolicyId}
${rescode} UpdatePolicies 1 ${policy} v2 enable ${rescode} UpdatePolicies 1 ${policy} v2 enable
Policy-Post-v2-00011 Policy-Post-v2-00011
Comment 创建IP Comment 创建IP
${objectDict} Create Dictionary objectType=ip isValid=${1} ${objectDict} Create Dictionary objectType=ip isValid=${1} isInitialize=0 addItemList=range|192.168.41.68|192.168.41.68|0/0
... isInitialize=0
... addItemList=range|192.168.41.68|192.168.41.68|0/0
${rescode} ${objectId1} AddObject2 ${1} ${objectDict} ${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
${objectIds} Set Variable ${objectId1} ${objectIds} Set Variable ${objectId1}
Log Create IP Object1 Log Create IP Object1
@@ -302,7 +280,6 @@ Policy-Post-v2-00011
${rescode} ${objectId3} AddObject2 ${1} ${objectDict} ${rescode} ${objectId3} AddObject2 ${1} ${objectDict}
${objectIds} Set Variable ${objectId3},${objectIds} ${objectIds} Set Variable ${objectId3},${objectIds}
Log Create url Object3 Log Create url Object3
Comment 创建安全策略 Comment 创建安全策略
${policy} Create Dictionary policyName=WX_AddPolicy-v2-00011 policyType=tsg_security ${policy} Create Dictionary policyName=WX_AddPolicy-v2-00011 policyType=tsg_security
... policyDesc=wx-autotest ... policyDesc=wx-autotest
@@ -317,14 +294,12 @@ Policy-Post-v2-00011
Comment 更新安全策略 Comment 更新安全策略
${policy} Create Dictionary policyId=${updatePolicyId} ${policy} Create Dictionary policyId=${updatePolicyId}
${rescode} UpdatePolicies 1 ${policy} v2 disable ${rescode} UpdatePolicies 1 ${policy} v2 disable
Policy-Post-v1-00012 Policy-Post-v1-00012
Comment 创建IP Comment 创建IP
${item1} Create Dictionary isSession=endpoint ip=192.168.32.32 ${item1} Create Dictionary isSession=endpoint ip=192.168.32.32 port=80 direction=${0} protocol=${6} isInitialize=${0}
... port=80 direction=${0} protocol=${6} isInitialize=${0}
${addItemList} Create List ${item1} ${addItemList} Create List ${item1}
${objectDict} Create Dictionary objectType=ip isValid=${1} ${objectDict} Create Dictionary objectType=ip isValid=${1} isInitialize=0 addItemList=${addItemList}
... isInitialize=0
... addItemList=${addItemList}
${rescode} ${objectId1} AddObjects ${1} ${objectDict} ${rescode} ${objectId1} AddObjects ${1} ${objectDict}
${objectIds} Set Variable ${objectId1} ${objectIds} Set Variable ${objectId1}
Log Create IP Object Log Create IP Object
@@ -332,14 +307,12 @@ Policy-Post-v1-00012
${objectDict} Create Dictionary objectId=${objectId1} objectType=ip ${objectDict} Create Dictionary objectId=${objectId1} objectType=ip
${rescode} UpdateObjects ${1} ${objectDict} disable ${rescode} UpdateObjects ${1} ${objectDict} disable
Log Create IP Object Log Create IP Object
Policy-Post-v1-00013 Policy-Post-v1-00013
Comment 创建IP Comment 创建IP
${item1} Create Dictionary isSession=endpoint ip=192.168.32.32 ${item1} Create Dictionary isSession=endpoint ip=192.168.32.32 port=80 direction=${0} protocol=${6} isInitialize=${0}
... port=80 direction=${0} protocol=${6} isInitialize=${0}
${addItemList} Create List ${item1} ${addItemList} Create List ${item1}
${objectDict} Create Dictionary objectType=ip isValid=${0} ${objectDict} Create Dictionary objectType=ip isValid=${0} isInitialize=0 addItemList=${addItemList}
... isInitialize=0
... addItemList=${addItemList}
${rescode} ${objectId1} AddObjects ${1} ${objectDict} ${rescode} ${objectId1} AddObjects ${1} ${objectDict}
${objectIds} Set Variable ${objectId1} ${objectIds} Set Variable ${objectId1}
Log Create IP Object Log Create IP Object
@@ -352,13 +325,12 @@ Policy-Post-v1-00013
END END
Set To Dictionary ${addItemList[0]} itemId=${itemIds[0]} Set To Dictionary ${addItemList[0]} itemId=${itemIds[0]}
Remove From Dictionary ${addItemList[0]} isInitialize Remove From Dictionary ${addItemList[0]} isInitialize
${objectDict} Create Dictionary objectId=${objectId1} objectType=ip ${objectDict} Create Dictionary objectId=${objectId1} objectType=ip updateItemList=${addItemList}
... updateItemList=${addItemList}
${rescode} UpdateObjects ${1} ${objectDict} update ${rescode} UpdateObjects ${1} ${objectDict} update
Log Create IP Object Log Create IP Object
Policy-Post-v1-00014 Policy-Post-v1-00014
Comment 创建urls Comment 创建urls
${item1} Create Dictionary keywordArray=*baidu.com isHexbin=${0} ${item1} Create Dictionary keywordArray=*baidu.com isHexbin=${0}
${item2} Create Dictionary keywordArray=*google.com isHexbin=${0} ${item2} Create Dictionary keywordArray=*google.com isHexbin=${0}
${addItemList} Create List ${item1} ${addItemList} Create List ${item1}
@@ -367,6 +339,7 @@ Policy-Post-v1-00014
${objectDict2} Create Dictionary objectType=url isValid=${1} addItemList=${addItemList1} ${objectDict2} Create Dictionary objectType=url isValid=${1} addItemList=${addItemList1}
${objectList} Create List ${objectDict1} ${objectDict2} ${objectList} Create List ${objectDict1} ${objectDict2}
${rescode} ${objectIds} AddObjects ${1} ${objectList} ${rescode} ${objectIds} AddObjects ${1} ${objectList}
Policy-Post-v1-00015 Policy-Post-v1-00015
Comment 创建urls Comment 创建urls
${item1} Create Dictionary keywordArray=*baidu.com isHexbin=${0} ${item1} Create Dictionary keywordArray=*baidu.com isHexbin=${0}
@@ -382,12 +355,9 @@ Policy-Post-v1-00015
${updateItem2} Create Dictionary keywordArray=*baidu1.com* isHexbin=${0} itemId=${itemIds[0]} ${updateItem2} Create Dictionary keywordArray=*baidu1.com* isHexbin=${0} itemId=${itemIds[0]}
${addItemList} Create List ${addItem1} ${addItemList} Create List ${addItem1}
${updateList} Create List ${updateItem2} ${updateList} Create List ${updateItem2}
${objectDict} Create Dictionary objectId=${objectIds} objectType=url addItemList=${addItemList} updateItemList=${updateList} deleteItemIds=${itemIds}[1]
${objectDict} Create Dictionary objectId=${objectIds} objectType=url
... addItemList=${addItemList}
... updateItemList=${updateList}
... deleteItemIds=${itemIds}[1]
${rescode} UpdateObjects ${1} ${objectDict} update ${rescode} UpdateObjects ${1} ${objectDict} update
Policy-Post-v1-00015-1 Policy-Post-v1-00015-1
Comment 创建http_signature Comment 创建http_signature
${item1} Create Dictionary keywordArray=*baidu.com isHexbin=${0} district=Cookie isInitialize=0 ${item1} Create Dictionary keywordArray=*baidu.com isHexbin=${0} district=Cookie isInitialize=0
@@ -403,17 +373,12 @@ Policy-Post-v1-00015-1
${updateItem2} Create Dictionary keywordArray=*baidu1.com* isHexbin=${0} itemId=${itemIds[0]} isInitialize=0 ${updateItem2} Create Dictionary keywordArray=*baidu1.com* isHexbin=${0} itemId=${itemIds[0]} isInitialize=0
${addItemList} Create List ${addItem1} ${addItemList} Create List ${addItem1}
${updateList} Create List ${updateItem2} ${updateList} Create List ${updateItem2}
${objectDict} Create Dictionary objectId=${objectIds} objectType=http_signature addItemList=${addItemList} updateItemList=${updateList} deleteItemIds=${itemIds}[1]
${objectDict} Create Dictionary objectId=${objectIds} objectType=http_signature
... addItemList=${addItemList}
... updateItemList=${updateList}
... deleteItemIds=${itemIds}[1]
${rescode} UpdateObjects ${1} ${objectDict} update ${rescode} UpdateObjects ${1} ${objectDict} update
Policy-Delete-v1-00016 Policy-Delete-v1-00016
Comment 创建IP Comment 创建IP
${objectDict} Create Dictionary objectType=ip isValid=${1} ${objectDict} Create Dictionary objectType=ip isValid=${1} isInitialize=0 addItemList=range|192.168.41.68|192.168.41.68|0/0
... isInitialize=0
... addItemList=range|192.168.41.68|192.168.41.68|0/0
${rescode} ${objectId1} AddObject2 ${1} ${objectDict} ${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
${objectIds} Set Variable ${objectId1} ${objectIds} Set Variable ${objectId1}
Log Create IP Object1 Log Create IP Object1
@@ -422,26 +387,18 @@ Policy-Delete-v1-00016
${rescode} ${objectId3} AddObject2 ${1} ${objectDict} ${rescode} ${objectId3} AddObject2 ${1} ${objectDict}
${objectIds} Set Variable ${objectId3},${objectIds} ${objectIds} Set Variable ${objectId3},${objectIds}
Log Create url Object3 Log Create url Object3
Comment 创建安全策略 Comment 创建安全策略
${policy} Create Dictionary policyName=WX_AddPolicy-v2-00011 policyType=tsg_security ${policy} Create Dictionary policyName=WX_AddPolicy-v2-00011 policyType=tsg_security policyDesc=wx-autotest action=deny effectiveRange={} userRegion={"protocol":"HTTP","method":"drop"} source=${objectId1}|TSG_SECURITY_SOURCE_ADDR destination=${objectId3}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=${HTTP_ID}
... policyDesc=wx-autotest
... action=deny effectiveRange={}
... userRegion={"protocol":"HTTP","method":"drop"}
... source=${objectId1}|TSG_SECURITY_SOURCE_ADDR
... destination=${objectId3}|TSG_FIELD_HTTP_URL
... isValid=${1} appIdObjects=${HTTP_ID}
${rescode} ${policyIds} AddPolicies 1 ${policy} v2 ${rescode} ${policyIds} AddPolicies 1 ${policy} v2
Log ${rescode} Log ${rescode}
Comment 删除安全策略 Comment 删除安全策略
${rescode} DeletePolicy1 ${policyIds[0]['policyIds']} tsg_security ${rescode} DeletePolicy1 ${policyIds[0]['policyIds']} tsg_security
${policyIds} Create List ${policyIds} Create List
Log ${rescode} Log ${rescode}
Policy-Delete-v1-00017 Policy-Delete-v1-00017
Comment 创建IP Comment 创建IP
${objectDict} Create Dictionary objectType=ip isValid=${1} ${objectDict} Create Dictionary objectType=ip isValid=${1} isInitialize=0 addItemList=range|192.168.41.68|192.168.41.68|0/0
... isInitialize=0
... addItemList=range|192.168.41.68|192.168.41.68|0/0
${rescode} ${objectId1} AddObject2 ${1} ${objectDict} ${rescode} ${objectId1} AddObject2 ${1} ${objectDict}
${objectIds} Set Variable ${objectId1} ${objectIds} Set Variable ${objectId1}
Log Create IP Object1 Log Create IP Object1
@@ -450,80 +407,64 @@ Policy-Delete-v1-00017
${rescode} ${objectId3} AddObject2 ${1} ${objectDict} ${rescode} ${objectId3} AddObject2 ${1} ${objectDict}
${objectIds} Set Variable ${objectId3},${objectIds} ${objectIds} Set Variable ${objectId3},${objectIds}
Log Create url Object3 Log Create url Object3
Comment 创建安全策略 Comment 创建安全策略
${policy} Create Dictionary policyName=WX_AddPolicy-v2-00011 policyType=tsg_security ${policy} Create Dictionary policyName=WX_AddPolicy-v2-00011 policyType=tsg_security policyDesc=wx-autotest action=deny effectiveRange={} userRegion={"protocol":"HTTP","method":"drop"} source=${objectId1}|TSG_SECURITY_SOURCE_ADDR destination=${objectId3}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=${HTTP_ID}
... policyDesc=wx-autotest
... action=deny effectiveRange={}
... userRegion={"protocol":"HTTP","method":"drop"}
... source=${objectId1}|TSG_SECURITY_SOURCE_ADDR
... destination=${objectId3}|TSG_FIELD_HTTP_URL
... isValid=${1} appIdObjects=${HTTP_ID}
${rescode} ${policyIds} AddPolicies 1 ${policy} v2 ${rescode} ${policyIds} AddPolicies 1 ${policy} v2
Log ${rescode} Log ${rescode}
Comment 删除安全策略 Comment 删除安全策略
${rescode} DeletePolicies ${policyIds} ${rescode} DeletePolicies ${policyIds}
${policyIds} Create List ${policyIds} Create List
Log ${rescode} Log ${rescode}
Policy-Import-v1-00018 Policy-Import-v1-00018
Comment 导入json Comment 导入json
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
${rescode} ImportPolicy uploadFiles tsg_security_imp.json tsg_security ${rescode} ImportPolicy uploadFiles tsg_security_imp.json tsg_security
Policy-Export-v1-00019 Policy-Export-v1-00019
Comment 导 出json Comment 导 出json
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
${response} ExportPolicy tsg_security ${EMPTY} ${EMPTY} ${response} ExportPolicy tsg_security ${EMPTY} ${EMPTY}
WriteFile downloads download.json ${response} WriteFile downloads download.json ${response}
Policy-Verify-v1-00020 Policy-Verify-v1-00020
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
Comment 创建对象 Comment 创建对象
${ipValue} Create Dictionary ip=192.168.41.67 port=${1} ${ipValue} Create Dictionary ip=192.168.41.67 port=${1} addrType=${4} protocol=${6} tableName=TSG_SECURITY_SOURCE_ADDR
... addrType=${4} protocol=${6} tableName=TSG_SECURITY_SOURCE_ADDR ${ipValue1} Create Dictionary ip=192.168.41.687 port=${1} addrType=${4} protocol=${6} tableName=TSG_SECURITY_DESTINATION_ADDR
${ipValue1} Create Dictionary ip=192.168.41.687 port=${1} ${ipObj} Create Dictionary attributeType=ip protocol=HTTP attributeName=source attributeValue=${ipValue}
... addrType=${4} protocol=${6} tableName=TSG_SECURITY_DESTINATION_ADDR ${ipObj1} Create Dictionary attributeType=ip protocol=HTTP attributeName=destination attributeValue=${ipValue2}
${ipObj} Create Dictionary attributeType=ip protocol=HTTP attributeName=source
... attributeValue=${ipValue}
${ipObj1} Create Dictionary attributeType=ip protocol=HTTP attributeName=destination
... attributeValue=${ipValue2}
${stringValue} Create Dictionary string=*baidu.com ${stringValue} Create Dictionary string=*baidu.com
${stringObj} Create Dictionary attributeType=string tableName=TSG_OBJ_URL protocol=HTTP attributeName=url ${stringObj} Create Dictionary attributeType=string tableName=TSG_OBJ_URL protocol=HTTP attributeName=url attributeValue=${stringValue}
... attributeValue=${stringValue}
${appIdValue} Create Dictionary string=http. ${appIdValue} Create Dictionary string=http.
${appIdObj} Create Dictionary attributeType=string protocol=HTTP attributeName=app_id ${appIdObj} Create Dictionary attributeType=string protocol=HTTP attributeName=app_id attributeValue=${appIdValue}
... attributeValue=${appIdValue}
${attributes} Create List ${ipObj} ${stringObj} ${appIdObj} ${ipObj1} ${attributes} Create List ${ipObj} ${stringObj} ${appIdObj} ${ipObj1}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
Policy-Verify-v1-00021 Policy-Verify-v1-00021
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
Comment 创建对象 Comment 创建对象
${ipObj} Create Dictionary attributeType=ip tableName=TSG_SECURITY_SOURCE_ADDR protocol=HTTP attributeName=source ${ipObj} Create Dictionary attributeType=ip tableName=TSG_SECURITY_SOURCE_ADDR protocol=HTTP attributeName=source attributeValue={"ip":"192.168.41.67","port":1,"addrType":4,"protocol":6}
... attributeValue={"ip":"192.168.41.67","port":1,"addrType":4,"protocol":6} ${ipObj1} Create Dictionary attributeType=ip tableName=TSG_SECURITY_DESTINATION_ADDR protocol=HTTP attributeName=destination attributeValue={"ip":"192.168.41.68","port":1,"addrType":4,"protocol":6}
${ipObj1} Create Dictionary attributeType=ip tableName=TSG_SECURITY_DESTINATION_ADDR protocol=HTTP attributeName=destination
... attributeValue={"ip":"192.168.41.68","port":1,"addrType":4,"protocol":6}
${stringValue} Create Dictionary string=*baidu.com ${stringValue} Create Dictionary string=*baidu.com
${stringObj} Create Dictionary attributeType=string tableName=TSG_OBJ_URL protocol=HTTP attributeName=url ${stringObj} Create Dictionary attributeType=string tableName=TSG_OBJ_URL protocol=HTTP attributeName=url attributeValue=${stringValue}
... attributeValue=${stringValue}
${appIdValue} Create Dictionary string=http. ${appIdValue} Create Dictionary string=http.
${appIdObj} Create Dictionary attributeType=string protocol=HTTP attributeName=app_id ${appIdObj} Create Dictionary attributeType=string protocol=HTTP attributeName=app_id attributeValue=${appIdValue}
... attributeValue=${appIdValue}
${attributes} Create List ${ipObj} ${stringObj} ${appIdObj} ${ipObj1} ${attributes} Create List ${ipObj} ${stringObj} ${appIdObj} ${ipObj1}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
Policy-Verify-v1-00022 Policy-Verify-v1-00022
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
Comment 创建对象 Comment 创建对象
${ipObj} Create Dictionary attributeType=ip protocol=HTTP attributeName=destination ${ipObj} Create Dictionary attributeType=ip protocol=HTTP attributeName=destination attributeValue={"ip":"192.168.41.67","port":1,"addrType":4,"protocol":6,"tableName":"TSG_SECURITY_DESTINATION_ADDR"}
... attributeValue={"ip":"192.168.41.67","port":1,"addrType":4,"protocol":6,"tableName":"TSG_SECURITY_DESTINATION_ADDR"} ${ipObj1} Create Dictionary attributeType=ip protocol=HTTP attributeName=source attributeValue={"ip":"192.168.41.68","port":1,"addrType":4,"protocol":6,"tableName":"TSG_SECURITY_SOURCE_ADDR"}
${ipObj1} Create Dictionary attributeType=ip protocol=HTTP attributeName=source ${stringObj} Create Dictionary attributeType=string tableName=TSG_OBJ_URL protocol=HTTP attributeName=url attributeValue={'string':'*baidu.com'}
... attributeValue={"ip":"192.168.41.68","port":1,"addrType":4,"protocol":6,"tableName":"TSG_SECURITY_SOURCE_ADDR"}
${stringObj} Create Dictionary attributeType=string tableName=TSG_OBJ_URL protocol=HTTP attributeName=url
... attributeValue={'string':'*baidu.com'}
${appIdValue} Create Dictionary string=http. ${appIdValue} Create Dictionary string=http.
${appIdObj} Create Dictionary attributeType=string protocol=HTTP attributeName=app_id ${appIdObj} Create Dictionary attributeType=string protocol=HTTP attributeName=app_id attributeValue=${appIdValue}
... attributeValue=${appIdValue}
${attributes} Create List ${ipObj} ${stringObj} ${appIdObj} ${ipObj1} ${attributes} Create List ${ipObj} ${stringObj} ${appIdObj} ${ipObj1}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
@@ -532,22 +473,17 @@ Policy-Verify-v1-00022
Policy-Verify-v1-00023 Policy-Verify-v1-00023
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
Comment 创建对象 Comment 创建对象
${ipObj} Create Dictionary attributeType=ip tableName=TSG_SECURITY_SOURCE_ADDR attributeName=source ${ipObj} Create Dictionary attributeType=ip tableName=TSG_SECURITY_SOURCE_ADDR attributeName=source attributeValue=192.168.41.67|1|4|6
... attributeValue=192.168.41.67|1|4|6 ${ipObj1} Create Dictionary attributeType=ip tableName=TSG_SECURITY_DESTINATION_ADDR attributeName=destination attributeValue=192.168.41.68|1|4|6
${ipObj1} Create Dictionary attributeType=ip tableName=TSG_SECURITY_DESTINATION_ADDR attributeName=destination ${stringObj} Create Dictionary attributeType=string tableName=TSG_OBJ_URL protocol=HTTP attributeName=url attributeValue=*baidu.com
... attributeValue=192.168.41.68|1|4|6 ${stringObj1} Create Dictionary attributeType=string protocol=HTTP attributeName=url attributeValue=*jd.com
${stringObj} Create Dictionary attributeType=string tableName=TSG_OBJ_URL protocol=HTTP attributeName=url ${appIdObj} Create Dictionary attributeType=string protocol=HTTP attributeName=app_id attributeValue=http.
... attributeValue=*baidu.com ${signatureObj} Create Dictionary attributeType=signature protocol=HTTP attributeName=req_body attributeValue=Content-Type|application/json
${stringObj1} Create Dictionary attributeType=string protocol=HTTP attributeName=url
... attributeValue=*jd.com
${appIdObj} Create Dictionary attributeType=string protocol=HTTP attributeName=app_id
... attributeValue=http.
${signatureObj} Create Dictionary attributeType=signature protocol=HTTP attributeName=req_body
... attributeValue=Content-Type|application/json
${attributes} Create List ${ipObj} ${stringObj} ${appIdObj} ${signatureObj} ${ipObj1} ${stringObj1} ${attributes} Create List ${ipObj} ${stringObj} ${appIdObj} ${signatureObj} ${ipObj1} ${stringObj1}
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
Policy-Verify-v1dxy Policy-Verify-v1dxy
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
Comment 创建对象 Comment 创建对象
@@ -571,6 +507,7 @@ Policy-Verify-v1dxy
${verifySession} Create Dictionary attributes=${attributes} ${verifySession} Create Dictionary attributes=${attributes}
${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession} ${verifyList} Create Dictionary policyType=tsg_security verifySession=${verifySession}
${rescode} ${resData} VerifyPolicies ${verifyList} ${rescode} ${resData} VerifyPolicies ${verifyList}
Policy-log-v1-00024 Policy-log-v1-00024
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
Comment 查询schema Comment 查询schema
@@ -585,52 +522,38 @@ Policy-log-v1-00024
Append To List ${queryFieldList} ${fieldDict} Append To List ${queryFieldList} ${fieldDict}
END END
Log ${queryFieldList} Log ${queryFieldList}
Policy-log-v1-00025 Policy-log-v1-00025
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
Comment 查询schema Comment 查询schema
${schema_query} ${schema_type} ${default_columns} ${fields} GetLogSchema security_event_log ${schema_query} ${schema_type} ${default_columns} ${fields} GetLogSchema security_event_log
${filters} Get From Dictionary ${schema_query} filters ${filters} Get From Dictionary ${schema_query} filters
Log ${filters} Log ${filters}
Policy-log-v1-00026 Policy-log-v1-00026
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
Comment 查询schema Comment 查询schema
${schema_query} ${schema_type} ${default_columns} ${fields} GetLogSchema security_event_log ${schema_query} ${schema_type} ${default_columns} ${fields} GetLogSchema security_event_log
Comment 处理schema,构造查询条件 Comment 处理schema,构造查询条件
${params} Create Dictionary pageSize=${10} logType=security_event_log ${params} Create Dictionary pageSize=${10} logType=security_event_log start_common_recv_time=2020-06-01 00:00:00 end_common_recv_time=2020-06-24 00:00:00 fields=common_log_id|long,http_url|string,common_client_ip|string,common_client_port|int,common_server_ip|string,common_server_port|int conditions=common_server_port|int|in|${80}^${8080} orderBy=common_server_ip|true common_log_ids=162273027957354498
... start_common_recv_time=2020-06-01 00:00:00
... end_common_recv_time=2020-06-24 00:00:00
... fields=common_log_id|long,http_url|string,common_client_ip|string,common_client_port|int,common_server_ip|string,common_server_port|int
... conditions=common_server_port|int|in|${80}^${8080}
... orderBy=common_server_ip|true
... common_log_ids=162273027957354498
${resData} QueryLogs ${params} list ${resData} QueryLogs ${params} list
Policy-log-v1-00027 Policy-log-v1-00027
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
Comment 查询schema Comment 查询schema
${schema_query} ${schema_type} ${default_columns} ${fields} GetLogSchema security_event_log ${schema_query} ${schema_type} ${default_columns} ${fields} GetLogSchema security_event_log
Comment 处理schema,构造查询条件 Comment 处理schema,构造查询条件
${params} Create Dictionary pageSize=${10} logType=security_event_log ${params} Create Dictionary pageSize=${10} logType=security_event_log start_common_recv_time=2020-06-01 00:00:00 end_common_recv_time=2020-06-24 00:00:00 fields=common_log_id|long,http_url|string,common_client_ip|string,common_client_port|int,common_server_ip|string,common_server_port|int conditions=common_server_port|int|in|${80}^${8080} orderBy=common_server_ip|true common_log_ids=162273027957354498
... start_common_recv_time=2020-06-01 00:00:00
... end_common_recv_time=2020-06-24 00:00:00
... fields=common_log_id|long,http_url|string,common_client_ip|string,common_client_port|int,common_server_ip|string,common_server_port|int
... conditions=common_server_port|int|in|${80}^${8080}
... orderBy=common_server_ip|true
... common_log_ids=162273027957354498
${resData} QueryLogs ${params} count ${resData} QueryLogs ${params} count
Policy-log-v1-00028 Policy-log-v1-00028
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
Comment 查询schema Comment 查询schema
${schema_query} ${schema_type} ${default_columns} ${fields} GetLogSchema security_event_log ${schema_query} ${schema_type} ${default_columns} ${fields} GetLogSchema security_event_log
Comment 处理schema,构造查询条件 Comment 处理schema,构造查询条件
${params} Create Dictionary pageSize=${10} logType=security_event_log ${params} Create Dictionary pageSize=${10} logType=security_event_log start_common_recv_time=2020-06-01 00:00:00 end_common_recv_time=2020-06-24 00:00:00 fields=common_log_id|long|ID,http_url|string|地址,common_client_ip|string|客户端IP,common_client_port|int|客户端端口,common_server_ip|string|服务端IP,common_server_port|int|服务端端口 conditions=common_server_port|int|in|${80}^${8080} orderBy=common_server_ip|true common_log_ids=162273027957354498
... start_common_recv_time=2020-06-01 00:00:00
... end_common_recv_time=2020-06-24 00:00:00
... fields=common_log_id|long|ID,http_url|string|地址,common_client_ip|string|客户端IP,common_client_port|int|客户端端口,common_server_ip|string|服务端IP,common_server_port|int|服务端端口
... conditions=common_server_port|int|in|${80}^${8080}
... orderBy=common_server_ip|true
... common_log_ids=162273027957354498
${resData} QueryLogs ${params} batch ${resData} QueryLogs ${params} batch
Policy-Delete-v1-00029 Policy-Delete-v1-00029
Comment 创建urls Comment 创建urls
${addItem1} Create Dictionary ${addItem1} Create Dictionary
@@ -642,22 +565,27 @@ Policy-Delete-v1-00029
${objectIds} Evaluate list(map(int, re.split('[,]', '${objectIds}'))) re ${objectIds} Evaluate list(map(int, re.split('[,]', '${objectIds}'))) re
${rescode} DeleteObjects ${objectIds} ${rescode} DeleteObjects ${objectIds}
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
Policy-Import-v1-00030 Policy-Import-v1-00030
Comment 导入txt Comment 导入txt
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
${rescode} ImportObject uploadFiles url.txt url ${EMPTY} ${EMPTY} ${rescode} ImportObject uploadFiles url.txt url ${EMPTY} ${EMPTY}
Policy-Import-v1-00031 Policy-Import-v1-00031
Comment 导入csv Comment 导入csv
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
${rescode} ImportObject uploadFiles url.csv url ${EMPTY} ${EMPTY} ${rescode} ImportObject uploadFiles url.csv url ${EMPTY} ${EMPTY}
Policy-Import-v1-00032 Policy-Import-v1-00032
Comment 导入csv Comment 导入csv
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
${rescode} ImportObject uploadFiles IP.csv ip endpoint ${EMPTY} ${rescode} ImportObject uploadFiles IP.csv ip endpoint ${EMPTY}
Policy-Export-v1-00033 Policy-Export-v1-00033
Comment 导 出Excel Comment 导 出Excel
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
${response} ExportObject ip endpoint ${EMPTY} ${EMPTY} ${response} ExportObject ip endpoint ${EMPTY} ${EMPTY}
Policy-Sort-v1-00034 Policy-Sort-v1-00034
Comment 策略排序 Comment 策略排序
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
@@ -665,14 +593,17 @@ Policy-Sort-v1-00034
${params1} Create Dictionary policyType=tsg_security policyId=${1515} beforePolicyId=${1514} ${params1} Create Dictionary policyType=tsg_security policyId=${1515} beforePolicyId=${1514}
${paramsList} Create List ${params} ${params1} ${paramsList} Create List ${params} ${params1}
${response} SortPolicies ${paramsList} ${response} SortPolicies ${paramsList}
Policy-Statistics-v1-00035 Policy-Statistics-v1-00035
Comment 策略统计 Comment 策略统计
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
${response} StatisticsPolicies ${response} StatisticsPolicies
Policy-ProtocolFields-v1-00036 Policy-ProtocolFields-v1-00036
Comment 策略对象生效协议字段查询 Comment 策略对象生效协议字段查询
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}
${response} PolicProtocolFields tsg_security ${EMPTY} ip ${response} PolicProtocolFields tsg_security ${EMPTY} ip
Object-Reference-v1-00037 Object-Reference-v1-00037
Comment 策略对象生效协议字段查询 Comment 策略对象生效协议字段查询
${objectIds} Set Variable ${EMPTY} ${objectIds} Set Variable ${EMPTY}

View File

@@ -91,6 +91,7 @@ AddObject2
${body} ObjectParamsOpertion ${returnData} ${objectList} add ${body} ObjectParamsOpertion ${returnData} ${objectList} add
${response} BasePostRequest /${version}/policy/object body=${body} ${response} BasePostRequest /${version}/policy/object body=${body}
log ${response}
${objectId} Set Variable ${response['data']['objectList'][0]['objectId']} ${objectId} Set Variable ${response['data']['objectList'][0]['objectId']}
${rescodeReturn} Set Variable ${response['code']} ${rescodeReturn} Set Variable ${response['code']}
[Return] ${rescodeReturn} ${objectId} [Return] ${rescodeReturn} ${objectId}
@@ -318,7 +319,7 @@ DeleteProfiles
DeletePolicyAndObject DeletePolicyAndObject
[Arguments] ${policyids} ${objectids} [Arguments] ${policyids} ${objectids}
#删除和对象 #删除和对象
#2020-09-01修改引用DeletePolicyAndGroupObject避免分别维护并兼容之前用例 #2020-09-01修改引用DeletePolicyAndGro upObject避免分别维护并兼容之前用例
${objectId1} Create List [${objectids}] ${objectId1} Create List [${objectids}]
DeletePolicyAndGroupObject ${policyIds} ${objectId1} DeletePolicyAndGroupObject ${policyIds} ${objectId1}
@@ -334,7 +335,7 @@ DeletePolicyAndObject
#删除对象 #删除对象
#log todeleteobj_DeletePolicyAndObject #log todeleteobj_DeletePolicyAndObject
#Run Keyword If "${objectids}"=="${EMPTY}" log no obj to del #Run Keyword If "${objectids}"=="${EMPTY}" log no obj to del
# ... ELSE DeleteObject ${objectids} #... ELSE DeleteObject ${objectids}
DeletePolicyAndGroupObject DeletePolicyAndGroupObject
[Arguments] ${policyids} ${objectids} [Arguments] ${policyids} ${objectids}
@@ -347,7 +348,9 @@ DeletePolicyAndGroupObject
... ELSE DeletePolicys ${policyids} ... ELSE DeletePolicys ${policyids}
#删除对象 #删除对象
log todeleteobj_DeletePolicyAndObject log todeleteobj_DeletePolicyAndObject
log ${objectids}
Run Keyword If "${objectids}"=="${EMPTY}" log no Objects to del Run Keyword If "${objectids}"=="${EMPTY}" log no Objects to del
... ELSE IF ${objectids}==['[]'] log no Objects to del
... ELSE DeleteGroupObjects ${objectids} ... ELSE DeleteGroupObjects ${objectids}
DeletePolicys DeletePolicys
[Arguments] ${policyids} [Arguments] ${policyids}

View File

@@ -1 +1 @@
curl -kv https://passport.bilibili.com/login | iconv -f utf-8 -t gbk curl -kv https://znakitaro.ru/ | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl -kv https://www.cheapair.com/hotels/ | iconv -f utf-8 -t gbk curl -kv https://astrou.ru/ | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl -kv https://www.surfline.com/category/premium | iconv -f utf-8 -t gbk curl -kv https://lunar.pw/| iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
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://expeditionportal.com/4wd/ | iconv -f utf-8 -t gbk 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.hao123.com | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
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.woodsnap.com/about-us/frames | iconv -f utf-8 -t gbk 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.woodsnap.com | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl -kv --cookie "UM_distinctid=177195d2f67c6b-06a24c7c217958-31346d-384000-177195d2f68bcf; CNZZDATA1279340671=485789824-1611035725-null%7C1611035725; Hm_lvt_76131d7573faf448cb1cfa2a37e6e3ff=1611038274; Hm_lpvt_76131d7573faf448cb1cfa2a37e6e3ff=1611038274; _csrfToken=hcK679WZm6N2HCbL4lEBi8VIc5GD6d3nVrFPZTDP; newstatisticUUID=1611038276_1033864685" --referer 'https://www.baidu.com/' \ https://www.hongxiu.com/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl -kv --cookie "_csrfToken=qjRd8SBOkzGEgOrCAvpDpRLD0hqTSIoNDVZ6DpbU; newstatisticUUID=1611038238_1406562325" --referer 'https://www.baidu.com/' \ https://www.readnovel.com/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl -kv --cookie "curr_url=https%3A//b.faloo.com/; host4chongzhi=http%3a%2f%2fb.faloo.com%2f" --referer 'https://www.baidu.com/' \ https://b.faloo.com/ | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl -kv https://www.momondo.ru/ | iconv -f utf-8 -t gbk curl -kv https://fenopy.se/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl -kv https://www.xs8.cn/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl -kv https://worldweapon.info/ | iconv -f utf-8 -t gbk