From 302b99716f44b9dd0f21b1ba2abcbb1ddca2c534 Mon Sep 17 00:00:00 2001 From: Justin Bollinger Date: Wed, 18 Feb 2026 22:48:11 -0500 Subject: [PATCH] fix: use tab-completion file selector for analyze hashcat rules The analyze_rules() function used plain input() instead of select_file_with_autocomplete(), making it the only file-input prompt without tab-completion support. Co-Authored-By: Claude Opus 4.6 --- hate_crack/main.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/hate_crack/main.py b/hate_crack/main.py index f754176..b5d572f 100755 --- a/hate_crack/main.py +++ b/hate_crack/main.py @@ -3502,16 +3502,13 @@ def analyze_rules(): print("Rule Opcode Analyzer") print("=" * 60) - # Get rule file path from user - rule_file = input("\nEnter path to rule file: ").strip() + # Get rule file path from user with tab completion + rule_file = select_file_with_autocomplete("Enter path to rule file") if not rule_file: print("No rule file specified.") return - # Expand user path - rule_file = os.path.expanduser(rule_file) - if not os.path.isfile(rule_file): print(f"Error: Rule file not found: {rule_file}") return