Would like to use Python to search the DSaaS global rules to see if a certain HASH/SHA256 is in the global rule set.
Code below. How do I get the SHA256 value (hash256) in the search_filter object?
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)
Not getting the search to work by HASH