am new to you but think I know a bit about Linux. The uptime of the machine with which I should work on the tasks was already over 8 days. Some files seem to be missing or modified. Are the VMs shared? Are there some that find it funny to delete files that are needed to solve the tasks? Example:
What is the inode number of the “shadow.bak” file in the “/var/backups” directory?
┌─[user183986@htb-eaztqlqwmp]─[/var/backups]
└─╼ $ls -a -l /var/backups/ | grep bak
┌─[✗]─[user183986@htb-eaztqlqwmp]─[/var/backups]
Doesn’t seem to exist or did I miss something?
Another example:
What is the index number of the “sudoers” file in the “/etc” directory?
No matter if I specify the file with full path or just the filename the answer is evaluated as wrong. As I said I am still new here and these things confuse me a bit. Maybe someone can give me a hint if I am on the wrong track or where the thinking error is. These things are piling up and I would like to complete the course.
I struggled so much with this shadow.bak. I realized after about an hour that I had initially ssh’ed to the target but had subsequently terminated connection after completing the first question. I just had to SSH back to the target and was able to get exactly what I needed. Not the first time I goofed and forgot to SSH
In all of these examples it looks like your commands are good, but you’re searching on the Parrot machine (user183986@htb-eaztqlqwmp). You need to spawn the target system, ssh in with the provided credentials, and run the same commands on the target system.
I find out that my SSH connection is being stopped every time when I complete a specific task. In this case when I submitted my answer to the question “What is the name of the last modified file in the “/var/backups” directory?” my SSH connection was interrupted. And I could find shadow.bak file because of it. I had to go over again and enable SSH and from there everything went smoothly. I hope this helps.
Thanks! I realized my issue was similar. I was searching the virtual box instance instead of the target system. I entered the password wrong a few times and when the connection closed, I thought I was in, while I wasn’t.