> For the complete documentation index, see [llms.txt](https://infosecgirls.gitbook.io/infosecgirls-training/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infosecgirls.gitbook.io/infosecgirls-training/appsec/some-attack-scenarios/4-customiterator.md).

# Custom Iterator

1. In Mutillidae, go to the login page by clicking on "Login/Register" link.

   ![Login/Register](/files/-LWHQwe3puPj-j7iEFzq)
2. Ensure Burp is in intercept mode.
3. Click on "Please register here" link.

<div align="left"><img src="/files/-MJsDUAWkOW0YLmQIDM-" alt=""></div>

4\. Intercept the request and send it to Intruder.

5\. In "Intruder" > "Positions" tab, mark all positions where *user input* is expected.

![](/files/-MJsDZIhktLE9k7EP_MC)

6\. We intend to create unique users with user names like *user\_1*, *user\_2*, *user\_3*, and so on. Navigate to the `Payloads` sub-tab.

7\. Select the *payload set* corresponding to `username` field.

8\. Select *payload type* as `Custom Iterator`.

9\. Select `Position` as `1` and enter the static text **user** for *position 1*.

10\. Enter `_` (i.e., underscore) as the *separator* for position 1.

<div align="left"><img src="/files/-MJsDgONVS_01h3dBTUn" alt=""></div>

![](/files/-MJsLgvUGU-CsldussBs)

11\. Select `Position` as `2` and load a list of distinct values, say, numbers starting from 1 till 20.

![](/files/-MJsEGr4y0I06rvyNKZn)

12\. Navigate to the `Options` sub-tab. In `Grep - Extract` section, click on `Add` button.

13\. Click on `Refetch response`, and highlight the text that needs to be extracted from each of the server responses.

![](/files/-MJsLUghvuN5F8OxKewr)

14\. Start the attack.

![](/files/-MJsEMcgqDLzZK5CN6i1)


---

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

```
GET https://infosecgirls.gitbook.io/infosecgirls-training/appsec/some-attack-scenarios/4-customiterator.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.
