Capstone Challenge on TryHackMe

Zargham Siddiqui
3 min readSep 29, 2022

Hello, I hope every one is doing well. Today, I am going to write about capstone challenge in Junior Penetration Tester path in Linux Privilege Escalation room at TryHackMe.
I will try to demonstrate Privilege escalation techniques in very easy steps.

LETS BEGIN…!!!

First we will login by the provided low level credentials

Now we can see that there are three directories in /home folder.
/home/leonard
/home/missy
/home/rootflag
We can also see passwd file and will save this file for further cracking.

Now will will check SUID bit set if any.
SUID or Set Owner User ID is a permission bit flag that applies to executables. SUID allows an alternate user to run an executable with the same permissions as the owner of the file instead of the permissions of the alternate user.

Woohooo…!!! we have found base64 as SUID Bit set.

Now will will read shadow file using base64 encoder/decoder tool.

Base64 is used to encode binary data as printable text. This allows you to transport binary over protocols or mediums that cannot handle binary data formats and require simple text.

Now will will move passwd and shadow file to our server for the great John The Ripper.
SCP (Secure Copy Protocol) is a network protocol used to securely copy files/folders between Linux (Unix) systems on a network.

We will use John the ripper in our attacking machine.
John the Ripper is an Open Source password security auditing and password recovery tool available for many operating systems.

Now we have missy password and can read the flags. :)

You can also watch video walkthrough here and subscribe to my YouTube channel. IT Teller

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Zargham Siddiqui
Zargham Siddiqui

Written by Zargham Siddiqui

I am an Informatics Specialist , Cyber Security and Digital Forensics researcher.

No responses yet