> For the complete documentation index, see [llms.txt](https://itrp19-notes.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://itrp19-notes.gitbook.io/notes/reference/hacking/port-swigger/authentication/username-enumeration-via-different-responses.md).

# Username enumeration via different responses

This lab is vulnerable to username enumeration and password brute-force attacks. It has an account with a predictable username and password, which can be found in the following wordlists:

* [Candidate usernames](https://portswigger.net/web-security/authentication/auth-lab-usernames)
* [Candidate passwords](https://portswigger.net/web-security/authentication/auth-lab-passwords)

To solve the lab, enumerate a valid username, brute-force this user's password, then access their account page.

like usual I like to start out with admin admin login.

<figure><img src="/files/EYzLm0ZK65B340Jsg4Ah" alt=""><figcaption></figcaption></figure>

capture it in burp and sent it to intruder

<figure><img src="/files/Yd7yQfYyNHtABtP6K212" alt=""><figcaption></figcaption></figure>

since I'm using Burp community edition ill have start the attack with sniper see if the word list has username. set your payload markers on first admin where username is.

<figure><img src="/files/dbgvlURC9AP9wHWJKOQL" alt=""><figcaption></figcaption></figure>

I copy and paste the payloads from the user name wordlist.

<figure><img src="/files/ffT7gJMDXfk7Uuc8b54M" alt=""><figcaption></figcaption></figure>

Notice one of the words in the list was different length,  I inspect the response and render the page and saw incorrect password.

<figure><img src="/files/7ShuHEmg16dcpRHo7YXa" alt=""><figcaption></figcaption></figure>

since I got the username appserver with wrong pass word I'm use cluster bomb the brute force the pass word from the list to crack the account.

<figure><img src="/files/qwtKmTRkJSJWHDQfVB5T" alt=""><figcaption></figcaption></figure>

First payload list. username

<figure><img src="/files/Ekj2v7Yi5OS7Oq4yACRo" alt=""><figcaption></figcaption></figure>

Second payload list. password

<figure><img src="/files/LBgfOFJzQ58qhnWS5Xwf" alt=""><figcaption></figcaption></figure>

Well i took to long to do the lab so i had to reboot a new machine.  but steps are the same. the username end up being ai next round and the password end up being klaster.

<figure><img src="/files/kpwOLoliGWmcY83XSFdm" alt=""><figcaption></figcaption></figure>

log in the account with credentials Username: ai Password klaster

<figure><img src="/files/Mo8OXRaJT67Jiio1uTDc" alt=""><figcaption></figcaption></figure>
