<jupyter_start><jupyter_text><jupyter_code># Before you run this notepad, create a directory called "hashes" in the root of your Google drive and store a hashfile named "hash"

# mount Google Drive
from google.colab import drive
drive.mount('/content/drive/', force_remount=True)

# create directories
!mkdir -p /root/rules /root/wordlists

!ls /content/drive/My\ Drive/hashcat/
!ln -s /content/drive/My\ Drive/hashcat /root/hashcat

# get rules list 
!wget -P /root/rules "https://raw.githubusercontent.com/stealthsploit/Optimised-hashcat-Rule/master/OneRuleToRuleThemAll.rule"

# clone the SecLists repository
!git clone https://github.com/danielmiessler/SecLists /root/wordlists/SecLists

# install hashcat
!apt install cmake build-essential -y
!apt install checkinstall git -y
!git clone https://github.com/hashcat/hashcat.git
!cd hashcat && git submodule update --init && make && make install
# install hashid
!rm -rf hashid
!pip install hashid

# Execute hashid for the saved hash to figure out the hash mode
!hashid -m /root/hashcat/hashes/hash
# Enter the Hashcat Mode in the prompt and hit Enter
hash_mode = int(input('Enter the matching Hashcat Mode from the hashid output above (number): '))

# Executing the actual Hascat command
!hashcat -m $hash_mode /root/hashcat/hashes/hash /root/wordlists/SecLists/Passwords/Leaked-Databases/rockyou-75.txt -r /root/rules/OneRuleToRuleThemAll.rule<jupyter_output>Enter the matching Hash Mode from the hashid output above (number): 1400
hashcat (v6.1.1-94-g8207af47) starting...

[31mnvmlDeviceGetFanSpeed(): Not Supported[0m

CUDA API (CUDA 10.1)
====================
* Device #1: Tesla T4, 14969/15079 MB, 40MCU

OpenCL API (OpenCL 1.2 CUDA 10.1.152) - Platform #1 [NVIDIA Corporation]
========================================================================
* Device #2: Tesla T4, skipped

Minimum password length supported by kernel: 0
Maximum password length supported by kernel: 256

[33mSkipping invalid or unsupported rule in file /root/rules/OneRuleToRuleThemAll.rule on line 8210: ^o^ą^Ă^o^t[0m
[33mSkipping invalid or unsupported rule in file /root/rules/OneRuleToRuleThemAll.rule on line 42459: ^a^ą^Ă^e^s^a^r^t^n^o^c[0m
Hashes: 1 digests; 1 unique digests, 1 unique salts
Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates
Rules: 52000

Applicable optimizers applied:
* Zero-Byte
* Early-Skip
* Not-Salted
* Not-Iterate[...]
{'fraction_non_alphanumeric': 0.14014055394791236, 'fraction_numerical': 0.03968582058701943, 'mean_word_length': 5.019900497512438, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '266534', 'license': 'MIT', 'n_tokens_mistral': 885, 'n_tokens_neox': 793, 'n_words': 253, 'path': 'ColabCatWithHashidAndRules.ipynb', 'repo_name': '1N53C/HashCat_with_HashID_in_Google_Colab', 'size': '2419'}