Writeup

[Tryhackme] Crack the hash Writeup

이둥둥 2025. 2. 18. 18:30

https://hashcat.net/wiki/doku.php?id=example_hashes

 

example_hashes [hashcat wiki]

Example hashes If you get a “line length exception” error in hashcat, it is often because the hash mode that you have requested does not match the hash. To verify, you can test your commands against example hashes. Unless otherwise noted, the password

hashcat.net

 


Task 1

1-1

 

MD5로 복호화하니 답을 찾았다

 

 

 

1-2

 

SHA-1 알고리즘으로 암호화되어 있다.

복호화 사이트에서 답 찾아냄!

 

 

1-3

 

Turning grille이라는 암호화가 제일 가능성이 높다고 나왔으나

시도해 보니 실패했다. 해시 알고리즘인 SHA-256으로 시도해 보자

 

성공!

 

 

 

1-4

bcrypt hash를 써야 한다

hashcat -m 3200 hash1_4.txt /usr/share/wordlists/rockyou.txt

bleh 답 찾음!

 

 

1-5

 

 

md5를 시도했으나 실패

 

 

md4로 복호화하니 성공!!

 

 

 

Task2

task2부터는 웹사이트로 안되고 hashcat을 사용하라고 하는데
https://crackstation.net/ 사이트에서도 처음 두 문제는 충분히 가능했다!

 

 

2-1

 

 

2-2

2-3

여기부터는 해시에 더해 salt 값이 더해져서 hashcat을 무조건 사용해야 한다

 

 

 

2-4

 

마지막 문제는 HMAC-SHA1을 사용하고 있다

 

hashcat -m 160 hash2_4.txt /usr/share/wordlists/rockyou.txt

→ 481616481616

 

마지막 문제까지 해결~!

근데 hashcat은 사용법은 아직 좀 헷갈려서 암호 문제를 더 풀어봐야 알 것 같음

 

 

https://www.freecodecamp.org/news/hacking-with-hashcat-a-practical-guide/

 

How to Crack Hashes with Hashcat — a Practical Pentesting Guide

Hashing is one of the pillars of cybersecurity. From securing passwords to sensitive data, there are a variety of use cases for hashing. Hashing is often confused with encryption. A simple difference is that hashed data is not reversible. Encrypted d...

www.freecodecamp.org