修改部分错误用例

This commit is contained in:
jwc
2020-07-06 10:29:21 +08:00
parent cfb8cfe1b9
commit 942f6b4964
64 changed files with 428 additions and 475 deletions

View File

@@ -12,7 +12,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
SecurityPolicy-Deny-Dns-00001
[Tags] fqdn
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.facebook.com,*ok.ru
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.facebook.com,*rutube.ru
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Dns-00001 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"DNS","method":"drop"} filterList=${objectId}|TSG_FIELD_DNS_QNAME isValid=${1} appIdObjects=4
@@ -48,7 +48,7 @@ SecurityPolicy-Deny-Dns-00003
SecurityPolicy-Deny-Dns-00004
[Tags] 最大重定向
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*youtube.com
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*twitch.tv
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Dns-00004 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"DNS","method":"redirect","resolution":[{"answer":[{"atype":"AAAA","value":"fc00::2:22","ttl":{"min":400,"max":400}},{"atype":"CNAME","value":"www.facebook.com","ttl":{"min":400,"max":400}}],"qtype":"AAAA"},{"qtype":"A","answer":[{"atype":"CNAME","value":"www.ok.ru","ttl":{"min":400,"max":400}},{"atype":"A","value":"192.168.40.110","ttl":{"min":400,"max":400}}]}]} filterList=${objectId}|TSG_FIELD_DNS_QNAME isValid=${1} appIdObjects=4

View File

@@ -18,7 +18,7 @@ SecurityPolicy-Deny-Ftp-00001
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*123456.txt
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
Comment 创建content
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=*уровня.
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=*qwertyuiop
${rescode} ${object_content_Id} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-FTP-00001 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"FTP","method":"drop"} filterList=${object_Account_Id}|TSG_FIELD_FTP_ACCOUNT,${object_content_Id}|TSG_FIELD_FTP_CONTENT,${object_url_Id}|TSG_FIELD_FTP_URI isValid=${1} appIdObjects=6

View File

@@ -139,13 +139,13 @@ SecurityPolicy-Deny-Http-00008
SecurityPolicy-Deny-Http-00009
[Tags] 应答头
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*default.shtml
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=www.skycn.com
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
Comment 创建应答头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html; charset=utf-8|Content-Type
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html|Content-Type
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Http-00009 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"HTTP","method":"alert","code":204,"message":"123456"} filterList=${objectId}|TSG_FIELD_HTTP_RES_HDR,${object_url_Id}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Http-00009 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"HTTP","method":"drop"} filterList=${objectId}|TSG_FIELD_HTTP_RES_HDR,${object_url_Id}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 deny_http_objectId13 ${object_url_Id}
@@ -155,42 +155,34 @@ SecurityPolicy-Deny-Http-00009
SecurityPolicy-Deny-Http-00010
[Tags] 应答头
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*hot_news.html
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=www.avaxsearch.com
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
Comment 创建应答头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=html|Content-Type
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text/html|Content-Type
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
#创建引用文件
${response} CreatePolicyFile2 ${url} ${responsePageFiles} 404english.html resPages
${profiledId} Get From Dictionary ${response} profileId
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Http-00010 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"HTTP","method":"alert","code":204,"html_profile":${profiledId}} filterList=${objectId}|TSG_FIELD_HTTP_RES_HDR,${object_url_Id}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Http-00010 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"HTTP","method":"drop"} filterList=${objectId}|TSG_FIELD_HTTP_RES_HDR,${object_url_Id}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 deny_http_objectId15 ${object_url_Id}
insert_policyId_to_file1 deny_http_objectId16 ${objectId}
insert_policyId_to_file1 deny_http_policyId9 ${policyId}
insert_policyId_to_file1 deny_http_profiledId2 ${profiledId}
SecurityPolicy-Deny-Http-00011
[Tags] 应答头
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=about
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=finestquotes.com
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
Comment 创建应答头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text*|Content-Type
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
#创建引用文件
${response} CreatePolicyFile2 ${url} ${responsePageFiles} 404english.html resPages
${profiledId} Get From Dictionary ${response} profileId
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Http-00010 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"HTTP","method":"alert","code":204,"html_profile":${profiledId}} filterList=${objectId}|TSG_FIELD_HTTP_RES_HDR,${object_url_Id}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Http-00010 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"HTTP","method":"drop"} filterList=${objectId}|TSG_FIELD_HTTP_RES_HDR,${object_url_Id}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 deny_http_objectId17 ${object_url_Id}
insert_policyId_to_file1 deny_http_objectId18 ${objectId}
insert_policyId_to_file1 deny_http_policyId10 ${policyId}
insert_policyId_to_file1 deny_http_profiledId3 ${profiledId}
SecurityPolicy-Deny-Http-00012
[Tags] cookie
@@ -207,10 +199,10 @@ SecurityPolicy-Deny-Http-00012
SecurityPolicy-Deny-Http-00013
[Tags] set-cookie
Comment 创建set-cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$_csrf=i5y-sz2EivDxtdiiSm2oFcVCgEah3yvu; path=/; httponly|Set-Cookie,*domain=.xiaozhu.com|Set-Cookie,domain=.kiss.ru|Set-Cookie,*oKD0_802a|Set-Cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=CURRENT_CITY_CODE*|Set-Cookie,*domain=.xiaozhu.com|Set-Cookie,domain=.kiss.ru|Set-Cookie,oKD0_802a*|Set-Cookie
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Http-00013 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"HTTP","method":"alert","code":200,"message":"Главная страница"} filterList=${objectId}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Http-00013 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"HTTP","method":"drop"} filterList=${objectId}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 deny_http_objectId20 ${objectId}
@@ -231,7 +223,7 @@ SecurityPolicy-Deny-Http-00014
SecurityPolicy-Deny-Http-00015
[Tags] 应答体
Comment 创建应答体
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=About
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=华彤公司
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Deny-Http-00015 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"HTTP","method":"drop"} filterList=${objectId}|TSG_FIELD_HTTP_RES_CONTENT isValid=${1} appIdObjects=2

View File

@@ -12,7 +12,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
SecurityPolicy-Monitor-Dns-00001
[Tags] fqdn
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.facebook.com,*ok.ru
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$travelgam.com,*flyaurora.ru
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Dns-00001 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"DNS"} filterList=${objectId}|TSG_FIELD_DNS_QNAME isValid=${1} appIdObjects=4
@@ -24,7 +24,7 @@ SecurityPolicy-Monitor-Dns-00001
SecurityPolicy-Monitor-Dns-00002
[Tags] cat
Comment 创建cat
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*yhd.com,$www.vk.com
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*vip.com,$ostrovok.ru
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Dns-00002 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"DNS"} filterList=${objectId}|TSG_FIELD_DNS_QNAME isValid=${1} appIdObjects=4
@@ -32,27 +32,3 @@ SecurityPolicy-Monitor-Dns-00002
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 monitor_dns_objectId1 ${objectId}
insert_policyId_to_file1 monitor_dns_policyId1 ${policyId}
SecurityPolicy-Monitor-Dns-00003
[Tags] cat
Comment 创建cat
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*ya.ru
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Dns-00003 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"DNS"} filterList=${objectId}|TSG_FIELD_DNS_QNAME isValid=${1} appIdObjects=4
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 monitor_dns_objectId2 ${objectId}
insert_policyId_to_file1 monitor_dns_policyId2 ${policyId}
SecurityPolicy-Monitor-Dns-00004
[Tags] 最大重定向
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*youtube.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Dns-00004 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"DNS"} filterList=${objectId}|TSG_FIELD_DNS_QNAME isValid=${1} appIdObjects=4
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 monitor_dns_objectId3 ${objectId}
insert_policyId_to_file1 monitor_dns_policyId3 ${policyId}

View File

@@ -15,10 +15,10 @@ SecurityPolicy-Monitor-Ftp-00001
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=ftp_user
${rescode} ${object_Account_Id} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=123456.txt
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=123zxcvbnm.txt
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
Comment 创建content
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=пациен
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=crfvtgbyhnuj
${rescode} ${object_content_Id} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-FTP-00001 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"FTP"} filterList=${object_Account_Id}|TSG_FIELD_FTP_ACCOUNT,${object_content_Id}|TSG_FIELD_FTP_CONTENT,${object_url_Id}|TSG_FIELD_FTP_URI isValid=${1} appIdObjects=6
@@ -34,10 +34,10 @@ SecurityPolicy-Monitor-Ftp-00002
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=*user
${rescode} ${object_Account_Id} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*est.txt
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*amp.txt
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
Comment 创建content
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=*st.txt
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=*Shandong Province
${rescode} ${object_content_Id} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-FTP-00002 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"FTP"} filterList=${object_Account_Id}|TSG_FIELD_FTP_ACCOUNT,${object_content_Id}|TSG_FIELD_FTP_CONTENT,${object_url_Id}|TSG_FIELD_FTP_URI isValid=${1} appIdObjects=6
@@ -53,10 +53,10 @@ SecurityPolicy-Monitor-Ftp-00003
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=$ftp_user
${rescode} ${object_Account_Id} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=$ftp://192.168.100.5/wlcsy.txt
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=$ftp://192.168.100.5/qwert.txt
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
Comment 创建content
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=$中文文件内容
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=$花好听的名字
${rescode} ${object_content_Id} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-FTP-00003 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"FTP"} filterList=${object_Account_Id}|TSG_FIELD_FTP_ACCOUNT,${object_content_Id}|TSG_FIELD_FTP_CONTENT,${object_url_Id}|TSG_FIELD_FTP_URI isValid=${1} appIdObjects=6
@@ -75,7 +75,7 @@ SecurityPolicy-Monitor-Ftp-00004
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=ftp://192.168.100*
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
Comment 创建content
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=409 пациентов*
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=уютных а*
${rescode} ${object_content_Id} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-FTP-00004 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"FTP"} filterList=${object_Account_Id}|TSG_FIELD_FTP_ACCOUNT,${object_content_Id}|TSG_FIELD_FTP_CONTENT,${object_url_Id}|TSG_FIELD_FTP_URI isValid=${1} appIdObjects=6

View File

