Created
April 1, 2017 07:22
-
-
Save shikendon/50879d10594bb8537d85e4b8e72fcf8c to your computer and use it in GitHub Desktop.
Achieve fcrackzip parallel cracking by using xargs
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
logfile=$(date +%Y%m%d%H%M).log | |
targetfile=test.zip | |
# Start 1 processes for cracking mixalpha-numeric maximum 5 digits | |
fcrackzip -c Aa1 -b -l 1-5 --verbose -u $targetfile & >> $logfile & | |
# Start 62 processes for cracking mixalpha-numeric equal to 6 digits | |
eval echo\ {A..Z}AAAAA\; | xargs -I % -P 26 fcrackzip -c Aa1 -b -p % --verbose -u $targetfile >> $logfile & | |
eval echo\ {a..z}AAAAA\; | xargs -I % -P 26 fcrackzip -c Aa1 -b -p % --verbose -u $targetfile >> $logfile & | |
eval echo\ {0..9}AAAAA\; | xargs -I % -P 10 fcrackzip -c Aa1 -b -p % --verbose -u $targetfile >> $logfile & | |
tail -F $logfile | grep FOUND |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
by the way this doesnt work. if you run line 8 and look at top it just spawns 26 threads doing the same things meaning AAAAAA 26 processes, BAAAAA 26 processes, etc...