> For the complete documentation index, see [llms.txt](https://alham-rizvi.gitbook.io/alhamrizvi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alham-rizvi.gitbook.io/alhamrizvi/bug-bounty-methodology/useful/userful-tools.md).

# userful-tools

#### **1️⃣ anew**

**Tool:** anew **What it does:** Adds **new lines to a file**, skipping duplicates (great for recon pipelines).

**Commands:**

```bash
cat new.txt | anew all.txt
subfinder -d target.com | anew subs.txt
```

***

#### **2️⃣ gf**

**Tool:** gf **What it does:** Wrapper around `grep` to **filter URLs/parameters** using predefined patterns (xss, sqli, redirect, etc.).

**Commands:**

```bash
cat urls.txt | gf xss
cat urls.txt | gf redirect
cat urls.txt | gf sqli
```

***

#### **3️⃣ uro**

**Tool:** uro **What it does:** **Declutters URLs** by removing duplicates, tracking params, and useless variations.

**Commands:**

```bash
cat urls.txt | uro > cleanurls.txt
gau target.com | uro
```

***

#### **4️⃣ unfurl**

**Tool:** unfurl **What it does:** **Extracts parts of URLs** (params, keys, values, paths, domains).

**Commands:**

```bash
cat urls.txt | unfurl keys
cat urls.txt | unfurl values
cat urls.txt | unfurl paths
cat urls.txt | unfurl domains
```

***

#### **5️⃣ qsreplace**

**Tool:** qsreplace **What it does:** Replaces **all query string values** with a supplied value (FUZZ, payloads, etc.).

**Commands:**

```bash
cat urls.txt | qsreplace FUZZ
cat urls.txt | qsreplace '"><script>alert(1)</script>'
```

***

#### **Quick Summary**

| Tool      | Purpose                  |
| --------- | ------------------------ |
| anew      | Add only new results     |
| gf        | Filter URLs by vuln type |
| uro       | Clean & normalize URLs   |
| unfurl    | Extract URL components   |
| qsreplace | Replace parameter values |


---

# 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://alham-rizvi.gitbook.io/alhamrizvi/bug-bounty-methodology/useful/userful-tools.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.
