Commit Graph
27 Commits
Author SHA1 Message Date
Justin Bollinger 25c280628e fixed menu pytest options that failed after updating them 2026-02-02 13:18:12 -05:00
Justin Bollinger b074b5d784 fixed wordlist display 2026-02-02 12:39:24 -05:00
Justin Bollinger 892eb6b839 Revert ancestor asset lookup 2026-02-01 22:41:42 -05:00
Justin Bollinger 9695e1b676 Fix uv tool asset lookup 2026-02-01 22:32:24 -05:00
Justin Bollinger 3a858c7e7d Add regression tests for asset path separation
Tests now verify that hashcat-utils are loaded from hate_crack repo
even when hcatPath points to a different directory (like /opt/hashcat).

Why previous tests didn't catch this bug:
- config.json.example has hcatPath = "" (empty)
- Code has fallback: hcatPath = config.get('hcatPath', '') or hate_path
- So hcatPath accidentally defaulted to hate_path during testing
- This masked the bug where utilities incorrectly used hcatPath

Added tests that would have caught this:
- test_hashcat_utils_uses_hate_path_not_hcat_path
- test_config_with_explicit_hashcat_path
- test_readme_documents_correct_usage

Also added code comment documenting the fallback behavior.
2026-02-01 22:06:52 -05:00
Justin Bollinger 80fca8f41b Fix asset path resolution: separate hashcat and hate_crack locations
BREAKING CHANGE: Corrected understanding of hcatPath configuration

- hcatPath should point to hashcat binary location (or omit if in PATH)
- hashcat-utils and princeprocessor are located in hate_crack repo
- Changed code to use hate_path for utilities instead of hcatPath
- Updated error messages to guide users correctly
- Updated README with correct configuration examples
- Asset discovery now properly uses HATE_CRACK_HOME environment variable

This fixes the issue where users had hcatPath pointing to hashcat
installation but the code was looking there for hashcat-utils.
2026-02-01 22:05:27 -05:00
Justin Bollinger 604da2a3e2 Improve error handling for misconfigured hcatPath
- Add directory existence check in ensure_binary() before attempting make
- Provide clear error message when build directory doesn't exist
- Add troubleshooting section to README.md explaining common hcatPath mistakes
- Add tests for invalid hcatPath scenario and installed tool execution
- Helps users distinguish between hashcat path and hate_crack path

Fixes issue where users set hcatPath to hashcat installation directory
instead of hate_crack repository directory, causing confusing errors.
2026-02-01 22:02:35 -05:00
Justin Bollinger 82d2a1a13a updated makefile 2026-02-01 20:46:01 -05:00
Justin Bollinger 793bae9114 Merge draft PR #63 2026-01-31 23:40:09 -05:00
copilot-swe-agent[bot]andbandrel 229caa09c9 Check return code and log stderr on cleanup failure
Co-authored-by: bandrel <3598052+bandrel@users.noreply.github.com>
2026-02-01 04:29:41 +00:00
copilot-swe-agent[bot]andbandrel c00d257430 Improve error logging in Docker image cleanup
Co-authored-by: bandrel <3598052+bandrel@users.noreply.github.com>
2026-02-01 04:29:09 +00:00
copilot-swe-agent[bot]andbandrel 13100bcbf1 Fix Docker build to use absolute Dockerfile path
Co-authored-by: bandrel <3598052+bandrel@users.noreply.github.com>
2026-02-01 04:28:37 +00:00
copilot-swe-agent[bot]andbandrel 3a47b7d60b Add Docker image cleanup to test fixture
Co-authored-by: bandrel <3598052+bandrel@users.noreply.github.com>
2026-02-01 04:28:31 +00:00
Justin Bollinger 1b01993a19 Expand Docker E2E tests with hashcat crack 2026-01-31 23:01:14 -05:00
Justin Bollinger 203afb3d82 Restore hate_crack package and add E2E install tests 2026-01-31 22:50:51 -05:00
Justin Bollinger c298008f8e added uv pytest 2026-01-30 16:47:05 -05:00
Justin Bollinger ea251904c9 fixed uv tool install 2026-01-30 16:39:03 -05:00
Justin Bollinger fd293a75c6 updated tests 2026-01-27 20:04:45 -05:00
Justin Bollinger d788f31f84 updated hashview apis and tests. 2026-01-27 16:00:09 -05:00
Justin Bollinger 2dd8ca0029 updated pytests for hashview 2026-01-27 13:24:38 -05:00
Justin Bollinger 6899796da1 updated pytests for hashview 2026-01-27 13:22:55 -05:00
Justin Bollinger 8fc9d4323c test for hashcat_utils 2026-01-26 23:28:43 -05:00
Justin Bollinger a0d3286d28 pipal tests 2026-01-26 22:05:19 -05:00
Justin Bollinger e795bbbf6b added new tests 2026-01-26 21:08:04 -05:00
Justin Bollinger a46ea5897a weakpass tests and migration to api.py 2026-01-26 16:10:58 -05:00
Justin Bollinger 544ee2dba3 cleanup of modules 2026-01-26 14:29:39 -05:00
Justin Bollinger 4a47848988 major refactor and version change to 2.0 2026-01-26 13:32:37 -05:00