@@ -14,7 +14,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
SecurityPolicy-Monitor-Http-00001
[Tags] fqdn
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$webalta.ru
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$nerdreactor.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00001 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=2
@@ -26,7 +26,7 @@ SecurityPolicy-Monitor-Http-00001
SecurityPolicy-Monitor-Http-00002
[Tags] cat
Comment 创建cat
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*nymbler.com
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*jc.jd.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=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=2
@@ -38,7 +38,7 @@ SecurityPolicy-Monitor-Http-00002
SecurityPolicy-Monitor-Http-00003
[Tags] url
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*/news/,$www.icbc.com.cn/icbc/,www.gotohoroscope*,indexv
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*mouse.html,$music.taihe.com/songlist,www.quotegarden*,search
${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=2
@@ -52,11 +52,15 @@ SecurityPolicy-Monitor-Http-00004
Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=Mozilla/5.0*|User-Agent
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*quotes.html
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00004 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_REQ_HDR isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00004 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=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 monitor_http_objectId3 ${objectId}
insert_policyId_to_file1 monitor_http_objectId4 ${object_url_Id}
insert_policyId_to_file1 monitor_http_policyId3 ${policyId}
SecurityPolicy-Monitor-Http-00005
@@ -64,11 +68,15 @@ SecurityPolicy-Monitor-Http-00005
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} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*home/bj/
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00005 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_REQ_HDR isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00005 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=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 monitor_http_objectId4 ${objectId}
insert_policyId_to_file1 monitor_http_objectId5 ${object_url_Id}
insert_policyId_to_file1 monitor_http_objectId6 ${objectId}
insert_policyId_to_file1 monitor_http_policyId4 ${policyId}
SecurityPolicy-Monitor-Http-00006
@@ -76,11 +84,15 @@ SecurityPolicy-Monitor-Http-00006
Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=AppleWebKit|User-Agent
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*weixingche/
${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 isValid=${1} appIdObjects=2
${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=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 monitor_http_objectId5 ${objectId}
insert_policyId_to_file1 monitor_http_objectId7 ${object_url_Id}
insert_policyId_to_file1 monitor_http_objectId8 ${objectId}
insert_policyId_to_file1 monitor_http_policyId5 ${policyId}
SecurityPolicy-Monitor-Http-00007
@@ -88,17 +100,21 @@ SecurityPolicy-Monitor-Http-00007
Comment 创建请求头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*Safari/537.36|User-Agent
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*games/
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00007 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_REQ_HDR isValid=${1} appIdObjects=2
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00007 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=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 monitor_http_objectId6 ${objectId}
insert_policyId_to_file1 monitor_http_objectId9 ${object_url_Id}
insert_policyId_to_file1 monitor_http_objectId10 ${objectId}
insert_policyId_to_file1 monitor_http_policyId6 ${policyId}
SecurityPolicy-Monitor-Http-00008
[Tags] 应答头
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*index.aspx
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*index.shtml
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
Comment 创建应答头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*utf-8|Content-Type
@@ -107,14 +123,14 @@ SecurityPolicy-Monitor-Http-00008
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00008 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_RES_HDR,${object_url_Id}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 monitor_http_objectId7 ${object_url_Id}
insert_policyId_to_file1 monitor_http_objectId8 ${objectId}
insert_policyId_to_file1 monitor_http_objectId11 ${object_url_Id}
insert_policyId_to_file1 monitor_http_objectId12 ${objectId}
insert_policyId_to_file1 monitor_http_policyId7 ${policyId}
SecurityPolicy-Monitor-Http-00009
[Tags] 应答头
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*default.shtml
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*org/facts
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
Comment 创建应答头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$text/html; charset=utf-8|Content-Type
@@ -123,14 +139,14 @@ SecurityPolicy-Monitor-Http-00009
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00009 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_RES_HDR,${object_url_Id}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 monitor_http_objectId9 ${object_url_Id}
insert_policyId_to_file1 monitor_http_objectId10 ${objectId}
insert_policyId_to_file1 monitor_http_objectId13 ${object_url_Id}
insert_policyId_to_file1 monitor_http_objectId14 ${objectId}
insert_policyId_to_file1 monitor_http_policyId8 ${policyId}
SecurityPolicy-Monitor-Http-00010
[Tags] 应答头
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*hot_news.html
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*crime-files/
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
Comment 创建应答头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=html|Content-Type
@@ -139,14 +155,14 @@ SecurityPolicy-Monitor-Http-00010
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00010 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_RES_HDR,${object_url_Id}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 monitor_http_objectId11 ${object_url_Id}
insert_policyId_to_file1 monitor_http_objectId12 ${objectId}
insert_policyId_to_file1 monitor_http_objectId15 ${object_url_Id}
insert_policyId_to_file1 monitor_http_objectId16 ${objectId}
insert_policyId_to_file1 monitor_http_policyId9 ${policyId}
SecurityPolicy-Monitor-Http-00011
[Tags] 应答头
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=about
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=stone.html
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
Comment 创建应答头
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=text*|Content-Type
@@ -155,56 +171,56 @@ SecurityPolicy-Monitor-Http-00011
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00010 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_RES_HDR,${object_url_Id}|TSG_FIELD_HTTP_URL isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 monitor_http_objectId13 ${object_url_Id}
insert_policyId_to_file1 monitor_http_objectId14 ${objectId}
insert_policyId_to_file1 monitor_http_objectId17 ${object_url_Id}
insert_policyId_to_file1 monitor_http_objectId18 ${objectId}
insert_policyId_to_file1 monitor_http_policyId10 ${policyId}
SecurityPolicy-Monitor-Http-00012
[Tags] cookie
Comment 创建cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=_ym_isad=2|Cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=wingsofprey|Cookie
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00012 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_REQ_HDR isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 monitor_http_objectId15 ${objectId}
insert_policyId_to_file1 monitor_http_objectId19 ${objectId}
insert_policyId_to_file1 monitor_http_policyId11 ${policyId}
SecurityPolicy-Monitor-Http-00013
[Tags] set-cookie
Comment 创建set-cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$_csrf=i5y-sz2EivDxtdiiSm2oFcVCgEah3yvu; path=/; httponly|Set-Cookie,*domain=.xiaozhu.com|Set-Cookie,domain=.kiss.ru|Set-Cookie,*oKD0_802a|Set-Cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=$tplVer=06-18|Set-Cookie,*domain=bing.com|Set-Cookie,b; path=/|Set-Cookie,s_ViewType*|Set-Cookie
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00013 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_RES_HDR isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 monitor_http_objectId16 ${objectId}
insert_policyId_to_file1 monitor_http_objectId20 ${objectId}
insert_policyId_to_file1 monitor_http_policyId12 ${policyId}
SecurityPolicy-Monitor-Http-00014
[Tags] 请求体
Comment 创建请求体
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=test
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=zxcvb
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00014 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_REQ_CONTENT isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 monitor_http_objectId17 ${objectId}
insert_policyId_to_file1 monitor_http_objectId21 ${objectId}
insert_policyId_to_file1 monitor_http_policyId13 ${policyId}
SecurityPolicy-Monitor-Http-00015
[Tags] 应答体
Comment 创建应答体
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=About
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=Meet
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00015 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"HTTP"} filterList=${objectId}|TSG_FIELD_HTTP_RES_CONTENT isValid=${1} appIdObjects=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 monitor_http_objectId18 ${objectId}
insert_policyId_to_file1 monitor_http_objectId22 ${objectId}
insert_policyId_to_file1 monitor_http_policyId14 ${policyId}
SecurityPolicy-Monitor-Http-00016
@@ -222,43 +238,43 @@ SecurityPolicy-Monitor-Http-00016
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=*utf-8|Content-Type
${rescode} ${object_yd_Id} AddObject2 ${1} ${objectDict}
Comment 创建请求体
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=qazxsw
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=mkiolp
${rescode} ${object_body_Id} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00016 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"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=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 monitor_http_objectId19 ${object_fqdn_Id}
insert_policyId_to_file1 monitor_http_objectId20 ${object_url_Id}
insert_policyId_to_file1 monitor_http_objectId21 ${object_qq_Id}
insert_policyId_to_file1 monitor_http_objectId22 ${object_yd_Id}
insert_policyId_to_file1 monitor_http_objectId23 ${object_body_Id}
insert_policyId_to_file1 monitor_http_objectId23 ${object_fqdn_Id}
insert_policyId_to_file1 monitor_http_objectId24 ${object_url_Id}
insert_policyId_to_file1 monitor_http_objectId25 ${object_qq_Id}
insert_policyId_to_file1 monitor_http_objectId26 ${object_yd_Id}
insert_policyId_to_file1 monitor_http_objectId27 ${object_body_Id}
insert_policyId_to_file1 monitor_http_policyId15 ${policyId}
SecurityPolicy-Monitor-Http-00017
[Tags] 最大组合2
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*smspunch.net
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*airwargame.com
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
Comment 创建url
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*send-free-sms.aspx
${objectDict} Create Dictionary objectType=url isValid=${1} addItemList=*/eng/start/
${rescode} ${object_url_Id} AddObject2 ${1} ${objectDict}
Comment 创建cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=_ym_isad=2|Cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=wingsofprey|Cookie
${rescode} ${object_qq_Id} AddObject2 ${1} ${objectDict}
Comment 创建set-cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=NET_SessionId|Set-Cookie
${objectDict} Create Dictionary objectType=http_signature isValid=${1} addItemList=wingsofprey|Set-Cookie
${rescode} ${object_yd_Id} AddObject2 ${1} ${objectDict}
Comment 创建应答体
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=Cell No
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=Last news
${rescode} ${object_body_Id} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Http-00017 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"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=2
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
insert_policyId_to_file1 monitor_http_objectId24 ${object_fqdn_Id}
insert_policyId_to_file1 monitor_http_objectId25 ${object_url_Id}
insert_policyId_to_file1 monitor_http_objectId26 ${object_qq_Id}
insert_policyId_to_file1 monitor_http_objectId27 ${object_yd_Id}
insert_policyId_to_file1 monitor_http_objectId28 ${object_body_Id}
insert_policyId_to_file1 monitor_http_objectId28 ${object_fqdn_Id}
insert_policyId_to_file1 monitor_http_objectId29 ${object_url_Id}
insert_policyId_to_file1 monitor_http_objectId30 ${object_qq_Id}
insert_policyId_to_file1 monitor_http_objectId31 ${object_yd_Id}
insert_policyId_to_file1 monitor_http_objectId32 ${object_body_Id}
insert_policyId_to_file1 monitor_http_policyId16 ${policyId}

View File

@@ -12,7 +12,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
SecurityPolicy-Monitor-Mail-00001
[Tags] content
Comment 创建Content
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=стопо
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=zzzzz
${rescode} ${object_Content_Id} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Mail-00001 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"MAIL"} filterList=${object_Content_Id}|TSG_FIELD_MAIL_CONTENT isValid=${1} appIdObjects=5
@@ -23,7 +23,7 @@ SecurityPolicy-Monitor-Mail-00001
SecurityPolicy-Monitor-Mail-00002
[Tags] att_cont
Comment 创建ATT_CONT
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=Простопорно
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=测试文件
${rescode} ${object_ATT_CONT_Id} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Mail-00002 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"MAIL"} filterList=${object_ATT_CONT_Id}|TSG_FIELD_MAIL_ATT_CONTENT isValid=${1} appIdObjects=5
@@ -34,7 +34,7 @@ SecurityPolicy-Monitor-Mail-00002
SecurityPolicy-Monitor-Mail-00003
[Tags] subject from
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=*ОВИДЕО
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=*асятся
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
Comment 创建From
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=*il.com
@@ -49,7 +49,7 @@ SecurityPolicy-Monitor-Mail-00003
SecurityPolicy-Monitor-Mail-00004
[Tags] subject from
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=$天周末
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=$天周末
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
Comment 创建From
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=$jwctest@mail.tsgmail.com
@@ -64,7 +64,7 @@ SecurityPolicy-Monitor-Mail-00004
SecurityPolicy-Monitor-Mail-00005
[Tags] subject from
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=12345678
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=210zxcv
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
Comment 创建From
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=tsgmail
@@ -79,7 +79,7 @@ SecurityPolicy-Monitor-Mail-00005
SecurityPolicy-Monitor-Mail-00006
[Tags] subject from
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=afte*
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=Tomor*
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
Comment 创建From
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=jwct*
@@ -94,7 +94,7 @@ SecurityPolicy-Monitor-Mail-00006
SecurityPolicy-Monitor-Mail-00007
[Tags] to subject
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=*ыонлай
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=*ируете
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
Comment 创建To
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=*il.com
@@ -109,7 +109,7 @@ SecurityPolicy-Monitor-Mail-00007
SecurityPolicy-Monitor-Mail-00008
[Tags] to subject
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=$zxcvbnm
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=$asdf741852
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
Comment 创建To
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=$zmmtest@mail.tsgmail.com
@@ -124,7 +124,7 @@ SecurityPolicy-Monitor-Mail-00008
SecurityPolicy-Monitor-Mail-00009
[Tags] to subject
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=新的一天
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=又过一天
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
Comment 创建To
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=zmmtes
@@ -139,7 +139,7 @@ SecurityPolicy-Monitor-Mail-00009
SecurityPolicy-Monitor-Mail-00010
[Tags] to subject
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=tomor*
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=weeke*
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
Comment 创建To
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=zmmt*
@@ -154,7 +154,7 @@ SecurityPolicy-Monitor-Mail-00010
SecurityPolicy-Monitor-Mail-00011
[Tags] account subject
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=*发送失败
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=*发送成功
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
Comment 创建Account
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=*il.com
@@ -169,7 +169,7 @@ SecurityPolicy-Monitor-Mail-00011
SecurityPolicy-Monitor-Mail-00012
[Tags] account subject
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=$Онлайнфильмывхоро
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=$ограничительным
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
Comment 创建Account
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=$jwctest@mail.tsgmail.com
@@ -184,7 +184,7 @@ SecurityPolicy-Monitor-Mail-00012
SecurityPolicy-Monitor-Mail-00013
[Tags] account subject
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=asdfg
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=258zxc
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
Comment 创建Account
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=tsgmail
@@ -199,7 +199,7 @@ SecurityPolicy-Monitor-Mail-00013
SecurityPolicy-Monitor-Mail-00014
[Tags] account subject
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=马上就要*
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=一天一小时*
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
Comment 创建Account
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=jwct*
@@ -214,7 +214,7 @@ SecurityPolicy-Monitor-Mail-00014
SecurityPolicy-Monitor-Mail-00015
[Tags] 最大组合
Comment 创建Subject
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=$人生路远及时行乐
${objectDict} Create Dictionary objectType=keywords isValid=${1} addItemList=$要留清白在人间
${rescode} ${object_Subject_Id} AddObject2 ${1} ${objectDict}
Comment 创建Account
${objectDict} Create Dictionary objectType=account isValid=${1} addItemList=jwct*

View File

@@ -12,7 +12,7 @@ Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
SecurityPolicy-Monitor-Ssl-00001
[Tags] sni fqdn
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.cxwl.com,*freestockimages.ru
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$www.wego.com.ru,*freecountry.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Ssl-00001 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"SSL"} filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=3
@@ -24,7 +24,7 @@ SecurityPolicy-Monitor-Ssl-00001
SecurityPolicy-Monitor-Ssl-00002
[Tags] cn cat
Comment 创建cat
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*vip.com,*berkeleygroup.co.uk
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*zealer.com,*hotel.de
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Ssl-00002 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"SSL"} filterList=${objectId}|TSG_FIELD_SSL_CN isValid=${1} appIdObjects=3
@@ -36,7 +36,7 @@ SecurityPolicy-Monitor-Ssl-00002
SecurityPolicy-Monitor-Ssl-00003
[Tags] san cat
Comment 创建cat
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*pulitzer.org,*nastol.com.ua
${objectDict} Create Dictionary objectType=fqdn_category isValid=${1} addItemList=*nochi.com,*yapta.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Ssl-00003 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"SSL"} filterList=${objectId}|TSG_FIELD_SSL_SAN isValid=${1} appIdObjects=3
@@ -48,7 +48,7 @@ SecurityPolicy-Monitor-Ssl-00003
SecurityPolicy-Monitor-Ssl-00004
[Tags] 最大组合
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*mail.ru
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*iqiyi.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Monitor-Ssl-00004 policyType=tsg_security policyDesc=autotest action=monitor userRegion={"protocol":"SSL"} filterList=${objectId}|TSG_FIELD_SSL_SAN,${objectId}|TSG_FIELD_SSL_SNI,${objectId}|TSG_FIELD_SSL_CN isValid=${1} appIdObjects=3

View File

@@ -21,10 +21,10 @@ SecurityPolicy-Deny-Dns-00001
${endtime} Get Time
insert_time_to_file1 deny_dns_starttime ${starttime} deny_dns_endtime ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d ok.ru
... ELSE set variable nslookup ok.ru
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d rutube.ru
... ELSE set variable nslookup -d rutube.ru
${stringlist} run keyword if '${systemType}'=='Windows' Create List 超时
... ELSE Create List canonical name = ok.ru
... ELSE Create List canonical name = rutube.ru
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -85,12 +85,12 @@ SecurityPolicy-Deny-Dns-00003
SecurityPolicy-Deny-Dns-00004
[Tags] 最大重定向
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.youtube.com
... ELSE set variable nslookup -debug -query=A www.youtube.com
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.twitch.tv
... ELSE set variable nslookup -debug -query=A www.twitch.tv
${stringlist} run keyword if '${systemType}'=='Windows' Create List 192.168.40.110 www.facebook.com ttl = 400 www.ok.ru fc00::2:22
... ELSE Create List 192.168.40.110 www.ok.ru ttl = 400
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.youtube.com
... ELSE set variable nslookup -debug -query=AAAA www.youtube.com
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.twitch.tv
... ELSE set variable nslookup -debug -query=AAAA www.twitch.tv
${stringlist} run keyword if '${systemType}'=='Windows' Create List fc00::2:22 www.facebook.com ttl = 400 www.ok.ru 192.168.40.110
... ELSE Create List ttl = 400 www.facebook.com fc00::2:22
${starttime} Get Time

View File

@@ -12,8 +12,8 @@ SecurityPolicy-Allow-Ssl-00001
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Allow_SSL_00001.bat
... ELSE set variable curl https://ok.ru/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Popular on OK.RU
... ELSE Create List Popular on OK.RU
${stringlist} run keyword if '${systemType}'=='Windows' Create List Развлекате
... ELSE Create List Развлекате
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -26,8 +26,8 @@ SecurityPolicy-Allow-Ssl-00002
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Allow_SSL_00002.bat
... ELSE set variable curl https://www.youtube.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 推荐视频
... ELSE Create List 推荐视频
${stringlist} run keyword if '${systemType}'=='Windows' Create List youtube
... ELSE Create List youtube
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}

View File

@@ -13,7 +13,7 @@ SecurityPolicy-Deny-Ftp-00001
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${FTP} FTP_login ftp://192.168.100.5/123456.txt -u"ftp_user:qazXSW@edc" завезенными
${FTP} FTP_login ftp://192.168.100.5/123456.txt -u"ftp_user:qazXSW@edc" 123456789
should contain ${FTP} ftp_fail
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time

View File

@@ -156,9 +156,9 @@ SecurityPolicy-Deny-Http-00009
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00009.bat
... ELSE set variable curl http://www.bankcomm.com/BankCommSite/default.shtml
${stringlist} run keyword if '${systemType}'=='Windows' Create List 123456
... ELSE Create List 123456
... ELSE set variable curl http://www.skycn.com/soft/bangongruanjian.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -170,9 +170,9 @@ SecurityPolicy-Deny-Http-00010
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00010.bat
... ELSE set variable curl http://www.thg.ru/technews/hot_news.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE set variable curl http://www.avaxsearch.com/tangkas/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -184,9 +184,9 @@ SecurityPolicy-Deny-Http-00011
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00011.bat
... ELSE set variable curl http://www.hitlistapp.com/about/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE set variable curl http://www.finestquotes.com/quotesbyauthors.php
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -213,8 +213,8 @@ SecurityPolicy-Deny-Http-00013
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00013.bat
... ELSE set variable curl http://www.ziroom.com/life/index
${stringlist} run keyword if '${systemType}'=='Windows' Create List Главная страница
... ELSE Create List Главная страница
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -224,8 +224,8 @@ SecurityPolicy-Deny-Http-00013
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00013_1.bat
... ELSE set variable curl http://www.xiaozhu.com/#ongo
${stringlist} run keyword if '${systemType}'=='Windows' Create List Главная страница
... ELSE Create List Главная страница
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -235,8 +235,8 @@ SecurityPolicy-Deny-Http-00013
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00013_2.bat
... ELSE set variable curl http://www.sinovision.net/portal.php?mod=center
${stringlist} run keyword if '${systemType}'=='Windows' Create List Главная страница
... ELSE Create List Главная страница
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -246,8 +246,8 @@ SecurityPolicy-Deny-Http-00013
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00013_3.bat
... ELSE set variable curl http://kiss.ru/a-search
${stringlist} run keyword if '${systemType}'=='Windows' Create List Главная страница
... ELSE Create List Главная страница
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}

View File

@@ -12,7 +12,7 @@ SecurityPolicy-Deny-Ssl-00001
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00001.bat
... ELSE set variable curl https://www.freestockimages.ru/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
${stringlist} run keyword if '${systemType}'=='Windows' Create List failed to receive handshake
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
@@ -23,7 +23,7 @@ SecurityPolicy-Deny-Ssl-00001
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00001_1.bat
... ELSE set variable curl \ \ \ https://www.cxwl.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
${stringlist} run keyword if '${systemType}'=='Windows' Create List failed to receive handshake
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
@@ -37,7 +37,7 @@ SecurityPolicy-Deny-Ssl-00002
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00002.bat
... ELSE set variable curl https://www.berkeleygroup.co.uk/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
${stringlist} run keyword if '${systemType}'=='Windows' Create List failed to receive handshake
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
@@ -48,7 +48,7 @@ SecurityPolicy-Deny-Ssl-00002
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00002_2.bat
... ELSE set variable curl https://www.vip.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
${stringlist} run keyword if '${systemType}'=='Windows' Create List failed to receive handshake
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
@@ -62,7 +62,7 @@ SecurityPolicy-Deny-Ssl-00003
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00003.bat
... ELSE set variable curl https://www.nastol.com.ua/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
${stringlist} run keyword if '${systemType}'=='Windows' Create List failed to receive handshake
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
@@ -73,7 +73,7 @@ SecurityPolicy-Deny-Ssl-00003
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00003_3.bat
... ELSE set variable curl https://www.pulitzer.org/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
${stringlist} run keyword if '${systemType}'=='Windows' Create List failed to receive handshake
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
@@ -87,7 +87,7 @@ SecurityPolicy-Deny-Ssl-00004
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00004.bat
... ELSE set variable curl https://mail.ru/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
${stringlist} run keyword if '${systemType}'=='Windows' Create List failed to receive handshake
... ELSE Create List Connection reset by peer
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s

