import re, struct exe = open("HAVOC_NOCD.EXE", "rb").read() pe_off = struct.unpack_from(' needle = b'\xff\x15' + struct.pack('