Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jstrosch/440921425bd55d9342e678619d4cc87f to your computer and use it in GitHub Desktop.
Save jstrosch/440921425bd55d9342e678619d4cc87f to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
SAMPLES=$1
# Ensure there is at least one argument
if [ $# -eq 0 ]; then
echo "[!] Usage: $0 'path to binary files'";
exit 1;
fi
# Test if file exists
if [ ! -d "$SAMPLES" ]; then
echo "[!] Directory doesn't exist, please provide a valid path to your samples"
exit 1;
fi
for f in $SAMPLES*
do
out=$(basename "$f")
echo $out
./pixd -w 100 "$f" | awk 'FNR <= 30'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment