Skip to content

Instantly share code, notes, and snippets.

@shikendon
Created April 1, 2017 07:22
Show Gist options
  • Save shikendon/50879d10594bb8537d85e4b8e72fcf8c to your computer and use it in GitHub Desktop.
Save shikendon/50879d10594bb8537d85e4b8e72fcf8c to your computer and use it in GitHub Desktop.
Achieve fcrackzip parallel cracking by using xargs
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
@athuan21
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment