forked from Hay1tsme/artemis
fix(aimedb): Ignore requests with invalid header
This commit is contained in:
@ -67,11 +67,15 @@ class AimedbServlette():
|
||||
decrypted = cipher.decrypt(data)
|
||||
|
||||
except Exception as e:
|
||||
self.logger.warning("Failed to decrypt %s because %s", data.hex(), e)
|
||||
self.logger.debug("Failed to decrypt %s because %s", data.hex(), e)
|
||||
return
|
||||
|
||||
self.logger.debug("%s wrote %s", addr, decrypted.hex())
|
||||
|
||||
if decrypted[0] != 0x3E or decrypted[1] != 0xA1:
|
||||
self.logger.debug("Ignoring request with invalid magic bytes")
|
||||
return
|
||||
|
||||
try:
|
||||
head = ADBHeader.from_data(decrypted)
|
||||
|
||||
|
Reference in New Issue
Block a user