View File

@@ -10,10 +10,10 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
SecurityPolicy-Monitor-Dns-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.facebook.com
... ELSE set variable nslookup www.facebook.com
${stringlist} run keyword if '${systemType}'=='Windows' Create List 超时
... ELSE Create List canonical name = www.facebook.com
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d travelgam.com
... ELSE set variable nslookup travelgam.com
${stringlist} run keyword if '${systemType}'=='Windows' Create List travelgam.com
... ELSE Create List travelgam.com
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -21,10 +21,10 @@ SecurityPolicy-Monitor-Dns-00001
${endtime} Get Time
insert_time_to_file1 monitor_dns_starttime ${starttime} monitor_dns_endtime ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d ok.ru
... ELSE set variable nslookup ok.ru
${stringlist} run keyword if '${systemType}'=='Windows' Create List 超时
... ELSE Create List canonical name = ok.ru
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d flyaurora.ru
... ELSE set variable nslookup -d flyaurora.ru
${stringlist} run keyword if '${systemType}'=='Windows' Create List flyaurora.ru
... ELSE Create List flyaurora.ru
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -35,10 +35,10 @@ SecurityPolicy-Monitor-Dns-00001
SecurityPolicy-Monitor-Dns-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.yhd.com
... ELSE set variable nslookup -debug -query=A \ www.yhd.com
${stringlist} run keyword if '${systemType}'=='Windows' Create List 192.168.41.186 www.jd.com ttl = 500
... ELSE Create List 192.168.41.186 www.jd.com ttl = 500
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d ostrovok.ru
... ELSE set variable nslookup -d ostrovok.ru
${stringlist} run keyword if '${systemType}'=='Windows' Create List ostrovok.ru
... ELSE Create List ostrovok.ru
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -46,56 +46,13 @@ SecurityPolicy-Monitor-Dns-00002
${endtime} Get Time
insert_time_to_file1 monitor_dns_starttime2 ${starttime} monitor_dns_endtime2 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.vk.com
... ELSE set variable nslookup -debug -query=A \ www.vk.com
${stringlist} run keyword if '${systemType}'=='Windows' Create List 192.168.41.186 www.jd.com ttl = 500
... ELSE Create List 192.168.41.186 www.jd.com ttl = 500
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.vip.com
... ELSE set variable nslookup -d www.vip.com
${stringlist} run keyword if '${systemType}'=='Windows' Create List canonical name = www.vip.com
... ELSE Create List canonical name = www.vip.com
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_dns_starttime3 ${starttime} monitor_dns_endtime3 ${endtime}
SecurityPolicy-Monitor-Dns-00003
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d ya.ru
... ELSE set variable nslookup -debug -query=AAAA ya.ru
${stringlist} run keyword if '${systemType}'=='Windows' Create List fc00::2:11 www.taobao.com ttl = 400
... ELSE Create List fc00::2:11 www.taobao.com ttl = 400
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_dns_starttime4 ${starttime} monitor_dns_endtime4 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d ya.ru
... ELSE set variable nslookup -debug -query=AAAA ya.ru
${stringlist} run keyword if '${systemType}'=='Windows' Create List fc00::2:11 www.taobao.com ttl = 400
... ELSE Create List fc00::2:11 www.taobao.com ttl = 400
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_dns_starttime5 ${starttime} monitor_dns_endtime5 ${endtime}
SecurityPolicy-Monitor-Dns-00004
[Tags] 最大重定向
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.youtube.com
... ELSE set variable nslookup -debug -query=A www.youtube.com
${stringlist} run keyword if '${systemType}'=='Windows' Create List 192.168.40.110 www.facebook.com ttl = 400 www.ok.ru fc00::2:22
... ELSE Create List 192.168.40.110 www.ok.ru ttl = 400
${commandstr} run keyword if '${systemType}'=='Windows' set variable nslookup -d www.youtube.com
... ELSE set variable nslookup -debug -query=AAAA www.youtube.com
${stringlist} run keyword if '${systemType}'=='Windows' Create List fc00::2:22 www.facebook.com ttl = 400 www.ok.ru 192.168.40.110
... ELSE Create List ttl = 400 www.facebook.com fc00::2:22
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_dns_starttime6 ${starttime} monitor_dns_endtime6 ${endtime}

View File

@@ -13,8 +13,8 @@ SecurityPolicy-Monitor-Ftp-00001
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${FTP} FTP_login ftp://192.168.100.5/123456.txt -u"ftp_user:qazXSW@edc" завезенными
should contain ${FTP} ftp_fail
${FTP} FTP_login ftp://192.168.100.5/123zxcvbnm.txt -u"ftp_user:qazXSW@edc" crfvtgbyhnuj
should contain ${FTP} ftp_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_ftp_starttime ${starttime} monitor_ftp_endtime ${endtime}
@@ -24,8 +24,8 @@ SecurityPolicy-Monitor-Ftp-00002
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${FTP} FTP_login ftp://192.168.100.5/test.txt -u"ftp_user:qazXSW@edc" 中文test
should contain ${FTP} ftp_fail
${FTP} FTP_login ftp://192.168.100.5/stamp.txt -u"ftp_user:qazXSW@edc" Shandong Province
should contain ${FTP} ftp_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_ftp_starttime1 ${starttime} monitor_ftp_endtime1 ${endtime}
@@ -35,8 +35,8 @@ SecurityPolicy-Monitor-Ftp-00003
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${FTP} FTP_login ftp://192.168.100.5/wlcsy.txt -u"ftp_user:qazXSW@edc" 中文文件内容
should contain ${FTP} ftp_fail
${FTP} FTP_login ftp://192.168.100.5/qwert.txt -u"ftp_user:qazXSW@edc" 花好听的名字
should contain ${FTP} ftp_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_ftp_starttime2 ${starttime} monitor_ftp_endtime2 ${endtime}
@@ -46,8 +46,8 @@ SecurityPolicy-Monitor-Ftp-00004
Comment 功能端验证
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${FTP} FTP_login ftp://192.168.100.5/aewn.txt -u"ftp_user:qazXSW@edc" завезенными
should contain ${FTP} ftp_fail
${FTP} FTP_login ftp://192.168.100.5/asdfg.txt -u"ftp_user:qazXSW@edc" апартаментов
should contain ${FTP} ftp_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 monitor_ftp_starttime3 ${starttime} monitor_ftp_endtime3 ${endtime}

View File

@@ -10,10 +10,10 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
SecurityPolicy-Monitor-Http-00001
[Tags] fqdn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00001.bat
... ELSE set variable curl http://webalta.ru/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00001.bat
... ELSE set variable curl http://nerdreactor.com/latest-posts/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Latest Posts
... ELSE Create List Latest Posts
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -24,10 +24,10 @@ SecurityPolicy-Monitor-Http-00001
SecurityPolicy-Monitor-Http-00002
[Tags] cat
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00002.bat
... ELSE set variable curl http://www.nymbler.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00002.bat
... ELSE set variable curl http://jzjc.jd.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 预约获取装修报价
... ELSE Create List 预约获取装修报价
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -38,10 +38,10 @@ SecurityPolicy-Monitor-Http-00002
SecurityPolicy-Monitor-Http-00003
[Tags] url
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00003.bat
... ELSE set variable curl http://www.icbc.com.cn/icbc/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00003.bat
... ELSE set variable curl http://music.taihe.com/songlist
${stringlist} run keyword if '${systemType}'=='Windows' Create List 战略合作
... ELSE Create List 战略合作
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -49,10 +49,10 @@ SecurityPolicy-Monitor-Http-00003
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime2 ${starttime} monitor_http_endtime2 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00003_1.bat
... ELSE set variable curl http://www.ccb.com/cn/home/indexv3.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00003_1.bat
... ELSE set variable curl http://www.nuk-baby.ru/ru_ru/kollekcii/disney-mickey-mouse.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List Подробнее
... ELSE Create List Подробнее
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -60,10 +60,10 @@ SecurityPolicy-Monitor-Http-00003
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime3 ${starttime} monitor_http_endtime3 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00003_2.bat
... ELSE set variable curl http://www.gotohoroscope.com/daily-horoscope.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00003_2.bat
... ELSE set variable curl http://www.quotegarden.com/site-info.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List About
... ELSE Create List About
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -71,10 +71,10 @@ SecurityPolicy-Monitor-Http-00003
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime4 ${starttime} monitor_http_endtime4 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00003_3.bat
... ELSE set variable curl http://government.ru/news/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00003_3.bat
... ELSE set variable curl http://crosswordheaven.com/search
${stringlist} run keyword if '${systemType}'=='Windows' Create List Search
... ELSE Create List Search
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -85,10 +85,10 @@ SecurityPolicy-Monitor-Http-00003
SecurityPolicy-Monitor-Http-00004
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_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 'http://www.baidu.com/' \http://www.tsutmb.ru/sveden
${stringlist} run keyword if '${systemType}'=='Windows' Create List yyyyy
... ELSE Create List yyyyy
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_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 'http://www.baidu.com/' \http://www.inspirational-quotes.info/motivational-quotes.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List Motivational
... ELSE Create List Motivational
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -99,10 +99,10 @@ SecurityPolicy-Monitor-Http-00004
SecurityPolicy-Monitor-Http-00005
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00005.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" --referer 'http://www.baidu.com/' \http://www.abchina.com/cn/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00005.bat
... ELSE set variable curl -kv --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" --referer 'http://www.baidu.com/' \http://www.chinahr.com/home/bj/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 名企校招
... ELSE Create List 名企校招
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -113,10 +113,10 @@ SecurityPolicy-Monitor-Http-00005
SecurityPolicy-Monitor-Http-00006
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00006.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 'http://www.baidu.com/' \http://egypt.travel/ru
${stringlist} run keyword if '${systemType}'=='Windows' Create List 网站被阻断
... ELSE Create List 网站被阻断
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00006.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 'http://www.baidu.com/' \http://car.bitauto.com/weixingche/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 全部车型
... ELSE Create List 全部车型
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -127,10 +127,10 @@ SecurityPolicy-Monitor-Http-00006
SecurityPolicy-Monitor-Http-00007
[Tags] 请求头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_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 'http://www.baidu.com/' \http://www.destination360.com/travel/destinations
${stringlist} run keyword if '${systemType}'=='Windows' Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用
... ELSE Create List 对不起,您请求的页面不存在、或已被删除、或暂时不可用
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_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 'http://www.baidu.com/' \http://www.herocraft.com/games/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Games
... ELSE Create List Games
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -141,10 +141,10 @@ SecurityPolicy-Monitor-Http-00007
SecurityPolicy-Monitor-Http-00008
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00008.bat
... ELSE set variable curl http://www.cmbchina.com/CmbQuesInfo/index.aspx
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00008.bat
... ELSE set variable curl http://www.tccb.com.cn/grjr/index.shtml
${stringlist} run keyword if '${systemType}'=='Windows' Create List 产品信息公告
... ELSE Create List 产品信息公告
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -155,10 +155,10 @@ SecurityPolicy-Monitor-Http-00008
SecurityPolicy-Monitor-Http-00009
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00009.bat
... ELSE set variable curl http://www.bankcomm.com/BankCommSite/default.shtml
${stringlist} run keyword if '${systemType}'=='Windows' Create List 123456
... ELSE Create List 123456
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00009.bat
... ELSE set variable curl http://www.athinline.org/facts
${stringlist} run keyword if '${systemType}'=='Windows' Create List Things
... ELSE Create List Things
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -169,10 +169,10 @@ SecurityPolicy-Monitor-Http-00009
SecurityPolicy-Monitor-Http-00010
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00010.bat
... ELSE set variable curl http://www.thg.ru/technews/hot_news.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00010.bat
... ELSE set variable curl http://1001guru.ru/hidden-investigation-3-crime-files/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Hidden
... ELSE Create List Hidden
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -183,10 +183,10 @@ SecurityPolicy-Monitor-Http-00010
SecurityPolicy-Monitor-Http-00011
[Tags] 应答头
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00011.bat
... ELSE set variable curl http://www.hitlistapp.com/about/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
... ELSE Create List Sorry, the page you requested does not exist, has been deleted, or is temporarily unavailable
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00011.bat
... ELSE set variable curl http://emi-ors.com/about/
${stringlist} run keyword if '${systemType}'=='Windows' Create List gastroenterologist
... ELSE Create List gastroenterologist
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -197,10 +197,10 @@ SecurityPolicy-Monitor-Http-00011
SecurityPolicy-Monitor-Http-00012
[Tags] cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00012.bat
... ELSE set variable 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://www.universalmusic.ru/#about
${stringlist} run keyword if '${systemType}'=='Windows' Create List 马上到周末
... ELSE Create List 马上到周末
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00012.bat
... ELSE set variable curl -kv --cookie "*wingsofprey=jkmg7dm2dqjhf4514u0ehjde45; __utma=1.780132397.1593856991.1593856991.1593856991.1; __utmc=1; __utmz=1.1593856991.1.1.utmcsr=lvse.cn" --referer 'http://www.baidu.com/' \ http://www.titter.com/en/games/jack-stone.html
${stringlist} run keyword if '${systemType}'=='Windows' Create List Scooby Doo Adventure 3
... ELSE Create List Scooby Doo Adventure 3
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -211,10 +211,10 @@ SecurityPolicy-Monitor-Http-00012
SecurityPolicy-Monitor-Http-00013
[Tags] set-cookie
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00013.bat
... ELSE set variable curl http://www.ziroom.com/life/index
${stringlist} run keyword if '${systemType}'=='Windows' Create List Главная страница
... ELSE Create List Главная страница
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00013.bat
... ELSE set variable curl http://www.russchinatrade.ru/ru/news/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Новости
... ELSE Create List Новости
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -222,10 +222,10 @@ SecurityPolicy-Monitor-Http-00013
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime15 ${starttime} monitor_http_endtime15 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00013_1.bat
... ELSE set variable curl http://www.xiaozhu.com/#ongo
${stringlist} run keyword if '${systemType}'=='Windows' Create List Главная страница
... ELSE Create List Главная страница
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00013_1.bat
... ELSE set variable curl http://www.dianping.com/beijing/ch10/g112
${stringlist} run keyword if '${systemType}'=='Windows' Create List 小吃快餐
... ELSE Create List 小吃快餐
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -233,10 +233,10 @@ SecurityPolicy-Monitor-Http-00013
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime16 ${starttime} monitor_http_endtime16 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00013_2.bat
... ELSE set variable curl http://www.sinovision.net/portal.php?mod=center
${stringlist} run keyword if '${systemType}'=='Windows' Create List Главная страница
... ELSE Create List Главная страница
${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 法律声明
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -244,10 +244,10 @@ SecurityPolicy-Monitor-Http-00013
${endtime} Get Time
insert_time_to_file1 monitor_http_starttime17 ${starttime} monitor_http_endtime17 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00013_3.bat
... ELSE set variable curl http://kiss.ru/a-search
${stringlist} run keyword if '${systemType}'=='Windows' Create List Главная страница
... ELSE Create List Главная страница
${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
... ELSE Create List virtualflowers
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -258,10 +258,10 @@ SecurityPolicy-Monitor-Http-00013
SecurityPolicy-Monitor-Http-00014
[Tags] 请求体
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00014.bat
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00014.bat
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=test&setCookie=12345678&contentType=content-type&resBody=Response Body" http://open.node.com/action
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${stringlist} run keyword if '${systemType}'=='Windows' Create List zxcvb
... ELSE Create List zxcvb
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -272,10 +272,10 @@ SecurityPolicy-Monitor-Http-00014
SecurityPolicy-Monitor-Http-00015
[Tags] 应答体
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00015.bat
... ELSE set variable curl http://www.huatonggs.com/about.html#gsjj
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00015.bat
... ELSE set variable curl https://en.nival.com/games/pw-defenders2
${stringlist} run keyword if '${systemType}'=='Windows' Create List Meet the latest game in the legendary Prime Word: Defenders series!
... ELSE Create List Meet the latest game in the legendary Prime Word: Defenders series!
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -286,10 +286,10 @@ SecurityPolicy-Monitor-Http-00015
SecurityPolicy-Monitor-Http-00016
[Tags] 最大组合1
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00016.bat
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00016.bat
... ELSE set variable curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=test&setCookie=12345678&contentType=content-type&resBody=Response Body" -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/action
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${stringlist} run keyword if '${systemType}'=='Windows' Create List mkiolp
... ELSE Create List mkiolp
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -300,10 +300,10 @@ SecurityPolicy-Monitor-Http-00016
SecurityPolicy-Monitor-Http-00017
[Tags] 最大组合2
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_HTTP_00017.bat
... ELSE set variable 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
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_HTTP_00017.bat
... ELSE set variable curl -kv --cookie "*wingsofprey=jkmg7dm2dqjhf4514u0ehjde45; __utma=1.780132397.1593856991.1593856991.1593856991.1; __utmc=1; __utmz=1.1593856991.1.1.utmcsr=lvse.cn" --referer 'http://www.baidu.com/' \ http://www.airwargame.com/eng/start/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Last news
... ELSE Create List Last news
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}

View File

@@ -23,10 +23,10 @@ SecurityPolicy-Momitor-Mail-00001
${接收者} Set Variable ["zmmtest@mail.tsgmail.com"]
${抄送者} Set Variable ["zmmtest@mail.tsgmail.com"]
${密送者} Set Variable ["zmmtest@mail.tsgmail.com"]
${邮件正文} Set Variable Простопорно
${邮件正文} Set Variable zzzzzzz
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 momitor_mail_starttime ${starttime} momitor_mail_endtime ${endtime}
@@ -42,14 +42,14 @@ SecurityPolicy-Momitor-Mail-00002
${邮箱密码} Set Variable jwctest
${邮件主题} Set Variable Простопорно
${发送者} Set Variable jwctest@mail.tsgmail.com
${附件} Set Variable ["${mailpath}/姬巍川测试文件.txt"]
${附件} Set Variable ["${mailpath}/朱明明测试文件.txt"]
${接收者} Set Variable ["zmmtest@mail.tsgmail.com"]
${抄送者} Set Variable ["zmmtest@mail.tsgmail.com"]
${密送者} Set Variable ["zmmtest@mail.tsgmail.com"]
${邮件正文} Set Variable 朱明明content
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 momitor_mail_starttime1 ${starttime} momitor_mail_endtime1 ${endtime}
@@ -63,7 +63,7 @@ SecurityPolicy-Momitor-Mail-00003
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable jwctest@mail.tsgmail.com
${邮箱密码} Set Variable jwctest
${邮件主题} Set Variable ПОРНОВИДЕО
${邮件主题} Set Variable Согласятся
${发送者} Set Variable jwctest@mail.tsgmail.com
${附件} Set Variable ["${mailpath}/姬巍川测试文件.txt"]
${接收者} Set Variable ["zmmtest@mail.tsgmail.com"]
@@ -72,7 +72,7 @@ SecurityPolicy-Momitor-Mail-00003
${邮件正文} Set Variable 朱明明content
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 momitor_mail_starttime2 ${starttime} momitor_mail_endtime2 ${endtime}
@@ -86,7 +86,7 @@ SecurityPolicy-Momitor-Mail-00004
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable jwctest@mail.tsgmail.com
${邮箱密码} Set Variable jwctest
${邮件主题} Set Variable 天周末
${邮件主题} Set Variable 天周末
${发送者} Set Variable jwctest@mail.tsgmail.com
${附件} Set Variable ["${mailpath}/姬巍川测试文件.txt"]
${接收者} Set Variable ["zmmtest@mail.tsgmail.com"]
@@ -95,7 +95,7 @@ SecurityPolicy-Momitor-Mail-00004
${邮件正文} Set Variable 朱明明content
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 momitor_mail_starttime3 ${starttime} momitor_mail_endtime3 ${endtime}
@@ -109,7 +109,7 @@ SecurityPolicy-Momitor-Mail-00005
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable jwctest@mail.tsgmail.com
${邮箱密码} Set Variable jwctest
${邮件主题} Set Variable 1234567890
${邮件主题} Set Variable 9876543210zxcv
${发送者} Set Variable jwctest@mail.tsgmail.com
${附件} Set Variable ["${mailpath}/姬巍川测试文件.txt"]
${接收者} Set Variable ["zmmtest@mail.tsgmail.com"]
@@ -118,7 +118,7 @@ SecurityPolicy-Momitor-Mail-00005
${邮件正文} Set Variable 朱明明content
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 momitor_mail_starttime4 ${starttime} momitor_mail_endtime4 ${endtime}
@@ -132,7 +132,7 @@ SecurityPolicy-Momitor-Mail-00006
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable jwctest@mail.tsgmail.com
${邮箱密码} Set Variable jwctest
${邮件主题} Set Variable afternoon
${邮件主题} Set Variable Tomorrow
${发送者} Set Variable jwctest@mail.tsgmail.com
${附件} Set Variable ["${mailpath}/姬巍川测试文件.txt"]
${接收者} Set Variable ["zmmtest@mail.tsgmail.com"]
@@ -141,7 +141,7 @@ SecurityPolicy-Momitor-Mail-00006
${邮件正文} Set Variable 朱明明content
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 momitor_mail_starttime5 ${starttime} momitor_mail_endtime5 ${endtime}
@@ -155,7 +155,7 @@ SecurityPolicy-Momitor-Mail-00007
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable jwctest@mail.tsgmail.com
${邮箱密码} Set Variable jwctest
${邮件主题} Set Variable Смотретьфильмыонлай
${邮件主题} Set Variable планируете
${发送者} Set Variable jwctest@mail.tsgmail.com
${附件} Set Variable ["${mailpath}/姬巍川测试文件.txt"]
${接收者} Set Variable ["zmmtest@mail.tsgmail.com"]
@@ -164,7 +164,7 @@ SecurityPolicy-Momitor-Mail-00007
${邮件正文} Set Variable 朱明明content
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 momitor_mail_starttime6 ${starttime} momitor_mail_endtime6 ${endtime}
@@ -178,7 +178,7 @@ SecurityPolicy-Momitor-Mail-00008
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable jwctest@mail.tsgmail.com
${邮箱密码} Set Variable jwctest
${邮件主题} Set Variable zxcvbnm
${邮件主题} Set Variable asdf741852
${发送者} Set Variable jwctest@mail.tsgmail.com
${附件} Set Variable ["${mailpath}/姬巍川测试文件.txt"]
${接收者} Set Variable ["zmmtest@mail.tsgmail.com"]
@@ -187,7 +187,7 @@ SecurityPolicy-Momitor-Mail-00008
${邮件正文} Set Variable 朱明明content
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 momitor_mail_starttime7 ${starttime} momitor_mail_endtime7 ${endtime}
@@ -201,7 +201,7 @@ SecurityPolicy-Momitor-Mail-00009
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable jwctest@mail.tsgmail.com
${邮箱密码} Set Variable jwctest
${邮件主题} Set Variable 又是新的一天
${邮件主题} Set Variable 马上又过一天
${发送者} Set Variable jwctest@mail.tsgmail.com
${附件} Set Variable ["${mailpath}/姬巍川测试文件.txt"]
${接收者} Set Variable ["zmmtest@mail.tsgmail.com"]
@@ -210,7 +210,7 @@ SecurityPolicy-Momitor-Mail-00009
${邮件正文} Set Variable 朱明明content
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 momitor_mail_starttime8 ${starttime} momitor_mail_endtime8 ${endtime}
@@ -224,7 +224,7 @@ SecurityPolicy-Momitor-Mail-00010
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable jwctest@mail.tsgmail.com
${邮箱密码} Set Variable jwctest
${邮件主题} Set Variable tomorrow
${邮件主题} Set Variable weekend
${发送者} Set Variable jwctest@mail.tsgmail.com
${附件} Set Variable ["${mailpath}/姬巍川测试文件.txt"]
${接收者} Set Variable ["zmmtest@mail.tsgmail.com"]
@@ -233,7 +233,7 @@ SecurityPolicy-Momitor-Mail-00010
${邮件正文} Set Variable 朱明明content
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 momitor_mail_starttime9 ${starttime} momitor_mail_endtime9 ${endtime}
@@ -247,7 +247,7 @@ SecurityPolicy-Momitor-Mail-00011
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable jwctest@mail.tsgmail.com
${邮箱密码} Set Variable jwctest
${邮件主题} Set Variable 邮件发送失败
${邮件主题} Set Variable 邮件发送成功
${发送者} Set Variable jwctest@mail.tsgmail.com
${附件} Set Variable ["${mailpath}/姬巍川测试文件.txt"]
${接收者} Set Variable ["zmmtest@mail.tsgmail.com"]
@@ -256,7 +256,7 @@ SecurityPolicy-Momitor-Mail-00011
${邮件正文} Set Variable 朱明明content
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 momitor_mail_starttime10 ${starttime} momitor_mail_endtime10 ${endtime}
@@ -270,7 +270,7 @@ SecurityPolicy-Momitor-Mail-00012
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable jwctest@mail.tsgmail.com
${邮箱密码} Set Variable jwctest
${邮件主题} Set Variable Онлайнфильмывхоро
${邮件主题} Set Variable ограничительным
${发送者} Set Variable jwctest@mail.tsgmail.com
${附件} Set Variable ["${mailpath}/姬巍川测试文件.txt"]
${接收者} Set Variable ["zmmtest@mail.tsgmail.com"]
@@ -279,7 +279,7 @@ SecurityPolicy-Momitor-Mail-00012
${邮件正文} Set Variable 朱明明content
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 momitor_mail_starttime11 ${starttime} momitor_mail_endtime11 ${endtime}
@@ -293,7 +293,7 @@ SecurityPolicy-Momitor-Mail-00013
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable jwctest@mail.tsgmail.com
${邮箱密码} Set Variable jwctest
${邮件主题} Set Variable asdfghjkl
${邮件主题} Set Variable 963258zxcvb
${发送者} Set Variable jwctest@mail.tsgmail.com
${附件} Set Variable ["${mailpath}/姬巍川测试文件.txt"]
${接收者} Set Variable ["zmmtest@mail.tsgmail.com"]
@@ -302,7 +302,7 @@ SecurityPolicy-Momitor-Mail-00013
${邮件正文} Set Variable 朱明明content
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 momitor_mail_starttime12 ${starttime} momitor_mail_endtime12 ${endtime}
@@ -316,7 +316,7 @@ SecurityPolicy-Momitor-Mail-00014
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable jwctest@mail.tsgmail.com
${邮箱密码} Set Variable jwctest
${邮件主题} Set Variable 马上就要下班了
${邮件主题} Set Variable 一小时一天一个月
${发送者} Set Variable jwctest@mail.tsgmail.com
${附件} Set Variable ["${mailpath}/姬巍川测试文件.txt"]
${接收者} Set Variable ["zmmtest@mail.tsgmail.com"]
@@ -325,7 +325,7 @@ SecurityPolicy-Momitor-Mail-00014
${邮件正文} Set Variable 朱明明content
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 momitor_mail_starttime13 ${starttime} momitor_mail_endtime13 ${endtime}
@@ -339,7 +339,7 @@ SecurityPolicy-Momitor-Mail-00015
${Smtp服务器端口} Set Variable 25
${邮箱账号} Set Variable jwctest@mail.tsgmail.com
${邮箱密码} Set Variable jwctest
${邮件主题} Set Variable 人生路远及时行乐
${邮件主题} Set Variable 要留清白在人间
${发送者} Set Variable jwctest@mail.tsgmail.com
${附件} Set Variable ["${mailpath}/姬巍川测试文件.txt"]
${接收者} Set Variable ["zmmtest@mail.tsgmail.com"]
@@ -348,7 +348,7 @@ SecurityPolicy-Momitor-Mail-00015
${邮件正文} Set Variable good
${发送邮件返回结果} EmailSendFull ${Smtp服务器} ${Smtp服务器端口} ${邮箱账号} ${邮箱密码} ${邮件主题} ${发送者} ${接收者} ${抄送者} ${密送者} ${邮件正文} ${附件}
Log ${发送邮件返回结果}
should contain ${发送邮件返回结果} mail_fail
should contain ${发送邮件返回结果} mail_success
Sleep ${policyLogVerificationSleepSeconds}s
${endtime} Get Time
insert_time_to_file1 deny_mail_starttime14 ${starttime} deny_mail_endtime14 ${endtime}

View File

@@ -10,10 +10,10 @@ Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
SecurityPolicy-Monitor-Ssl-00001
[Tags] sni
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00001.bat
... ELSE set variable curl https://www.freestockimages.ru/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_SSL_00001.bat
... ELSE set variable curl https://www.wego.com.ru/
${stringlist} run keyword if '${systemType}'=='Windows' Create List www.wego.com
... ELSE Create List www.wego.com
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -21,10 +21,10 @@ SecurityPolicy-Monitor-Ssl-00001
${endtime} Get Time
insert_time_to_file1 monitor_ssl_starttime ${starttime} monitor_ssl_endtime ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00001_1.bat
... ELSE set variable curl \ \ \ https://www.cxwl.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_SSL_00001_1.bat
... ELSE set variable curl \ https://freecountry.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Celebrate Summer and our Free Country
... ELSE Create List Celebrate Summer and our Free Country
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -35,10 +35,10 @@ SecurityPolicy-Monitor-Ssl-00001
SecurityPolicy-Monitor-Ssl-00002
[Tags] cn
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00002.bat
... ELSE set variable curl https://www.berkeleygroup.co.uk/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_SSL_00002.bat
... ELSE set variable curl https://www.zealer.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 十万人俱乐部
... ELSE Create List 十万人俱乐部
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -46,10 +46,10 @@ SecurityPolicy-Monitor-Ssl-00002
${endtime} Get Time
insert_time_to_file1 monitor_ssl_starttime2 ${starttime} monitor_ssl_endtime2 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00002_2.bat
... ELSE set variable curl https://www.vip.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_SSL_00002_2.bat
... ELSE set variable curl https://www.hotel.info/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Book hotels
... ELSE Create List Book hotels
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -60,10 +60,10 @@ SecurityPolicy-Monitor-Ssl-00002
SecurityPolicy-Monitor-Ssl-00003
[Tags] san
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00003.bat
... ELSE set variable curl https://www.nastol.com.ua/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_SSL_00003.bat
... ELSE set variable curl https://nochi.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List гостиницы
... ELSE Create List гостиницы
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -71,10 +71,10 @@ SecurityPolicy-Monitor-Ssl-00003
${endtime} Get Time
insert_time_to_file1 monitor_ssl_starttime4 ${starttime} monitor_ssl_endtime4 ${endtime}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00003_3.bat
... ELSE set variable curl https://www.pulitzer.org/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_SSL_00003_3.bat
... ELSE set variable curl https://yapta.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Yapta has helped businesses
... ELSE Create List Yapta has helped businesses
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}
@@ -85,10 +85,10 @@ SecurityPolicy-Monitor-Ssl-00003
SecurityPolicy-Monitor-Ssl-00004
[Tags] 最大组合
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Deny_SSL_00004.bat
... ELSE set variable curl https://mail.ru/
${stringlist} run keyword if '${systemType}'=='Windows' Create List Connection was reset
... ELSE Create List Connection reset by peer
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Monitor_SSL_00004.bat
... ELSE set variable curl https://www.iqiyi.com/
${stringlist} run keyword if '${systemType}'=='Windows' Create List 今日焦点
... ELSE Create List 今日焦点
${starttime} Get Time
Sleep ${policyVerificationSleepSeconds}s
${rescode} SystemCommands ${commandstr} ${stringlist}

