Created
July 13, 2017 11:51
-
-
Save yuchuanfeng/6dabc52b1107c48e8239ad2690e15275 to your computer and use it in GitHub Desktop.
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 | |
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