Chris Approves

This commit is contained in:
=
2025-08-20 17:32:48 -04:00
parent 8ede27d0f9
commit e2356d3c59
9 changed files with 115970 additions and 34 deletions
+4 -2
View File
@@ -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'])