forked from makersacademy/clmystery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
solution
21 lines (11 loc) · 1.06 KB
/
solution
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Checking Your Answer on Mac/Linux:
Copy and paste the following command, replace John Doe with the suspect's name you want to check, and execute it from inside the main clmystery directory:
echo "John Doe" | $(command -v md5 || command -v md5sum) | grep -qif /dev/stdin encoded && echo CORRECT\! GREAT WORK, GUMSHOE. || echo SORRY, TRY AGAIN.
Checking Your Answer on Windows:
Copy and paste the following command, replace John Doe with the suspect's name you want to check, and execute it from inside the main clmystery directory:
echo "John Doe" | $(command -v md5 || command -v md5sum)
This will give you a long code of numbers and letters. Copy and paste the following command, replace My Code with the code you got, and execute it:
grep -qi "My Code" encoded && echo CORRECT\! GREAT WORK, GUMSHOE. || echo SORRY, TRY AGAIN.
Seeing The Answer:
To give up and view the correct answer, copy and paste the following command and execute it from inside the main clmystery directory:
echo " " && sed -n '/Z/p' encoded | tail -n 6 | cut -c 8,22,23,41 && echo " "