Skip to content

Instantly share code, notes, and snippets.

@j100002ben
Forked from shikendon/start-fcrackzip.sh
Created August 23, 2019 07:14
Show Gist options
  • Save j100002ben/c9c1d39baa213287d0ec9991a5599cc6 to your computer and use it in GitHub Desktop.
Save j100002ben/c9c1d39baa213287d0ec9991a5599cc6 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment