想用 Python 搜索 DSaaS 全局规则,看看某个 HASH/SHA256 是否在全局规则集中。
代码如下。如何在 search_filter 对象中获取 SHA256 值 (hash256)?
hash256 = str(input("Pleas enter the hash that you would like to search: "))
print(hash256)
try:
search_filter = deepsecurity.SearchFilter()
api_response = api_instance.search_global_rules(api_version, search_filter=search_filter)
pprint(api_response)
except ApiException as e:
print("An exception occurred when calling GlobalRulesApi.search_global_rules: %s\n" % e)
无法通过 HASH 进行搜索