> For the complete documentation index, see [llms.txt](https://notes.m4lwhere.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.m4lwhere.org/offensive/password-attacks/wordlist-generation.md).

# Wordlist Generation

Generate with `cewl` to scrape words from a site or page, also has specific parameters to keep special characters and numbers.

Pay close attention to a specific pattern identified through previous challenges. What the the local sports teams? Known high schools or other popular items in the local area?

Add mangling rules to put special characters at the front and end of the word.

`.\hashcat.exe -a 0 -m 500 -O -w 4 -r .\rules\dive.rule c5.hashes`

### Tips and Tricks for Custom Wordlists

Create all as lowercase, then can move to toggle capitalization with rules

* [ ] Identify at least three separate wordlists with theme
* [ ] Modify results
  * [ ] Create all lowercase&#x20;
  * [ ] Remove all spaces
  * [ ] Remove special-encoded characters
  * [ ] Create pluralization of all words
  * [ ] Run through toggle ruleset

Run the following in lines

* [ ] Worlists:
  * [ ] Rockyou
  * [ ] Rockyou + ruleset (small ruleset)
    * [ ] Best64
    * [ ] Toggle
  * [ ] Weakpass
* [ ] Masking attacks
  * [ ] wordlist + ?a?a (incremental)
  * [ ] ?a?a + wordlist (incremental)
  * [ ] ?a + wordlist + ?a
  * [ ] wordlist + ?d?d?d
  * [ ] ?d?d?d + wordlist

### Create hashcat wordlist

We can create wordlists using the hashcat rules to accelerate some analysis or use to push on some additional attack methods

```bash
 .\hashcat.exe  D:\ctfs\fruits.txt -r .\rules\d3ad0ne.rule --stdout > deadlist.txt
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://notes.m4lwhere.org/offensive/password-attacks/wordlist-generation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
