Skip to content

Instantly share code, notes, and snippets.

@yuchuanfeng
Created July 13, 2017 11:51
Show Gist options
  • Save yuchuanfeng/6dabc52b1107c48e8239ad2690e15275 to your computer and use it in GitHub Desktop.
Save yuchuanfeng/6dabc52b1107c48e8239ad2690e15275 to your computer and use it in GitHub Desktop.
#! /usr/bin/env bash
echo "Starting...."
INPUT_FOLDER=$1
OUTPUT_FOLDER=$2
echo $INPUT_FOLDER
echo $OUTPUT_FOLDER
FILES=$(find $INPUT_FOLDER -type f)
for file in $FILES
do
if [ -x "$file" ] && file "$file" | grep -q "Mach-O"
then
fileName=${file##*/}
DIR=$OUTPUT_FOLDER/$fileName
mkdir -p ${DIR}
echo "start dump "$file
Sclass-dump --arch arm64 -H -A -S -o $DIR $file
fi
done
echo "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment