This file contains 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
import mmap | |
import sys | |
import re | |
import struct | |
FAIL = 0 | |
X64 = 1 | |
X86 = 2 | |
def replace_bytes_x64(filename): |
This file contains 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
#!/usr/bin/env python3 | |
from Crypto.Hash import MD4, HMAC | |
from Crypto.Cipher import ARC4 | |
import codecs | |
def b2i(s): | |
return int.from_bytes(s, 'big') | |
def unicode(s): |