Chris Approves
This commit is contained in:
+4
-2
@@ -22,15 +22,17 @@ def allowlistexechistories(url, outputjson: bool):
|
||||
choice = int(choice) - 1
|
||||
endpoint = url + '/v1/logging/exechistories'
|
||||
payload_dict = {
|
||||
"type":[1],
|
||||
"type":[1, 2, 6, 7],
|
||||
"checkpoint":"68a153c23963989b484541b4",
|
||||
"policy": [policiesnames[choice]]
|
||||
}
|
||||
payload = json.dumps(payload_dict)
|
||||
print(payload)
|
||||
response = requests.request("POST", endpoint, headers=headers, data=payload, verify=False)
|
||||
|
||||
if outputjson == True:
|
||||
return response
|
||||
return response
|
||||
|
||||
parse_text = json.loads(response.text)
|
||||
for item in parse_text['response']['exechistories']:
|
||||
print(item['checkpoint'])
|
||||
|
||||
Reference in New Issue
Block a user