Edit Lists with Common Credentials
In this step, you will enhance both the username and password lists created in previous steps by adding more common credentials that are frequently used in authentication systems. These additions are important because real-world systems often have default or commonly used credentials that can be vulnerable to brute-force attacks.
- First, ensure you're in the correct working directory where your credential files are stored. This ensures all your edits are made in the right location:
cd ~/project
- Open the username list for editing using the nano text editor. Nano is a simple command-line editor that's perfect for beginners:
nano usernames.txt
- Add these additional common usernames to the existing list. These are typical default accounts that many systems use, making them good candidates for testing:
sysadmin
webmaster
support
backup
oracle
mysql
-
Save the file by pressing Ctrl+O
(write out), then Enter
to confirm, and finally Ctrl+X
to exit nano. These keyboard shortcuts are essential for working with command-line editors.
-
Now open the password list for editing using the same process:
nano passwords.txt
- Add these additional common passwords to the existing list. These are weak passwords that users frequently choose, which makes them important to include in your testing:
letmein
welcome
password1
123123
12345
111111
-
Save the password file using the same method: Ctrl+O
, Enter
, then Ctrl+X
.
-
Verify both files contain the updated credentials by displaying their contents. The && echo "---"
part adds a visual separator between the two files when displayed:
cat usernames.txt && echo "---" && cat passwords.txt
You should see both lists now contain more comprehensive sets of credentials. These enhanced lists will provide better coverage when testing authentication systems with Hydra, as they include both default system accounts and commonly used weak passwords that are often found in real-world scenarios.