Skip to content

Provision wordlists for password cracking at install time#99

Merged
mkultraWasHere merged 7 commits into
mainfrom
nops/wordlists
Jul 15, 2026
Merged

Provision wordlists for password cracking at install time#99
mkultraWasHere merged 7 commits into
mainfrom
nops/wordlists

Conversation

@mkultraWasHere

@mkultraWasHere mkultraWasHere commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Hashcat and john_the_ripper default to /usr/share/wordlists/rockyou.txt which doesn't exist on the runtime.

Added

  • Install script downloads rockyou.txt (14M passwords), SecLists 10k-most-common.txt (fast spraying), and OneRuleToRuleThemAll.rule (hashcat rules) at provision time
  • Handles Kali's pre-existing rockyou.txt.gz by decompressing instead of re-downloading
  • Readiness check for rockyou.txt
  • All downloads use curl --retry 3 for transient network resilience

Install script now downloads:
- rockyou.txt (14M passwords) — default wordlist for hashcat/john
- SecLists top-1M password list — fast credential spraying
- SecLists xato-net usernames — user enumeration

Handles existing rockyou.txt.gz (Kali default) by decompressing.
Adds rockyou readiness check. Bump to 2.1.7.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds install-time provisioning of common password/username wordlists needed by cracking tooling in the network-ops capability, and wires a readiness check to ensure the expected rockyou path exists at runtime.

Changes:

  • Download (or decompress, if present) rockyou.txt into /usr/share/wordlists/ during provisioning.
  • Download SecLists top-1M password list and a common username list into /usr/share/wordlists/.
  • Bump network-ops version and add a capability readiness check for rockyou.txt.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
capabilities/network-ops/scripts/install_coercion_tools.sh Adds wordlist provisioning (download/decompress) to ensure cracking tools have expected default wordlists available.
capabilities/network-ops/capability.yaml Version bump and adds a readiness check for the rockyou wordlist.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread capabilities/network-ops/scripts/install_coercion_tools.sh Outdated
Comment thread capabilities/network-ops/scripts/install_coercion_tools.sh Outdated
Comment thread capabilities/network-ops/scripts/install_coercion_tools.sh Outdated
Comment thread capabilities/network-ops/capability.yaml Outdated
- rockyou.txt — standard 14M password list (unchanged)
- 10k-most-common.txt — fast first-pass for spraying (replaces 1M list)
- OneRuleToRuleThemAll.rule — hashcat rules that multiply any wordlist's
  effectiveness (replaces username list)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread capabilities/network-ops/scripts/install_coercion_tools.sh Outdated
Comment thread capabilities/network-ops/scripts/install_coercion_tools.sh
Comment thread capabilities/network-ops/scripts/install_coercion_tools.sh
…r suppression

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

Comment thread capabilities/network-ops/scripts/install_coercion_tools.sh Outdated
Comment thread capabilities/network-ops/scripts/install_coercion_tools.sh Outdated
Comment thread capabilities/network-ops/scripts/install_coercion_tools.sh Outdated
Comment thread capabilities/network-ops/scripts/install_coercion_tools.sh Outdated
Comment thread capabilities/network-ops/scripts/install_coercion_tools.sh Outdated
Comment thread capabilities/network-ops/scripts/install_coercion_tools.sh Outdated
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread capabilities/network-ops/scripts/install_coercion_tools.sh Outdated
mkultraWasHere and others added 2 commits July 15, 2026 15:49
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Wordlist and rules download failures should not abort the script and
prevent coercion script cloning. Added || echo fallbacks to all curl
and gunzip calls. Fixed mkdir for hashcat rules dir to fail gracefully
with a clear message instead of falling through to a broken curl.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

Comment thread capabilities/network-ops/scripts/install_coercion_tools.sh
Comment thread capabilities/network-ops/scripts/install_coercion_tools.sh
Comment thread capabilities/network-ops/scripts/install_coercion_tools.sh
# Combines rules from Hob0Rules, KoreLogic, NSA, and hashcat generated rules
# Non-fatal: rules dir may not be writable and that's OK
RULES_DIR="/usr/share/hashcat/rules"
if mkdir -p "$RULES_DIR" 2>/dev/null; then

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 4a35d08 — changed to 2>&1 so mkdir errors are visible alongside our fallback message.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mkultraWasHere
mkultraWasHere merged commit 7404485 into main Jul 15, 2026
5 checks passed
@mkultraWasHere
mkultraWasHere deleted the nops/wordlists branch July 15, 2026 20:13
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.

2 participants