mirror of
https://github.com/ConnorGadbois/altin.git
synced 2026-10-21 20:46:17 -05:00
Fixed key search
This commit is contained in:
parent
9a237762d9
commit
79e30d77b8
@ -26,14 +26,9 @@ def c2_catchall(path: str):
|
||||
for key in Key.select():
|
||||
try:
|
||||
decrypted_data = xor_data(key.key, encrypted_data)
|
||||
except:
|
||||
continue
|
||||
|
||||
try:
|
||||
data = json.loads(decrypted_data)
|
||||
except:
|
||||
# Invalid json
|
||||
pass
|
||||
continue
|
||||
|
||||
found_key = True
|
||||
agent_key = str(key.key)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user