Skip to content

Instantly share code, notes, and snippets.

@achow101
achow101 / validate_macho_sig.py
Last active December 14, 2020 11:48 — forked from laanwj/validate_macho_sig.py
Validate cryptographic signature on macos macho binary
#!/usr/bin/env python3
import io
import hashlib
import os
import struct
import sys
import pprint
import macholib.MachO
from macholib.mach_o import LC_CODE_SIGNATURE
@achow101
achow101 / sendalert.cpp
Created November 1, 2016 19:58 — forked from laanwj/sendalert.cpp
Bitcoin send alert code
/*
So you need to broadcast an alert...
... here's what to do:
1. Copy sendalert.cpp into your bitcoind build directory
2. Decrypt the alert keys
copy the decrypted file as alertkeys.h into the src/ directory.
3. Modify the alert parameters in sendalert.cpp