227 words
1 minutes
Madness TryHackMe Walkthrough

Lets go : Madness .

  1. Do NMAP : 2 port open

image

  1. Get the broken image on page. download it. wget thm.jpg

image

  1. Change the HEX value. should same a in img.

image

check out https://gist.github.com/leommoore/f9e57ba2aa4bf197ebc5 to learn about magic no. more.

now u can open the img and u get the hidden directory.

image

image

so we can add a parameter http://10.10.150.6/th1s_1s_h1dd3n/?secret=1

and if u open source code u see a comment

so let brut force with Burpsuite 1 to 99

and u will get the 73 page.

image

we we will use the y2RPJ4QaPF!B to extract the hidden data from image.

image

now lets decode this username

image

wow u get the username

Right, so let’s recap. We now have: a username; a password. So surely we can login via SSH now?

Nope. The password doesn’t work. This is where optional, the** absolute** mad man, pulled a fast one on 95% of people…

so download this img

image

just press enter don’t enter any ** passphrase** :

image

now u can connect with ssh and get the userflag.

wow super

to get root flag:

To find all SUID file

find / -type f -a \( -perm -u+s -o -perm -g+s \) -exec ls -l {} \; 2> /dev/null

image

we need screen-4.5

search on google and expoit the payload and u get the root .

use this exploit

https://www.exploit-db.com/exploits/41154

to run : send to machine and run it .

then : chmod +x exploit.sh

./expoit

u will get root user.

to get flag cat /root/root.txt

nice u done this.

image


This post was originally published on Medium. Imported 2024-12-17.

Madness TryHackMe Walkthrough
https://blogs.hacck3y.me/posts/madness-tryhackme-walkthrough/
Author
hacck3y
Published at
2024-12-17
License
CC BY-NC-SA 4.0