Skip to content

feat: add remote hashcat cracking backend#341

Closed
l50 wants to merge 1 commit into
dreadnode:mainfrom
l50:feat/remote-hashcat-service
Closed

feat: add remote hashcat cracking backend#341
l50 wants to merge 1 commit into
dreadnode:mainfrom
l50:feat/remote-hashcat-service

Conversation

@l50
Copy link
Copy Markdown
Contributor

@l50 l50 commented May 21, 2026

Key Changes:

  • Added optional remote hashcat execution through an HTTP crackd service when HASHCAT_SERVICE_URL is configured
  • Preserved local hashcat behavior as the default path when remote service configuration is absent
  • Implemented authenticated job submission, polling, timeout handling, and potfile retrieval for remote cracking
  • Limited remote mode to single-wordlist attacks so GPU and wordlist management remain owned by the service

Added:

  • Remote hashcat backend - Added ares-tools/src/cracker/remote.rs to submit crack jobs, authenticate with HASHCAT_TOKEN, poll job status, collect logs, and return cracked potfile results through ToolOutput
  • Remote service configuration support - Added environment-based activation using HASHCAT_SERVICE_URL and HASHCAT_TOKEN, with clear errors when the service URL is set without a token
  • Remote wordlist handling - Added basename normalization for wordlist paths and a default remote wordlist of rockyou.txt to avoid sending local absolute paths to the service

Changed:

  • Cracking execution flow - Updated crack_with_hashcat in ares-tools/src/cracker.rs to delegate to the remote backend before falling back to the existing local hashcat execution path
  • Timeout behavior - Reused max_time_minutes for remote job polling and returns a timeout-style failure when the remote job exceeds the configured budget

**Added:**

- Remote hashcat client backend that submits wordlist attack jobs to a crackd-compatible HTTP service when HASHCAT_SERVICE_URL and HASHCAT_TOKEN are configured, polls job status with timeout handling, and retrieves cracked potfile results - ares-tools/src/cracker/remote.rs

**Changed:**

- Hashcat cracking flow to delegate to the remote backend before local execution when a service URL is configured, preserving local hashcat behavior otherwise - ares-tools/src/cracker.rs
@l50
Copy link
Copy Markdown
Contributor Author

l50 commented May 21, 2026

Moving to fork PR per workflow — see https://github.com/l50/ares

@l50 l50 closed this May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant