GPU-Accelerated Hashcat Rule Extraction Engine
RULEST v1.4 is an advanced GPU-accelerated engine that analyzes relationships between base and target wordlists to automatically extract optimal Hashcat rule chains. Using parallel OpenCL processing, it discovers transformation patterns that convert base words into target passwords with unprecedented efficiency.
Advanced Technical Stack
generate_all_rules() creates 1000+ optimized rules with sequential GPU-friendly IDs
Core Transformation Rules
l → Lowercase conversionu → Uppercase conversionc → Capitalize first letterr → Reverse stringd → Duplicate entire wordf → Reflect/mirror wordLeetspeak Substitution Rules
sa@ → a → @ substitutionse3 → e → 3 substitutionsi1 → i → 1 substitutionso0 → o → 0 substitutionss5 → s → 5 substitutionst7 → t → 7 substitutionPositional Manipulation Rules
T3 → Toggle case at position 3D5 → Delete character at position 5i2x → Insert 'x' at position 2o3y → Overwrite position 3 with 'y'Group A: Global Operations
^X → Prepend character globally$X → Append character globally@X → Delete all instances of characterGroup B: Advanced Operations
{ } → Rotate left/right operations[ ] → Delete first/last charactersx25 → Extract character rangeO34 → Omit character rangep3 → Duplicate word 3 timesSpecialized Advanced Rules
z3 → Duplicate first character 3xZ2 → Duplicate last character 2xq → Duplicate all characters'5 → Truncate at position 5
bfs_kernel - Core Processing Kernel
Intelligent Memory Management
// Optimized Rule ID blocks for efficient kernel switching
unsigned int start_id_simple = 0;
unsigned int end_id_simple = start_id_simple + 10;
unsigned int start_id_TD = 10;
unsigned int end_id_TD = start_id_TD + 20;
// ... additional optimized rule blocks
// Advanced kernel logic with branch optimization
if (rule_id >= start_id_simple && rule_id < end_id_simple) {
// Optimized simple rules processing
switch(rule_id - start_id_simple) {
case 0: // 'l' (lowercase) - optimized path
// Enhanced implementation with bounds checking
break;
// ... other optimized cases
}
} else if (rule_id >= start_id_TD && rule_id < end_id_TD) {
// Advanced T/D rules processing
} // ... continues for all rule categories with optimization
Successful transformations are intelligently chained using optimized BFS expansion algorithms. The discovered rulechains undergo statistical analysis and are exported in Hashcat's native .rule format, ready for immediate deployment in password cracking sessions.
Optimized Chain Storage Format
transformed_word<TAB>rule1 rule2 rule3<TAB>effectiveness_scoreProduction-Ready Output
optimized_rule_chain<NEWLINE>Basic Transformation Chain:
"u r $1 s3e"
Uppercase → Reverse → Append "1" → Replace 3→e
Advanced Multi-step Chain:
"l ^@ $9 so0 sa@ T3"
Lowercase → Prepend @ → Append 9 → o→0 → a→@ → Toggle position 3
python rulest.py -w target_wordlist.txt -b base_words.txt -d 3 -o extracted_rules.rule --batch-size 10000
Core Arguments
-w, --wordlist - Target dictionary file path-b, --base-wordlist - Base wordlist (optional: auto-generates)Advanced Options
-d, --chain-depth - Rule chain depth (default: 1, max: 5)-o, --output - Output file for discovered rules--batch-size - GPU batch size optimization (default: 5000)-r, --rules_file - External custom rules file