Navigation — Linux Fundamentals Module — HTB Walkthrough

The Malware Mender
2 min readJul 10, 2024

--

TIER 0 MODULE: LINUX FUNDAMENTALS

SECTION: Navigation

Please open your pwnbox or connect to the vpn, and connect with ssh in order to complete the tasks.

ssh htb-student@<target-ip>
# Enter password 'HTB_@cademy_stdnt!' when asked!

If you are not registered in HTB Academy, then use this link to register now: https://referral.hackthebox.com/mzxKOJt

1. What is the name of the hidden “history” file in the htb-user’s home directory?

To list all content of a directory (including hidden files and folders) we use the command ls -a, the -a stands for ‘all’.

ls -a
# Make sure you are in the htb-student's home directory! Check by 'pwd'.

📍 Navigate to your home directory by cd ~ command, in Linux.

Answer: .bash_history

2. What is the index number of the “sudoers” file in the “/etc” directory?

To check the index numbers we use the command,

ls -i 

Now navigate to the /etc directory.

cd /etc

and then check the index of sudoers file.

ls -i sudoers

Answer: 147627

Still Stuck? Watch Video!

☣️ HAPPY ETHICAL HACKING ☣️

DISCLAIMER: THIS CONTENT DOES NOT BELONG TO ME, I AM JUST WRITING A WALK-THROUGH OF A FREE MODULE OF HACK THE BOX ACADEMY. (WRITING WALKTHROUGHS OF FREE MODULES IS PERMITTED BY HTB ACADEMY)

The Malware Mender Walkthroughs

--

--

The Malware Mender
The Malware Mender

No responses yet