Weak SSH passwords
A username from the company site, a list of common passwords and hydra. See why a password like baghdad2024 protects nothing.
Most break-ins need no clever vulnerability: a known username and a weak password are enough. In this room you collect a username from the company website, try a list of common passwords against it with hydra, and log in to the server.
Download the word list from the files section, or use the copy already on the AttackBox: /usr/share/wordlists/passwords.txt.
0 of 3 · 0 of 60 points
Target machine
Ubuntu 24.04 + SSH (weak password) · Runs for 60 minutes, and you can extend it
Sign in to start your own machine.
Room files
Download them and open them with the right tool on your computer.
Common passwords list
passwords.txt· 437 BSHA-256 fingerprint:
3c3835484f6a2c82…
Task 1: Find a username
Press Start machine. Within a minute your own IP address appears. Run every command in this room from the AttackBox (the "Open AttackBox" button) or from your computer over the VPN. Replace IP with your machine's address.
This is an isolated training machine that is yours alone. Using these techniques on systems you have no written permission to test is a crime.
From the website
The machine runs the clinic's website. Read it:
curl http://IP/
The emails on the page give away usernames, and the page itself says how a username is formed.
1.1What is the clinic manager's username on the server?
10Task 2: Try the passwords
hydra tries many passwords against one service, one after another:
hydra -l <username> -P passwords.txt -t 4 ssh://IP
-lis one username,-Pthe password file.-t 4runs four attempts at a time, so the server does not start refusing you.
When it finds one it prints a line with login: and password:.
2.1Which password did hydra find?
20Task 3: Log in and read the flag
Log in with the account:
ssh <username>@IP
cat flag.txt
The lesson: a password made of a city and a year falls in seconds. The defence: long random passwords (a password manager), SSH keys instead of passwords, and a limit on attempts (such as fail2ban).
3.1Log in over SSH and read flag.txt
30