Last active
March 24, 2024 08:32
-
-
Save leonjza/cad07afd04491216572da994e644f989 to your computer and use it in GitHub Desktop.
Dump iOS executable content headers using radare2
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 bash | |
# | |
# Dump headers for binaries in an extracted iOS applications' | |
# Payload folder using radare2. | |
dumpdir="headers/" | |
mkdir -p $dumpdir | |
find . -perm +111 -type f | grep -iv "libswift" | while read -r bin; do | |
echo "< Processing -> $bin" | |
filename=$(basename -- "$bin") | |
echo "< filename $filename" | |
fulldump="$dumpdir$filename.h" | |
echo "< Dumping to $fulldump" | |
r2 -q -c 'icc' "$bin" > $fulldump | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment