I have a custom action alert based on an App
The search is looking for a file, event, and file type. it then pipes the sha256 hash of the file out to ensure it is listed.
When I look for that field in the json I get a key error.
I am using
resp_dict = json.loads(sys.stdn.read())
resp_dict['sha256']
I have also tried
resp_dict["sha256"]
resp_dict['_sha256']
All attempts to print or write the contents of the search results json fail.
You wrote sys.stdn
, but i assume it's just a typo?
Yes that is a typo here, in the code it is sys.stdin.read()