hashcat Forum
Creating rules - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Misc (https://hashcat.net/forum/forum-15.html)
+--- Forum: User Contributions (https://hashcat.net/forum/forum-25.html)
+--- Thread: Creating rules (/thread-3918.html)



Creating rules - neo_30 - 12-23-2014

Hello.
Sorry for my English. Is the google translator.
Need help in creating a rules file having such mutations:

Case mutation: the program checks all variations of uppercase/lowercase characters.

Digit mutation: adding several digits to the work (from the dictionary) as prefix and suffix.

Border mutation: similar to the above, but adding not only digits, but also most commonly used combinations like 123, $$$, 666, qwerty, 007, Ñ…Ñ…Ñ… etc.; in addition, adding some chars at both end of the word, e.g. #password#, $password$ and more.

Order mutation: reversing the order (password - drowssap), repeating the word (password - passwordpassword), adding the reversed word (password - passworddrowssap).

Duplicate mutation: duplicating the characters, e.g. ppassword, paassword, passsword, passwword etc.

Year mutation: adding the year (four digits) at the end of the word: password1973, password2002.


I mean these mutations on the basis of elcomsoftu.
My English is poor and harder to understand me Sad
And in the network, there is no specific tutorials on this subject.

Regards Jack


RE: Creating rules - epixoip - 12-23-2014

http://hashcat.net/wiki/doku.php?id=rule_based_attack


RE: Creating rules - neo_30 - 12-23-2014

Smile I know about this site.
but I can not keep this embrace Sad
Created a file wpa.rules
I gave him:

# Capitalize the first letter and lower the rest
c


# And add the digits at the end of the password
$ 1
$ 2
.....
I HCCAP your own network with a password Zbyszek1
And unfortunately it did not work because I'm doing something wrong.


RE: Creating rules - epixoip - 12-23-2014

you need both 'c $1' on the same line to both capitalize and append a 1.

Code:
epixoip@token:~/hashcat-0.48$ echo -n Zbyszek1 | md5sum
be597e193161d97f91603b0aaa980218  -
epixoip@token:~/hashcat-0.48$ echo be597e193161d97f91603b0aaa980218 >testhash
epixoip@token:~/hashcat-0.48$ echo 'zbyszek' >testdict
epixoip@token:~/hashcat-0.48$ cat > testrule << EOF
> c \$1
> c \$2
> EOF
epixoip@token:~/hashcat-0.48$ cat testrule
c $1
c $2
epixoip@token:~/hashcat-0.48$ ./hashcat-cli64.bin testhash testdict -r testrule
Initializing hashcat v0.48 by atom with 8 threads and 32mb segment-size...

Added hashes from file testhash: 1 (1 salts)
Activating quick-digest mode for single-hash
Added rules from file testrule: 2

be597e193161d97f91603b0aaa980218:Zbyszek1

All hashes have been recovered

Input.Mode: Dict (testdict)
Index.....: 1/1 (segment), 1 (words), 8 (bytes)
Recovered.: 1/1 hashes, 1/1 salts
Speed/sec.: - plains, - words
Progress..: 1/1 (100.00%)
Running...: --:--:--:--
Estimated.: --:--:--:--

Started: Tue Dec 23 10:11:58 2014
Stopped: Tue Dec 23 10:11:58 2014