View File

@@ -22,7 +22,7 @@ SecurityPolicy-Deny-Dns-00001
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_dns_policyId}]}
${s} Convert to String ${deny_dns_policyId}
GetLogList security_event_log ${deny_dns_starttime} ${deny_dns_endtime} ${testClentIP} ${s} dns_qname facebook.com
GetLogList security_event_log ${deny_dns_starttime1} ${deny_dns_endtime1} ${testClentIP} ${s} dns_qname ok.ru
GetLogList security_event_log ${deny_dns_starttime1} ${deny_dns_endtime1} ${testClentIP} ${s} dns_qname rutube.ru
SecurityPolicy-Deny-Dns-00002
[Tags] cn
@@ -50,4 +50,4 @@ SecurityPolicy-Deny-Dns-00004
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_dns_policyId3}]}
${s} Convert to String ${deny_dns_policyId3}
GetLogList security_event_log ${deny_dns_starttime6} ${deny_dns_endtime6} ${testClentIP} ${s} dns_qname youtube.com
GetLogList security_event_log ${deny_dns_starttime6} ${deny_dns_endtime6} ${testClentIP} ${s} dns_qname www.twitch.tv

View File

@@ -108,31 +108,27 @@ SecurityPolicy-Deny-Http-00009
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId8}]}
${s} Convert to String ${deny_http_policyId8}
GetLogList security_event_log ${deny_http_starttime11} ${deny_http_endtime11} ${testClentIP} ${s} http_host bankcomm.com
GetLogList security_event_log ${deny_http_starttime11} ${deny_http_endtime11} ${testClentIP} ${s} http_host www.skycn.com
SecurityPolicy-Deny-Http-00010
[Tags] 应答头
#删除文件
${profiledId} set Variable ${deny_http_profiledId2}
#删除对象
${objectids} set Variable ${deny_http_objectId15}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId16}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId9}]}
${s} Convert to String ${deny_http_policyId9}
GetLogList security_event_log ${deny_http_starttime12} ${deny_http_endtime12} ${testClentIP} ${s} http_host thg.ru
GetLogList security_event_log ${deny_http_starttime12} ${deny_http_endtime12} ${testClentIP} ${s} http_host www.avaxsearch.com
SecurityPolicy-Deny-Http-00011
[Tags] 应答头
#删除文件
${profiledId} set Variable ${deny_http_profiledId3}
#删除对象
${objectids} set Variable ${deny_http_objectId17}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId18}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId10}]}
${s} Convert to String ${deny_http_policyId10}
GetLogList security_event_log ${deny_http_starttime13} ${deny_http_endtime13} ${testClentIP} ${s} http_host thg.ru
GetLogList security_event_log ${deny_http_starttime13} ${deny_http_endtime13} ${testClentIP} ${s} http_host www.finestquotes.com
SecurityPolicy-Deny-Http-00012
[Tags] cookie

View File

@@ -21,8 +21,8 @@ SecurityPolicy-Monitor-Dns-00001
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_dns_policyId}]}
${s} Convert to String ${monitor_dns_policyId}
GetLogList security_event_log ${monitor_dns_starttime} ${monitor_dns_endtime} ${testClentIP} ${s} dns_qname facebook.com
GetLogList security_event_log ${monitor_dns_starttime1} ${monitor_dns_endtime1} ${testClentIP} ${s} dns_qname ok.ru
GetLogList security_event_log ${monitor_dns_starttime} ${monitor_dns_endtime} ${testClentIP} ${s} dns_qname travelgam.com
GetLogList security_event_log ${monitor_dns_starttime1} ${monitor_dns_endtime1} ${testClentIP} ${s} dns_qname flyaurora.ru
SecurityPolicy-Monitor-Dns-00002
[Tags] cn
@@ -31,23 +31,5 @@ SecurityPolicy-Monitor-Dns-00002
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_dns_policyId1}]}
${s} Convert to String ${monitor_dns_policyId1}
GetLogList security_event_log ${monitor_dns_starttime2} ${monitor_dns_endtime2} ${testClentIP} ${s} dns_qname yhd.com
GetLogList security_event_log ${monitor_dns_starttime3} ${monitor_dns_endtime3} ${testClentIP} ${s} dns_qname vk.com
SecurityPolicy-Monitor-Dns-00003
[Tags] san
#删除对象
${objectids} set Variable ${monitor_dns_objectId2}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_dns_policyId2}]}
${s} Convert to String ${monitor_dns_policyId2}
GetLogList security_event_log ${monitor_dns_starttime4} ${monitor_dns_endtime4} ${testClentIP} ${s} dns_qname ya.ru
SecurityPolicy-Monitor-Dns-00004
[Tags] 最大组合
#删除对象
${objectids} set Variable ${monitor_dns_objectId3}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_dns_policyId3}]}
${s} Convert to String ${monitor_dns_policyId3}
GetLogList security_event_log ${monitor_dns_starttime6} ${monitor_dns_endtime6} ${testClentIP} ${s} dns_qname youtube.com
GetLogList security_event_log ${monitor_dns_starttime2} ${monitor_dns_endtime2} ${testClentIP} ${s} dns_qname ostrovok.ru
GetLogList security_event_log ${monitor_dns_starttime3} ${monitor_dns_endtime3} ${testClentIP} ${s} dns_qname vip.com

View File

@@ -21,7 +21,7 @@ SecurityPolicy-Monitor-Http-00001
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId}]}
${s} Convert to String ${monitor_http_policyId}
GetLogList security_event_log ${monitor_http_starttime} ${monitor_http_endtime} ${testClentIP} ${s} http_host webalta.ru
GetLogList security_event_log ${monitor_http_starttime} ${monitor_http_endtime} ${testClentIP} ${s} http_host nerdreactor.com
SecurityPolicy-Monitor-Http-00002
[Tags] cat
@@ -30,7 +30,7 @@ SecurityPolicy-Monitor-Http-00002
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId1}]}
${s} Convert to String ${monitor_http_policyId1}
GetLogList security_event_log ${monitor_http_starttime1} ${monitor_http_endtime1} ${testClentIP} ${s} http_host nymbler.com
GetLogList security_event_log ${monitor_http_starttime1} ${monitor_http_endtime1} ${testClentIP} ${s} http_host jzjc.jd.com
SecurityPolicy-Monitor-Http-00003
[Tags] url
@@ -39,112 +39,116 @@ SecurityPolicy-Monitor-Http-00003
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId2}]}
${s} Convert to String ${monitor_http_policyId2}
GetLogList security_event_log ${monitor_http_starttime2} ${monitor_http_endtime2} ${testClentIP} ${s} http_host www.icbc.com.cn
GetLogList security_event_log ${monitor_http_starttime3} ${monitor_http_endtime3} ${testClentIP} ${s} http_host ccb.com
GetLogList security_event_log ${monitor_http_starttime4} ${monitor_http_endtime4} ${testClentIP} ${s} http_host gotohoroscope.com
GetLogList security_event_log ${monitor_http_starttime5} ${monitor_http_endtime5} ${testClentIP} ${s} http_host government.ru
GetLogList security_event_log ${monitor_http_starttime2} ${monitor_http_endtime2} ${testClentIP} ${s} http_host taihe.com
GetLogList security_event_log ${monitor_http_starttime3} ${monitor_http_endtime3} ${testClentIP} ${s} http_host baby.ru
GetLogList security_event_log ${monitor_http_starttime4} ${monitor_http_endtime4} ${testClentIP} ${s} http_host www.quotegarden.com
GetLogList security_event_log ${monitor_http_starttime5} ${monitor_http_endtime5} ${testClentIP} ${s} http_host crosswordheaven.com
SecurityPolicy-Monitor-Http-00004
[Tags] 请求头
#删除对象
${objectids} set Variable ${monitor_http_objectId3}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId4}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId3}]}
${s} Convert to String ${monitor_http_policyId3}
GetLogList security_event_log ${monitor_http_starttime6} ${monitor_http_endtime6} ${testClentIP} ${s} http_host tsutmb.ru
GetLogList security_event_log ${monitor_http_starttime6} ${monitor_http_endtime6} ${testClentIP} ${s} http_host quotes.info
SecurityPolicy-Monitor-Http-00005
[Tags] 请求头
#删除对象
${objectids} set Variable ${monitor_http_objectId4}
${objectids} set Variable ${monitor_http_objectId5}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId6}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId4}]}
${s} Convert to String ${monitor_http_policyId4}
GetLogList security_event_log ${monitor_http_starttime77} ${monitor_http_endtime7} ${testClentIP} ${s} http_host abchina.com
GetLogList security_event_log ${monitor_http_starttime77} ${monitor_http_endtime7} ${testClentIP} ${s} http_host chinahr.com
SecurityPolicy-Monitor-Http-00006
[Tags] 请求头
#删除对象
${objectids} set Variable ${monitor_http_objectId5}
${objectids} set Variable ${monitor_http_objectId7}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId8}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId5}]}
${s} Convert to String ${monitor_http_policyId5}
GetLogList security_event_log ${monitor_http_starttime8} ${monitor_http_endtime8} ${testClentIP} ${s} http_host egypt.travel
GetLogList security_event_log ${monitor_http_starttime8} ${monitor_http_endtime8} ${testClentIP} ${s} http_host bitauto.com
SecurityPolicy-Monitor-Http-00007
[Tags] 请求头
#删除对象
${objectids} set Variable ${monitor_http_objectId6}
${objectids} set Variable ${monitor_http_objectId9}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId10}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId6}]}
${s} Convert to String ${monitor_http_policyId6}
GetLogList security_event_log ${monitor_http_starttime9} ${monitor_http_endtime9} ${testClentIP} ${s} http_host destination360.com
GetLogList security_event_log ${monitor_http_starttime9} ${monitor_http_endtime9} ${testClentIP} ${s} http_host herocraft.com
SecurityPolicy-Monitor-Http-00008
[Tags] 应答头
#删除对象
${objectids} set Variable ${monitor_http_objectId7}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId8}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId7}]}
${s} Convert to String ${monitor_http_policyId7}
GetLogList security_event_log ${monitor_http_starttime10} ${monitor_http_endtime10} ${testClentIP} ${s} http_host cmbchina.com
SecurityPolicy-Monitor-Http-00009
[Tags] 应答头
#删除对象
${objectids} set Variable ${monitor_http_objectId9}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId10}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId8}]}
${s} Convert to String ${monitor_http_policyId8}
GetLogList security_event_log ${monitor_http_starttime11} ${monitor_http_endtime11} ${testClentIP} ${s} http_host bankcomm.com
SecurityPolicy-Monitor-Http-00010
[Tags] 应答头
#删除对象
${objectids} set Variable ${monitor_http_objectId11}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId12}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId9}]}
${s} Convert to String ${monitor_http_policyId9}
GetLogList security_event_log ${monitor_http_starttime12} ${monitor_http_endtime12} ${testClentIP} ${s} http_host thg.ru
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId7}]}
${s} Convert to String ${monitor_http_policyId7}
GetLogList security_event_log ${monitor_http_starttime10} ${monitor_http_endtime10} ${testClentIP} ${s} http_host www.tccb.com.cn
SecurityPolicy-Monitor-Http-00011
SecurityPolicy-Monitor-Http-00009
[Tags] 应答头
#删除对象
${objectids} set Variable ${monitor_http_objectId13}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId14}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId8}]}
${s} Convert to String ${monitor_http_policyId8}
GetLogList security_event_log ${monitor_http_starttime11} ${monitor_http_endtime11} ${testClentIP} ${s} http_host www.athinline.org
SecurityPolicy-Monitor-Http-00010
[Tags] 应答头
#删除对象
${objectids} set Variable ${monitor_http_objectId15}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId16}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId9}]}
${s} Convert to String ${monitor_http_policyId9}
GetLogList security_event_log ${monitor_http_starttime12} ${monitor_http_endtime12} ${testClentIP} ${s} http_host 1001guru.ru
SecurityPolicy-Monitor-Http-00011
[Tags] 应答头
#删除对象
${objectids} set Variable ${monitor_http_objectId17}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId18}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId10}]}
${s} Convert to String ${monitor_http_policyId10}
GetLogList security_event_log ${monitor_http_starttime13} ${monitor_http_endtime13} ${testClentIP} ${s} http_host thg.ru
GetLogList security_event_log ${monitor_http_starttime13} ${monitor_http_endtime13} ${testClentIP} ${s} http_host emi-ors.com
SecurityPolicy-Monitor-Http-00012
[Tags] cookie
#删除对象
${objectids} set Variable ${monitor_http_objectId15}
${objectids} set Variable ${monitor_http_objectId19}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId11}]}
${s} Convert to String ${monitor_http_policyId11}
GetLogList security_event_log ${monitor_http_starttime14} ${monitor_http_endtime14} ${testClentIP} ${s} http_host thg.ru
GetLogList security_event_log ${monitor_http_starttime14} ${monitor_http_endtime14} ${testClentIP} ${s} http_host www.titter.com
SecurityPolicy-Monitor-Http-00013
[Tags] set-cookie
#删除对象
${objectids} set Variable ${monitor_http_objectId16}
${objectids} set Variable ${monitor_http_objectId20}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId12}]}
${s} Convert to String ${monitor_http_policyId12}
GetLogList security_event_log ${monitor_http_starttime15} ${monitor_http_endtime15} ${testClentIP} ${s} http_host ziroom.com
GetLogList security_event_log ${monitor_http_starttime16} ${monitor_http_endtime16} ${testClentIP} ${s} http_host xiaozhu.com
GetLogList security_event_log ${monitor_http_starttime17} ${monitor_http_endtime17} ${testClentIP} ${s} http_host sinovision.net
GetLogList security_event_log ${monitor_http_starttime18} ${monitor_http_endtime18} ${testClentIP} ${s} http_host kiss.ru
GetLogList security_event_log ${monitor_http_starttime15} ${monitor_http_endtime15} ${testClentIP} ${s} http_host www.russchinatrade.ru
GetLogList security_event_log ${monitor_http_starttime16} ${monitor_http_endtime16} ${testClentIP} ${s} http_host www.dianping.com
GetLogList security_event_log ${monitor_http_starttime17} ${monitor_http_endtime17} ${testClentIP} ${s} http_host cn.bing.com
GetLogList security_event_log ${monitor_http_starttime18} ${monitor_http_endtime18} ${testClentIP} ${s} http_host virtualflowers.ru
SecurityPolicy-Monitor-Http-00014
[Tags] 请求体
#删除对象
${objectids} set Variable ${monitor_http_objectId17}
${objectids} set Variable ${monitor_http_objectId21}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId13}]}
${s} Convert to String ${monitor_http_policyId13}
@@ -153,20 +157,20 @@ SecurityPolicy-Monitor-Http-00014
SecurityPolicy-Monitor-Http-00015
[Tags] 应答体
#删除对象
${objectids} set Variable ${monitor_http_objectId18}
${objectids} set Variable ${monitor_http_objectId22}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId14}]}
${s} Convert to String ${monitor_http_policyId14}
GetLogList security_event_log ${monitor_http_starttime20} ${monitor_http_endtime20} ${testClentIP} ${s} http_host huatonggs.com
GetLogList security_event_log ${monitor_http_starttime20} ${monitor_http_endtime20} ${testClentIP} ${s} http_host en.nival.com
SecurityPolicy-Monitor-Http-00016
[Tags] 最大组合1
#删除对象
${objectids} set Variable ${monitor_http_objectId19}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId20}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId21}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId22}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId23}
${objectids} set Variable ${monitor_http_objectId23}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId24}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId25}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId26}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId27}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId15}]}
${s} Convert to String ${monitor_http_policyId15}
@@ -175,12 +179,12 @@ SecurityPolicy-Monitor-Http-00016
SecurityPolicy-Monitor-Http-00017
[Tags] 最大组合2
#删除对象
${objectids} set Variable ${monitor_http_objectId24}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId25}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId26}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId27}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId28}
${objectids} set Variable ${monitor_http_objectId28}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId29}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId30}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId31}
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_http_objectId32}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_http_policyId16}]}
${s} Convert to String ${monitor_http_policyId16}
GetLogList security_event_log ${monitor_http_starttime22} ${monitor_http_endtime22} ${testClentIP} ${s} http_host smspunch.net
GetLogList security_event_log ${monitor_http_starttime22} ${monitor_http_endtime22} ${testClentIP} ${s} http_host www.airwargame.com

