TryHackMe Advent of Cyber 2024
by Spoils5521 - Thursday December 5, 2024 at 01:01 PM
#21
For the first side quest:
Working command to create a cookie
flask-unsign --sign --cookie '{"logged_in": True, "username": "admin"}' --secret '@09JKD0934jd712?djD'
Then set it with session=value to get the keycard.

First+Second question:
Just look at the plaintext http traffic.

Third question:
There are two elf files uploaded. One of them is https://github.com/creaktive/tsh (found with VirusTotal).
Traffic to/from port 9001 is encrypted TinyShell traffic that we're interested in.
This is a great start to decode it: https://github.com/DisplayGFX/TinyShell-Decoder
The secret is not the default and has to be extract from the elf. Just strings should be enough.
I couldn't get it to fully work, but if you focus on messages the attacker sends, you can spot the command
zip -P XXX elves.zip elves.sql
that revels the password

Fourth question:
Look at traffic to port 9002 to get the zip file. Use the password from the previous question.
The password is in plaintext in the .sql, no need to crack anything.


Did anyone find the L2 Keycard?
Reply
#22
For the L2 Key card take a look at the XXE on task 11/Day 5

Along the lines of:

<!--?xml version="1.0" ?-->
<!DOCTYPE foo [ <!ENTITY payload SYSTEM "php://filter/convert.base64-encode/resource=http://localhost:8080/"> ]>
Reply
#23
I completed the 1st side quest and found the 2nd Keycard but then got busy with life and couldn't work on it
Reply
#24
(12-30-2024, 10:54 AM)Alex00 Wrote: I completed the 1st side quest and found the 2nd Keycard but then got busy with life and couldn't work on it

I always tell myself to work on these every year but it never ends up happening due to life
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  MAG] PC WORLD DECEMBER 2024 peeaurjee 5 323 03-31-2025, 05:51 PM
Last Post: WitchBrewXX
  What are some of the best rooms on tryhackme that will make me a hacker? ? DOTCYB 2 273 03-18-2025, 06:25 AM
Last Post: DOTCYB
  Guide on How to DOX 2024-2025 amirzahir 11 714 03-06-2025, 10:42 AM
Last Post: brosjiji
  Anti Cyber Threats Technology vmeet062 2 479 02-28-2025, 11:06 AM
Last Post: DredgenSun
  DarkWeb History Summary [2008 - 2024] earflaps 22 1,709 02-04-2025, 04:54 PM
Last Post: Bluke23

Forum Jump:


 Users browsing this thread: