# One Liner

## Finding Domains for Subdomain Takeover (STO)

Requirements:&#x20;

1. **Subdomain discovery** using `subfinder`.
2. **HTTP probing** of discovered hosts using `httpx`.
3. **Filtering** for 404 responses using `grep`.
4. **Extracting subdomain parts** using `cut`.
5. **DNS lookup** for CNAME records using `host`.
6. **Formatting** the final output using `awk` and `column.`

```bash
subfinder -dL scope > HOSTS | httpx -follow-redirects -sc -l HOSTS | tee httpx_output ; grep 404 httpx_output > ready_to_test_for_SDT ; for a in $(cat ready_to_test_for_SDT | cut -d/ -f3); do host -t CNAME $a; done | grep for | awk '{print $1 " | " $6}' | column -t -s '|'
```

After that search the names in the "Can I take Over"


---

# Agent Instructions: 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:

```
GET https://notes.matrixploit.com/one-liner.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
