Skip to content

Instantly share code, notes, and snippets.

@pawlos
Created October 22, 2016 12:27
Show Gist options
  • Select an option

  • Save pawlos/a2e61027f97c468fba5f473ee0d06913 to your computer and use it in GitHub Desktop.

Select an option

Save pawlos/a2e61027f97c468fba5f473ee0d06913 to your computer and use it in GitHub Desktop.
Bash unpacking script
#!/bin/sh
for i in {1..10000}
do
echo "Run $i"
peepdf_0.3/peepdf.py -s unpack.script simple.pdf
if [ $? -eq 0 ]
then
mv 6.pdf $i.pdf
cp $i.pdf simple.pdf
else
exit
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment