Created
October 22, 2016 12:27
-
-
Save pawlos/a2e61027f97c468fba5f473ee0d06913 to your computer and use it in GitHub Desktop.
Bash unpacking script
This file contains hidden or 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
| #!/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