> 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="https://3401258663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAKc2IccofCPFp0RqLn1n%2Fuploads%2F40ATBF8xiUrRcnG9Lk5c%2Fimage.png?alt=media&amp;token=25951cd9-a4c1-4b37-b904-63e0a3b62bb5" alt=""><figcaption></figcaption></figure>

capture it in burp and sent it to intruder

<figure><img src="https://3401258663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAKc2IccofCPFp0RqLn1n%2Fuploads%2FGry9neR7oenIF2ZX2MEW%2Fimage.png?alt=media&amp;token=7bbf77b1-1089-4b61-aa53-837a6843d3aa" 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="https://3401258663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAKc2IccofCPFp0RqLn1n%2Fuploads%2FZSUC79GoMYbxE2UEvz8h%2Fimage.png?alt=media&amp;token=ccb8ce36-481f-43bd-9f36-f21dcc584f15" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3401258663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAKc2IccofCPFp0RqLn1n%2Fuploads%2FDCLB3Xqv6OhCzZEh84J6%2Fimage.png?alt=media&amp;token=c6595763-906c-48cf-bcab-7e03619dab8a" 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="https://3401258663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAKc2IccofCPFp0RqLn1n%2Fuploads%2Fkk8VSf8caJQ2YL94apKK%2Fimage.png?alt=media&amp;token=d478cd88-4b68-4d85-8f2c-457a006b9c3e" 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="https://3401258663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAKc2IccofCPFp0RqLn1n%2Fuploads%2FtWjyShGwGrW0cCQM265e%2Fimage.png?alt=media&amp;token=df49d2ca-bc54-4710-b695-b8e5bb2b3b99" alt=""><figcaption></figcaption></figure>

First payload list. username

<figure><img src="https://3401258663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAKc2IccofCPFp0RqLn1n%2Fuploads%2FWXzJypE9yw8zVKUpAtr8%2Fimage.png?alt=media&amp;token=af4352d7-0d67-4e18-a223-a0c93c8e4187" alt=""><figcaption></figcaption></figure>

Second payload list. password

<figure><img src="https://3401258663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAKc2IccofCPFp0RqLn1n%2Fuploads%2Foa8pbSbW0oaFAKbBW7ki%2Fimage.png?alt=media&amp;token=ea3a343a-6fe7-4e4c-9ad3-6ee6ff1eac4a" 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="https://3401258663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAKc2IccofCPFp0RqLn1n%2Fuploads%2FZKuqUbM62UvZUNRqjQd9%2Fimage.png?alt=media&amp;token=f9b82591-2604-4730-a2b5-7c135b006d19" alt=""><figcaption></figcaption></figure>

log in the account with credentials Username: ai Password klaster

<figure><img src="https://3401258663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAKc2IccofCPFp0RqLn1n%2Fuploads%2FzW6rHf9naqLdWNILvHqR%2Fimage.png?alt=media&amp;token=fae8a241-a2f6-494b-9202-b3676b107b81" alt=""><figcaption></figcaption></figure>