View File

@@ -21,8 +21,8 @@ SecurityPolicy-Monitor-Ssl-00001
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_ssl_policyId}]}
${s} Convert to String ${monitor_ssl_policyId}
GetLogList security_event_log ${monitor_ssl_starttime} ${monitor_ssl_endtime} ${testClentIP} ${s} ssl_sni freestockimages.ru
GetLogList security_event_log ${monitor_ssl_starttime1} ${monitor_ssl_endtime1} ${testClentIP} ${s} ssl_sni cxwl.com
GetLogList security_event_log ${monitor_ssl_starttime} ${monitor_ssl_endtime} ${testClentIP} ${s} ssl_sni www.wego.com.ru
GetLogList security_event_log ${monitor_ssl_starttime1} ${monitor_ssl_endtime1} ${testClentIP} ${s} ssl_sni freecountry.com
SecurityPolicy-Monitor-Ssl-00002
[Tags] cn
@@ -31,8 +31,8 @@ SecurityPolicy-Monitor-Ssl-00002
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_ssl_policyId1}]}
${s} Convert to String ${monitor_ssl_policyId1}
GetLogList security_event_log ${monitor_ssl_starttime2} ${monitor_ssl_endtime2} ${testClentIP} ${s} ssl_sni berkeleygroup.co.uk
GetLogList security_event_log ${monitor_ssl_starttime3} ${monitor_ssl_endtime3} ${testClentIP} ${s} ssl_sni vip.com
GetLogList security_event_log ${monitor_ssl_starttime2} ${monitor_ssl_endtime2} ${testClentIP} ${s} ssl_sni www.zealer.com
GetLogList security_event_log ${monitor_ssl_starttime3} ${monitor_ssl_endtime3} ${testClentIP} ${s} ssl_sni www.hotel.info
SecurityPolicy-Monitor-Ssl-00003
[Tags] san
@@ -41,8 +41,8 @@ SecurityPolicy-Monitor-Ssl-00003
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_ssl_policyId2}]}
${s} Convert to String ${monitor_ssl_policyId2}
GetLogList security_event_log ${monitor_ssl_starttime4} ${monitor_ssl_endtime4} ${testClentIP} ${s} ssl_sni nastol.com.ua
GetLogList security_event_log ${monitor_ssl_starttime5} ${monitor_ssl_endtime5} ${testClentIP} ${s} ssl_sni pulitzer.org
GetLogList security_event_log ${monitor_ssl_starttime4} ${monitor_ssl_endtime4} ${testClentIP} ${s} ssl_sni nochi.com
GetLogList security_event_log ${monitor_ssl_starttime5} ${monitor_ssl_endtime5} ${testClentIP} ${s} ssl_sni yapta.com
SecurityPolicy-Monitor-Ssl-00004
[Tags] 最大组合
@@ -51,4 +51,4 @@ SecurityPolicy-Monitor-Ssl-00004
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${monitor_ssl_policyId3}]}
${s} Convert to String ${monitor_ssl_policyId3}
GetLogList security_event_log ${monitor_ssl_starttime6} ${monitor_ssl_endtime6} ${testClentIP} ${s} ssl_sni mail.ru
GetLogList security_event_log ${monitor_ssl_starttime6} ${monitor_ssl_endtime6} ${testClentIP} ${s} ssl_sni www.iqiyi.com

View File

@@ -1 +1 @@
curl http://www.bankcomm.com/BankCommSite/default.shtml | iconv -f utf-8 -t gbk
curl http://www.skycn.com/soft/bangongruanjian.html | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl http://www.thg.ru/technews/hot_news.html | iconv -f utf-8 -t gbk
curl http://www.avaxsearch.com/tangkas/ | iconv -f utf-8 -t gbk

View File

@@ -1 +1 @@
curl http://www.hitlistapp.com/about/ | iconv -f utf-8 -t gbk
curl http://www.finestquotes.com/quotesbyauthors.php | iconv -f utf-8 -t gbk

View File

@@ -1 +0,0 @@
curl https://undergroundhealthreporter.com/ | iconv -f utf-8 -t gbk

View File

@@ -1 +0,0 @@
curl https://wordcrow.com/ | iconv -f utf-8 -t gbk

View File

@@ -1 +0,0 @@
curl https://www.lousycv.com/ | iconv -f utf-8 -t gbk

View File

@@ -1 +0,0 @@
curl https://stylewithshannon.com/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl http://www.mydrivers.com/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl http://sunnylands.org/ | iconv -f utf-8 -t gbk

View File

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

View File

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

View File

@@ -0,0 +1 @@
curl http://nerdreactor.com/latest-posts/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl http://jzjc.jd.com/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl http://music.taihe.com/songlist | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl http://www.nuk-baby.ru/ru_ru/kollekcii/disney-mickey-mouse.html | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl http://www.quotegarden.com/site-info.html | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl http://www.quotegarden.com/site-info.html | iconv -f utf-8 -t gbk

View File

@@ -0,0 +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 'http://www.baidu.com/' \ curl http://www.inspirational-quotes.info/motivational-quotes.html | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl -kv --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/31.0.1650.63 Safari/537.36" --referer 'http://www.baidu.com/' \ curl http://www.chinahr.com/home/bj/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +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 'http://www.baidu.com/' \ curl http://www.chinahr.com/home/bj/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +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 'http://www.baidu.com/' \ curl http://www.herocraft.com/games/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl http://www.tccb.com.cn/grjr/index.shtml | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl http://www.athinline.org/facts | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl http://1001guru.ru/hidden-investigation-3-crime-files/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl http://emi-ors.com/about/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl -kv --cookie "*wingsofprey=jkmg7dm2dqjhf4514u0ehjde45; __utma=1.780132397.1593856991.1593856991.1593856991.1; __utmc=1; __utmz=1.1593856991.1.1.utmcsr=lvse.cn" --referer 'http://www.baidu.com/' http://www.titter.com/en/games/jack-stone.html | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl http://www.russchinatrade.ru/ru/news/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl http://www.dianping.com/beijing/ch10/g112 | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl http://cn.bing.com/translator | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl http://cn.bing.com/translator | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=zxcvb&setCookie=12345678&contentType=content-type&resBody=Response Body" http://open.node.com/action | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl https://en.nival.com/games/pw-defenders2 | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl -H "Content-Type:application/x-www-form-urlencoded" -X POST -d "reqBody=mkiolp&setCookie=12345678&contentType=content-type&resBody=Response Body" -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/action | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl -kv --cookie "*wingsofprey=jkmg7dm2dqjhf4514u0ehjde45; __utma=1.780132397.1593856991.1593856991.1593856991.1; __utmc=1; __utmz=1.1593856991.1.1.utmcsr=lvse.cn" --referer 'http://www.baidu.com/' \ http://www.airwargame.com/eng/start/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl https://www.wego.com.ru/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl https://freecountry.com/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl https://www.zealer.com/ | iconv -f utf-8 -t gbk

View File

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

View File

@@ -0,0 +1 @@
curl https://nochi.com/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl https://yapta.com/ | iconv -f utf-8 -t gbk

View File

@@ -0,0 +1 @@
curl https://www.iqiyi.com/ | iconv -f utf-8 -t gbk