for my test i didn't even use it and it still works pretty well with other hints excluding this one

But

crunch 10 10 123456780 -d 1@ | 'grep' -v "8.*8" | 'grep' "^[0234]" | 'grep' "^....8" | 'grep' "[67]$" | 'sed' 's/^/11/' | while read LINE; do [ `echo $LINE | sed 's/\(.\)/\1\n/g' | sort | uniq -c | awk '{if($1 > 1) print $1}' | wc -l` -eq 3 ] &&  echo $LINE; done | while read LINE; do 7z x -p$LINE dishonored2.rar &> /dev/null && echo $LINE && break; done

looks so lovely :)

4 years ago
Permalink

Comment has been collapsed.

that's a lot of filters :D i only have crunch, one awk filter and one egrep filter :)

and I hope this is not your actual script for my task because i can already see incorrect stuff that won't let you solve my task

4 years ago
Permalink

Comment has been collapsed.

password is 12 characters long

crunch 10 10` + `'sed' 's/^/11/'

password only contains numbers

crunch 10 10 123456780

if you are using crunch, than 2@ (123456 is good, 123345 is good, 123334 is not good) + password starts with 11 + only one pair of digits (e.g. 99456)

'sed' 's/^/11/'

password does not contain 9 + password contains one 8 + seventh digit is 8

crunch 10 10 123456780` + `'grep' "^....8"

3 digits appear more than once

[ `echo $LINE | sed 's/\(.\)/\1\n/g' | sort | uniq -c | awk '{if($1 > 1) print $1}' | wc -l` -eq 3 ] &&  echo $LINE; done

third digit is smaller than 5

'grep' "^[0234]"

last digit is larger than 5

'grep' "[67]$"
4 years ago
Permalink

Comment has been collapsed.

Yeah, I know, so many pipelines but I'm not awk user and I didn't have time to learn full crunch syntax :)

4 years ago
Permalink

Comment has been collapsed.

all i want to say is that you can optimize at least crunch here and get less possibilities ;) but it's your time so good luck :)

4 years ago
Permalink

Comment has been collapsed.

Crunch needs 3,5 minutes, it's the multiprocess filtering that's slow... I mean 3 digits part as I spawn processes every combination :)

4 years ago
Permalink

Comment has been collapsed.

And yeah, I know:

crunch 10 10 123456780 -d1@ | egrep "[0234][0-7]{3}8[0-7]{4}[67]"

but no fun there.

4 years ago
Permalink

Comment has been collapsed.

And after reading man...

crunch 10 10 01234567 -t %%%%8%%%%% -d 1% | 'egrep' "[0234][0-7]{3}8[0-7]{4}[67]" | while read LINE; do 7z x -p11$LINE dishonored2.rar &> /dev/null && echo $LINE && break; done

[Edit]
Fixes.

4 years ago*
Permalink

Comment has been collapsed.

You do not have permission to comment on giveaways.