Created
December 28, 2017 19:23
-
-
Save wesinator/fc86558ba59e20047e9ab934bd289f31 to your computer and use it in GitHub Desktop.
Decode XOR 0x95 malware payload. https://nakedsecurity.sophos.com/2012/06/26/hotel-jobs-malware/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://nakedsecurity.sophos.com/2012/06/26/hotel-jobs-malware/ | |
b = bytearray(open('map.exe', 'rb').read()) | |
for i in range(len(b)): | |
if b[i] == 0x00 or b[i] == 0x95: | |
next | |
else: | |
b[i] ^= 0x95 | |
open('map.out', 'wb').write(b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment