Credential Stuffing
Reconnaissance
The challenge provides a remote service accessible via Netcat (nc). Upon connecting, the service prompts for a username and password. Initial manual attempts with common credentials (e.g., admin:password1) were unsuccessful, indicating a more targeted approach was required. 
Information Gathering
The challenge provides a data dump (creds-dump.txt) containing a list of leaked usernames and passwords from a previous breach.
Exploitation (Automated Attack)
To efficiently test the provided list, I developed a Python automation script, brute.py. The script performs the following actions:
- Iterates through each entry in the provided credential list.
- Automates the login process via a socket connection to the Netcat listener.
- Detects the “success” string and stops execution once the valid pair is found.

Execution Command:
1
❯ python brute.py -t 4 creds-dump.txt
The script successfully identified the correct account. Upon the first successful login, the server returned the flag. 
This post is licensed under CC BY 4.0 by the author.
