Information
Room
- Name: Tokyo Ghoul
- Profile: tryhackme.com
- Difficulty: Medium
- Description: Help kaneki escape jason room
Write-up
Overview
Install tools used in this WU on BlackArch Linux:
Task 2 - Where am i?
Task 3 - Planning to escape
On the website (http://tokyoghoul.thm/) the home page has a comment which is a hint:
The ftp is accessible anonymously.
Here are the files on the FTP:
Talk_with_me/need_to_talk
is a ELF binary.
The binary is asking for a passphrase, we can find it by viewing the strings.
I guess rize_and_kaneki.jpg
may requires some stego.
We can use steghide
to
Task 4 - What Rize is traying to say?
yougotme.txt
is containing some other stego... I looks like some morse code.
We can put all this nonsense in cyberchef, because it's after the morse code is some hex and them a base64, just to retrieve a key.
We can then browse to http://tokyoghoul.thm/<key_here>
but there is nothing here.
No we have nothing else we already found to explore. Let's fuzz the website to find some files or directories.
There is a link pointing to http://tokyoghoul.thm/<key_here>/claim/index.php?view=flower.gif
, so there is maybe a vulnerability in the view
parameter.
Let's try a basic local file read: ..
is blocked se we need to URLencode it.
Now we can try to crack the password hash of kamishiro
.
Let's find the hash type with haiti.
The password is cracking nearly instantly:
Task 5 - Fight Jason
With kamishiro account we can connect over SSH.
The EoP is kind of a python jail:
We can take a look at the source code:
It's a easy python jail that was copied from a gist, some people already solved it.
So we could use this payload:
But it's not fun to copy a payload and it's not optimzed, we can do shorter and easier:
Conclusion
This is yet another toxic challenge, containing false steganography, guessing,
unrealistic steps, etc.
Challenge authors have to ask themselves:
- What the user will learn?
- Is it useful?
- Is it realistic?
- Is it enjoyable? (guessing and unrealistic behavior may annoy people)
- Is it hard because it requires advanced technical skills or because there are a lot of guessing steps?
- etc.
Hopefully the author didn't create another room and nowadays TryHackMe wouldn't accept this kind of challenges with their new policy.