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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user