Can't see user.txt flags?

Fairly new to HTB, got my first shell on my own, I managed to cat root.txt and receive the flag, I can’t see to do it with user.txt? Is there another way I can see the hash or what do I do?

Thanks

@Prawns said:

Fairly new to HTB, got my first shell on my own, I managed to cat root.txt and receive the flag, I can’t see to do it with user.txt? Is there another way I can see the hash or what do I do?

Thanks

It depends on which box you mean.

I’m on Lame at the moment;

ls /home/makis
user.txt
cat user.txt
cat: user.txt: No such file or directory

@Prawns said:

I’m on Lame at the moment;

ls /home/makis
user.txt
cat user.txt
cat: user.txt: No such file or directory

Ok - that seems strange.

Try ls -al and see what the attributes are.

Just tried going back to home dir and navigated back through, seems to have worked now! Think it took me out of the dir for some reason!

Thanks for your help, much appreciated TazWake!

@Prawns said:

I’m on Lame at the moment;

ls /home/makis
user.txt
cat user.txt
cat: user.txt: No such file or directory

Ah hang on - think I see the problem.

Try cat /home/makis/user.txt

You are running ls with an absolute path but not cat, so unless you are in the /home/makis directory it wont see the file.