Commit Graph
6 Commits
Author SHA1 Message Date
Justin BollingerandClaude Sonnet 4.6 1a8bacfbc7 fix: resolve --rules dest collision, non-blocking dedup prompt, subcommand detection (#17)
- Change quick subparser --rules to dest=rule_files to prevent collision with the top-level --rules=store_true Hashmob download flag
- Update run_noninteractive to read args.rule_files instead of args.rules
- Move ATTACK_COMMANDS above run_noninteractive (Fix 5)
- Fix has_attack_subcommand to scan all argv elements (supports leading global flags like --debug)
- Replace raw input() dedup prompt with _auto_input() so non-interactive runs don't block
- Update existing quick dispatch tests to use rule_files= namespace key
- Add test_main_quick_with_rules_dispatches: proves --rules routes to crack, not download
- Add test_main_debug_flag_before_subcommand: proves leading global flags don't break routing

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-24 20:15:47 -04:00
Justin BollingerandClaude Sonnet 4.6 e11a15d4c2 feat: wire non-interactive attack subcommands into the CLI (#17)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-24 20:07:48 -04:00
Justin BollingerandClaude Sonnet 4.6 1f0dcb4589 test: cover unknown-command and multi-rule dispatch paths
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-24 20:03:50 -04:00
Justin BollingerandClaude Sonnet 4.6 27791457fb feat: add non-interactive attack dispatcher
Appends `run_noninteractive(ctx, args)` to noninteractive.py, which
dispatches quick/dict/brute/topmask commands to the appropriate hcat*
function. Returns 0 on success, 1 on bad inputs, 2 on unknown command.
Includes 6 new unit tests (12 total in file), all passing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-24 20:01:06 -04:00
Justin BollingerandClaude Sonnet 4.6 db374edda2 refactor: harden rule-chain builder (types, empty-token guard, stronger tests)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-24 19:59:22 -04:00
Justin BollingerandClaude Sonnet 4.6 d2e45afb4a feat: add rule-chain builder for non-interactive mode
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-24 19:55:43 -04:00