fix: remove switch prompt from download_found hashview option

The download_found option downloads already-cracked hashes (with cleartext
passwords). These cannot be used for cracking, so the 'Switch to this hashfile
for cracking?' prompt is inappropriate and confusing.

The switch prompt is kept for download_left since those are uncracked hashes
that can be cracked.

- Remove the switch-to-cracking prompt from download_found flow
- Add clarifying message that found hashes are already cracked
- Align with intended behavior: download_left prompts to switch, download_found just downloads
This commit is contained in:
Justin Bollinger
2026-02-10 10:46:28 -05:00
parent d683f839e2
commit fbe2fc7226
2 changed files with 1 additions and 16 deletions

View File

@@ -2703,22 +2703,7 @@ def hashview_api():
print(f" File: {download_result['output_file']}")
if selected_hash_type:
print(f" Hash mode: {selected_hash_type}")
# Ask if user wants to switch to this hashfile
switch = (
input("\nSwitch to this hashfile for cracking? (Y/n): ")
.strip()
.lower()
)
if switch != "n":
hcatHashFile = download_result["output_file"]
if selected_hash_type:
hcatHashType = str(selected_hash_type)
else:
hcatHashType = "1000" # Default to NTLM if unavailable
print(f"✓ Switched to hashfile: {hcatHashFile}")
print("\nReturning to main menu to start cracking...")
return # Exit hashview menu and return to main menu
print("\nFound hashes downloaded successfully. These are already cracked hashes.")
except ValueError:
print("\n✗ Error: Invalid ID entered. Please enter a numeric ID.")