What is the path to htb-student's home directory?

  1. Find out the machine hardware name and submit it as the answer.
    Type: uname -m
    Answer : x86_64

  2. What is the path to htb-student’s home directory?
    Type: cat /home/htb-student
    Answer : /home/htb-student

  3. What is the path to the htb-students mail?
    Type: cat /var/mail/htb-student
    Answer : /var/mail/htb-student

  4. Which shell is specified for the htb-student user?
    Type: cat /bin/bash
    Answer : /bin/bash

I hop this help. If you have any question, please let me know. :grinning:

1 Like

Rookie here… I don’t know what I’m doing wrong
I’m keep on getting this return “/usr/bin/cat: /home/htb-student: No such file or directory”

3 Likes

thank you ,it helped!

hii
what exactly is cat?

The top answer here is troll. The answer is in the documentation/article before you begin the lab. Type env in the command line.

1 Like

Hi, noob here. I’m aware that /home/htb-student is the correct answer, but I’m confused as to why it isn’t /home/htb-ac-1129979 when that’s the answer that comes up following PATH= as a result of the env command. I also got the same answer using the echo $HOME command. Can anyone explain how I was supposed to know that? Not trying to be lazy, genuinely wanting to know, going through the previous sections and not seeing an explanation (that I understand at least)! Thanks in advance

UPDATE: I simply forgot to do the SSH login using the target IP and login offered, which I see was the first step. I’ll leave my comment up for other idiots like me! <3

This video helped a ton! Hack the box academy : Linux Fundamentals (youtube.com)

3 Likes

it acutally means reading the text of the file

the Linux command concatenate, or cat for short. The usage is cat [option] [filename]. It prints out the contents of the file in text form. I hope this helped. Hey maybe you could help me. I am stuck on the “What is the proof text displayed in the target website you browsed?” No matter what I do from my PwnBox instance, I can not get Firefox to load the website for me, so therefore I do not have the ability to answer this question on my own. Please help me with the answer if you can please. I would appreciate it very much. Thanks :slight_smile:

This use command to correct answer
echo $HOME
echo $MAIL
echo $SHELL
before cat answer, create dummy and connect it via ssh first

1 Like

Exercises in htb are nonsense they give us a machine with answers which wont work for us and they expect us to give other solutions which are not related to the machine we have been provided. How can home directory be /home/htb-student mean while my machine is showing me /home/htb-ac-1206884 as home same for the mail and the network interface. This is annoying since one will spend time thinking what the answer may be while the solution to the problem is wrong.

Hi Dracula

I guess you made the same mistake I made. You need to ssh into the IP address they gave at the start of the exercice …through “My Workstation”.
Make sure you’re issuing the terminal commands on the target machine that you have access to, and not Pwnbox.

Ok brother thanks Soo much let me try it out

thank you so much

This helped a fellow idiot like me, thanks!

A reminder to idiots like us to carefully read and digest the contents of each page :slight_smile: