hashcat Forum
How can I extract rules from wordlists? - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Misc (https://hashcat.net/forum/forum-15.html)
+--- Forum: General Talk (https://hashcat.net/forum/forum-33.html)
+--- Thread: How can I extract rules from wordlists? (/thread-3946.html)



How can I extract rules from wordlists? - Saint - 01-03-2015

I would like to parse a wordlist and extract all of the rules that are used, ordering them in frequency. Like how the rockyou3000 rule was made.


RE: How can I extract rules from wordlists? - rsberzerker - 01-04-2015

PACK has some tools that supposedly can do this. Only used it for mask generation (works great), but it can do rules.


RE: How can I extract rules from wordlists? - Szulik - 01-04-2015

F:\HashCat\PACK-0.0.4>rulegen.py 1.txt -q
File "F:\HashCat\PACK-0.0.4\rulegen.py", line 220
print " %s" % " ".join(list(word))
^
SyntaxError: invalid syntax

any idea what iam doing wrong?

//statsgen also wont want to work
F:\HashCat\PACK-0.0.4>statsgen.py 1.txt
File "F:\HashCat\PACK-0.0.4\statsgen.py", line 180
print "[+] Analyzing %d%% (%d/%d) of passwords" % (self.filter_counter*100/
elf.total_counter, self.filter_counter, self.total_counter)
^
SyntaxError: invalid syntax


RE: How can I extract rules from wordlists? - rsberzerker - 01-04-2015

Be sure you are using python 2.7. I tried 3.4 and it didn't work until I switched to 2.7.


RE: How can I extract rules from wordlists? - Szulik - 01-04-2015

yeah, i got 3.4.1. Thx for info now try with 2.7

ok now work fine Smile


RE: How can I extract rules from wordlists? - Saint - 01-04-2015

Szulik, I'm getting the same errors, I was going to this this on Linux.

I've heard of PACK in the past, I was wondering if there was anything more "Windows friendly", like a GUI.


RE: How can I extract rules from wordlists? - Szulik - 01-04-2015

hmm statsgen work fine, but still got isue with rulegen ;/


RE: How can I extract rules from wordlists? - Saint - 01-04-2015

(01-04-2015, 03:12 PM)Szulik Wrote: hmm statsgen work fine, but still got isue with rulegen ;/

Rulegen works fine on Linux, I'm running it right now.