Skip to content

Instantly share code, notes, and snippets.

@wesinator
Created December 28, 2017 19:23
Show Gist options
  • Save wesinator/fc86558ba59e20047e9ab934bd289f31 to your computer and use it in GitHub Desktop.
Save wesinator/fc86558ba59e20047e9ab934bd289f31 to your computer and use it in GitHub Desktop.
# 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