crunch wordlist generation with all combinations
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm trying to generate a wordlist in order to use it to bruteforce my own Truecrypt container. I do know parts of the password, its built up using blocks of other known passwords to increase length, but I forgot in which order the blocks were used and if some blocks weren't used at all.
Example "blocks" separated with space: dog cat bird xyz cow1 lion8
What I would like to do is create a wordlist containing each possible combination of these blocks. E.g
dog
cat
dogcat
catdog
bird
dogbird
catbird
birdcat
birddog
dogcatbird
catdogbird
xyz
dogcatbirdxyz
cow1
xyzcow1dogcat
xyzcow1dogcatbird
catdogbirdxyzcow8
lion8
catdogbirdxyzcow1lion8
lion8catdogbirdxyzcow1
dogcatbirdxyzcow1lion8
cow1birddogcatxyzlion8
cow1lion8birddogcatxyz
...
So far I've tried to utilize a tool called crunch: http://www.irongeek.com/i.php?page=backtrack-r1-man-pages/crunch
But the challenge seems to be how one should generate combinations of shorter combinations, not including all known blocks, example: dogcat
only includes 2 blocks.
Perhaps someone know crunch
better than me, or if I should use another tool or combination of tools?
shell utilities backtrack truecrypt words
add a comment |Â
up vote
0
down vote
favorite
I'm trying to generate a wordlist in order to use it to bruteforce my own Truecrypt container. I do know parts of the password, its built up using blocks of other known passwords to increase length, but I forgot in which order the blocks were used and if some blocks weren't used at all.
Example "blocks" separated with space: dog cat bird xyz cow1 lion8
What I would like to do is create a wordlist containing each possible combination of these blocks. E.g
dog
cat
dogcat
catdog
bird
dogbird
catbird
birdcat
birddog
dogcatbird
catdogbird
xyz
dogcatbirdxyz
cow1
xyzcow1dogcat
xyzcow1dogcatbird
catdogbirdxyzcow8
lion8
catdogbirdxyzcow1lion8
lion8catdogbirdxyzcow1
dogcatbirdxyzcow1lion8
cow1birddogcatxyzlion8
cow1lion8birddogcatxyz
...
So far I've tried to utilize a tool called crunch: http://www.irongeek.com/i.php?page=backtrack-r1-man-pages/crunch
But the challenge seems to be how one should generate combinations of shorter combinations, not including all known blocks, example: dogcat
only includes 2 blocks.
Perhaps someone know crunch
better than me, or if I should use another tool or combination of tools?
shell utilities backtrack truecrypt words
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to generate a wordlist in order to use it to bruteforce my own Truecrypt container. I do know parts of the password, its built up using blocks of other known passwords to increase length, but I forgot in which order the blocks were used and if some blocks weren't used at all.
Example "blocks" separated with space: dog cat bird xyz cow1 lion8
What I would like to do is create a wordlist containing each possible combination of these blocks. E.g
dog
cat
dogcat
catdog
bird
dogbird
catbird
birdcat
birddog
dogcatbird
catdogbird
xyz
dogcatbirdxyz
cow1
xyzcow1dogcat
xyzcow1dogcatbird
catdogbirdxyzcow8
lion8
catdogbirdxyzcow1lion8
lion8catdogbirdxyzcow1
dogcatbirdxyzcow1lion8
cow1birddogcatxyzlion8
cow1lion8birddogcatxyz
...
So far I've tried to utilize a tool called crunch: http://www.irongeek.com/i.php?page=backtrack-r1-man-pages/crunch
But the challenge seems to be how one should generate combinations of shorter combinations, not including all known blocks, example: dogcat
only includes 2 blocks.
Perhaps someone know crunch
better than me, or if I should use another tool or combination of tools?
shell utilities backtrack truecrypt words
I'm trying to generate a wordlist in order to use it to bruteforce my own Truecrypt container. I do know parts of the password, its built up using blocks of other known passwords to increase length, but I forgot in which order the blocks were used and if some blocks weren't used at all.
Example "blocks" separated with space: dog cat bird xyz cow1 lion8
What I would like to do is create a wordlist containing each possible combination of these blocks. E.g
dog
cat
dogcat
catdog
bird
dogbird
catbird
birdcat
birddog
dogcatbird
catdogbird
xyz
dogcatbirdxyz
cow1
xyzcow1dogcat
xyzcow1dogcatbird
catdogbirdxyzcow8
lion8
catdogbirdxyzcow1lion8
lion8catdogbirdxyzcow1
dogcatbirdxyzcow1lion8
cow1birddogcatxyzlion8
cow1lion8birddogcatxyz
...
So far I've tried to utilize a tool called crunch: http://www.irongeek.com/i.php?page=backtrack-r1-man-pages/crunch
But the challenge seems to be how one should generate combinations of shorter combinations, not including all known blocks, example: dogcat
only includes 2 blocks.
Perhaps someone know crunch
better than me, or if I should use another tool or combination of tools?
shell utilities backtrack truecrypt words
asked Apr 19 at 6:36
NiklasJ
12815
12815
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
With Python,
#! /usr/bin/env python3
import sys
from itertools import chain, permutations
# from the docs https://docs.python.org/3/library/itertools.html#itertools-recipes
# modified for permutations instead of combinations
def powerset_perm(iterable):
s = list(iterable)
return chain.from_iterable(permutations(s, r) for r in range(1, len(s) + 1))
for w in powerset_perm(sys.argv[1:]):
print("".join(w))
Example:
~ ./foo.py foo ãÂÂã¼ bar1â¢
foo
ãÂÂã¼
bar1â¢
fooãÂÂã¼
foobar1â¢
ãÂÂã¼foo
ãÂÂã¼bar1â¢
bar1â¢foo
bar1â¢ãÂÂã¼
fooãÂÂã¼bar1â¢
foobar1â¢ãÂÂã¼
ãÂÂã¼foobar1â¢
ãÂÂã¼bar1â¢foo
bar1â¢fooãÂÂã¼
bar1â¢ãÂÂã¼foo
Awesome! This looks very promising. I will try this out when I get the chance, I'll follow up afterwards. Is there any limit on what characters that are supported? E.g special characters, numbers etc?
â NiklasJ
Apr 19 at 7:06
@NiklasJ It's Python 3, so it should handle all valid Unicode characters I think.
â muru
Apr 19 at 7:08
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
With Python,
#! /usr/bin/env python3
import sys
from itertools import chain, permutations
# from the docs https://docs.python.org/3/library/itertools.html#itertools-recipes
# modified for permutations instead of combinations
def powerset_perm(iterable):
s = list(iterable)
return chain.from_iterable(permutations(s, r) for r in range(1, len(s) + 1))
for w in powerset_perm(sys.argv[1:]):
print("".join(w))
Example:
~ ./foo.py foo ãÂÂã¼ bar1â¢
foo
ãÂÂã¼
bar1â¢
fooãÂÂã¼
foobar1â¢
ãÂÂã¼foo
ãÂÂã¼bar1â¢
bar1â¢foo
bar1â¢ãÂÂã¼
fooãÂÂã¼bar1â¢
foobar1â¢ãÂÂã¼
ãÂÂã¼foobar1â¢
ãÂÂã¼bar1â¢foo
bar1â¢fooãÂÂã¼
bar1â¢ãÂÂã¼foo
Awesome! This looks very promising. I will try this out when I get the chance, I'll follow up afterwards. Is there any limit on what characters that are supported? E.g special characters, numbers etc?
â NiklasJ
Apr 19 at 7:06
@NiklasJ It's Python 3, so it should handle all valid Unicode characters I think.
â muru
Apr 19 at 7:08
add a comment |Â
up vote
1
down vote
accepted
With Python,
#! /usr/bin/env python3
import sys
from itertools import chain, permutations
# from the docs https://docs.python.org/3/library/itertools.html#itertools-recipes
# modified for permutations instead of combinations
def powerset_perm(iterable):
s = list(iterable)
return chain.from_iterable(permutations(s, r) for r in range(1, len(s) + 1))
for w in powerset_perm(sys.argv[1:]):
print("".join(w))
Example:
~ ./foo.py foo ãÂÂã¼ bar1â¢
foo
ãÂÂã¼
bar1â¢
fooãÂÂã¼
foobar1â¢
ãÂÂã¼foo
ãÂÂã¼bar1â¢
bar1â¢foo
bar1â¢ãÂÂã¼
fooãÂÂã¼bar1â¢
foobar1â¢ãÂÂã¼
ãÂÂã¼foobar1â¢
ãÂÂã¼bar1â¢foo
bar1â¢fooãÂÂã¼
bar1â¢ãÂÂã¼foo
Awesome! This looks very promising. I will try this out when I get the chance, I'll follow up afterwards. Is there any limit on what characters that are supported? E.g special characters, numbers etc?
â NiklasJ
Apr 19 at 7:06
@NiklasJ It's Python 3, so it should handle all valid Unicode characters I think.
â muru
Apr 19 at 7:08
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
With Python,
#! /usr/bin/env python3
import sys
from itertools import chain, permutations
# from the docs https://docs.python.org/3/library/itertools.html#itertools-recipes
# modified for permutations instead of combinations
def powerset_perm(iterable):
s = list(iterable)
return chain.from_iterable(permutations(s, r) for r in range(1, len(s) + 1))
for w in powerset_perm(sys.argv[1:]):
print("".join(w))
Example:
~ ./foo.py foo ãÂÂã¼ bar1â¢
foo
ãÂÂã¼
bar1â¢
fooãÂÂã¼
foobar1â¢
ãÂÂã¼foo
ãÂÂã¼bar1â¢
bar1â¢foo
bar1â¢ãÂÂã¼
fooãÂÂã¼bar1â¢
foobar1â¢ãÂÂã¼
ãÂÂã¼foobar1â¢
ãÂÂã¼bar1â¢foo
bar1â¢fooãÂÂã¼
bar1â¢ãÂÂã¼foo
With Python,
#! /usr/bin/env python3
import sys
from itertools import chain, permutations
# from the docs https://docs.python.org/3/library/itertools.html#itertools-recipes
# modified for permutations instead of combinations
def powerset_perm(iterable):
s = list(iterable)
return chain.from_iterable(permutations(s, r) for r in range(1, len(s) + 1))
for w in powerset_perm(sys.argv[1:]):
print("".join(w))
Example:
~ ./foo.py foo ãÂÂã¼ bar1â¢
foo
ãÂÂã¼
bar1â¢
fooãÂÂã¼
foobar1â¢
ãÂÂã¼foo
ãÂÂã¼bar1â¢
bar1â¢foo
bar1â¢ãÂÂã¼
fooãÂÂã¼bar1â¢
foobar1â¢ãÂÂã¼
ãÂÂã¼foobar1â¢
ãÂÂã¼bar1â¢foo
bar1â¢fooãÂÂã¼
bar1â¢ãÂÂã¼foo
edited Apr 19 at 7:10
answered Apr 19 at 6:58
muru
33.3k576140
33.3k576140
Awesome! This looks very promising. I will try this out when I get the chance, I'll follow up afterwards. Is there any limit on what characters that are supported? E.g special characters, numbers etc?
â NiklasJ
Apr 19 at 7:06
@NiklasJ It's Python 3, so it should handle all valid Unicode characters I think.
â muru
Apr 19 at 7:08
add a comment |Â
Awesome! This looks very promising. I will try this out when I get the chance, I'll follow up afterwards. Is there any limit on what characters that are supported? E.g special characters, numbers etc?
â NiklasJ
Apr 19 at 7:06
@NiklasJ It's Python 3, so it should handle all valid Unicode characters I think.
â muru
Apr 19 at 7:08
Awesome! This looks very promising. I will try this out when I get the chance, I'll follow up afterwards. Is there any limit on what characters that are supported? E.g special characters, numbers etc?
â NiklasJ
Apr 19 at 7:06
Awesome! This looks very promising. I will try this out when I get the chance, I'll follow up afterwards. Is there any limit on what characters that are supported? E.g special characters, numbers etc?
â NiklasJ
Apr 19 at 7:06
@NiklasJ It's Python 3, so it should handle all valid Unicode characters I think.
â muru
Apr 19 at 7:08
@NiklasJ It's Python 3, so it should handle all valid Unicode characters I think.
â muru
Apr 19 at 7:08
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438655%2fcrunch-wordlist-generation-with-all-combinations%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password