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
from subprocess import Popen, PIPE | |
from tempfile import TemporaryFile | |
from os import devnull | |
class ZipFile(object): | |
def __init__(self, filename): | |
self.filename = filename | |
open(filename).close() | |
def __enter__(self): |
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
import struct, re | |
doc = Document.getCurrentDocument() | |
sg = doc.getCurrentSegment() | |
addr = doc.getCurrentAddress() | |
i1 = sg.getInstructionAtAddress(addr) | |
if i1.getInstructionString() == 'adrp': |
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
#!/usr/bin/env python | |
import subprocess, tempfile, struct, shutil, os | |
HDR_FMT = '<hhh' | |
HDR_LEN = struct.calcsize(HDR_FMT) | |
def extract_64bit_ico(exefn, icofn): | |
d = tempfile.mkdtemp() | |
gis = os.path.join(d, '.rsrc', 'GROUP_ICON') |
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
#!/usr/bin/env python3 | |
import base64 | |
import getpass | |
import os | |
import socket | |
import struct | |
import sys | |
import OpenPGPpy # requires https://github.com/dnet/OpenPGPpy/commit/d97a2184a1c1e40599ad1db30b06d33bb7178e59 |
OlderNewer