mirror of
https://github.com/dobin/SuperMega
synced 2026-06-03 01:27:11 +00:00
feature: xor encoding of payload with changeable key
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ def merge_loader_payload(
|
||||
# Nothing to do
|
||||
pass
|
||||
elif decoder_style == DecoderStyle.XOR_1:
|
||||
xor_key = 0x42
|
||||
xor_key = config.xor_key
|
||||
logger.info("---[ XOR payload with key 0x{:x}".format(xor_key))
|
||||
payload_data = bytes([byte ^ xor_key for byte in payload_data])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user