Fixed PWN board reporting
This commit is contained in:
parent
ecd0dd1d68
commit
c8517871da
@ -24,8 +24,8 @@ class A2Sserver:
|
|||||||
|
|
||||||
def __update_pwnboard(self, ip: str) -> None:
|
def __update_pwnboard(self, ip: str) -> None:
|
||||||
try:
|
try:
|
||||||
requests.post(config['pwnboard']['url'], json={'ip': ip, 'application': 'Source Control', 'type': 'a2s c2'}, headers={'Content-Type': 'application/json', 'Authorization': f'Bearer {config["pwnboard"]["access_token"]}'}, timeout=5)
|
requests.post(config['pwnboard']['url'], json={'ip': ip, 'application': 'Source Control', 'access_type': 'a2s c2'}, headers={'Content-Type': 'application/json', 'Authorization': f'Bearer {config["pwnboard"]["access_token"]}'}, timeout=5)
|
||||||
except:
|
except Exception as e:
|
||||||
log(LogLevel.ERROR, f'Failed to report callback to PWN Board. Reason: {e}')
|
log(LogLevel.ERROR, f'Failed to report callback to PWN Board. Reason: {e}')
|
||||||
|
|
||||||
def __xor_message(self, msg: str) -> str:
|
def __xor_message(self, msg: str) -> str:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user