Skip to content

Instantly share code, notes, and snippets.

@leonjza
Last active March 24, 2024 08:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leonjza/cad07afd04491216572da994e644f989 to your computer and use it in GitHub Desktop.
Save leonjza/cad07afd04491216572da994e644f989 to your computer and use it in GitHub Desktop.
Dump iOS executable content headers using radare2
#!/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