Updated functions... need to be able to pull groupid and applicationid out of the list functions, else make new ones to do that

This commit is contained in:
=
2025-08-28 18:42:23 -04:00
parent 0287475090
commit 1d83c61998
2 changed files with 39 additions and 22 deletions
+3 -2
View File
@@ -15,6 +15,7 @@
import requests
import json
import os
import utils.pretty as ct
def addHash(policy, hash):
@@ -32,7 +33,7 @@ def addHashReal(url, allowlistID, hashlist):
endpoint = url + '/v1/hash/application/add'
print(ct.colorText("[+] Grabbing All Categories", "cyan"))
payload = {
"applicationid" : allowlistID
"applicationid" : allowlistID,
"hashes" : hashlist
}
headers = {
@@ -50,7 +51,7 @@ def addPathReal(url, grouplistID, pathlist):
endpoint = url + '/v1/group/path/add'
print(ct.colorText("[+] Grabbing All Categories", "cyan"))
payload = {
"applicationid" : grouplistID
"applicationid" : grouplistID,
"hashes" : pathlist
}
headers = {