Skip to main content
Challenges Cracking a password hash
Cryptography Medium Dictionary attack and salt Solves: 12

Cracking a password hash

Author: CyberSamSU
Points
40

Many systems do not store passwords in plaintext — instead, they store the SHA-256 hash of the password. However, even though a hash is one-way, if the password is "simple", it can be found using a dictionary attack: we hash every word in a list of known passwords and compare it with the stored value.

Below are the unsalted (no salt) SHA-256 hashes of three users. Find all three passwords using the attached dictionary (wordlist.txt).

h1 = 0f794d836fe17aa42cb1bbe828ea339e73584333348e3e812c4ec79d37fced38
h2 = 66b46b40cc8270c1fc5753cffc86383d76c10e2ae1cf1ba732d387dc143e21b7
h3 = 35ea6a9b3e116cfcf121f51b83bc3efe58638b3fd4ac2c7a6a19e3165a16aba3

Assemble the flag from the found passwords (in the order of the hashes): BAYROQ{H4SH_<parol1>_<parol2>_<parol3>}

Why do we need a salt? Since these hashes are without a salt, the same password always produces the same hash — therefore a rainbow table or dictionary attack works. If a random salt is added to each password, the hash turns into sha256(tuz + parol) and precomputation becomes useless — an attacker has to compute everything again for each salt.

Attached files
wordlist.txt Log in to download
SHA-256 checksums
wordlist.txt: 0bfde54848f5603cc3d0b3df3f9fa8e93528fb8d273bc3e50fa88c08f3031f10
Hints 2
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −4 pts Log in
Hint 2 −8 pts Log in
To submit a flag, log in.

First solvers

1. Лазиз 04.10.2026
2. Raumdeuter 08.10.2026
3. Mirjaxon Qaxxarov 27.10.2026
4. Dmitriy Bukharbayev 27.10.2026
5. Odam 04.11.2026
6. arcanum 11.11.2026
7. Janbo Eleukan 17.11.2026
8. AGENT X 24.11.2026
9. javohir 24.11.2026
10. B.E.O.Otabek 24.11.2026