Skip to content

Instantly share code, notes, and snippets.

@varungulshan
varungulshan / CleanBinaryStrings.py
Last active May 8, 2023 14:05
Script to rename strings in a binary for obfuscation purposes
#!/usr/bin/env python
# Call with python CleanBinaryStrings.py <binaryName>
# Will edit the binary in place
import struct
import sys
import mmap
import string
import binascii
import hashlib
import subprocess