im a little confused, ive got a root shell, however the flag in the root home is not correct.
Currently using grep to find all instances of flag.txt. looked through the shadow files but im struggling to crash the shadow files
There is more than one flag on the box. The actual, correct flag, is not obvious to find. The file with the flag can’t be found with linpeas or linenum. I had to find it find a find command (can also do this with a python script) to find the correct flag. And you do not require root to do so.
Solved it, this is the first section on an “easy” module but the instruction does not provide much detail and the instruction in the module is nearly irrelevant to the question.
Got the shell with sudo -u#-1 /bin/ncdu then do the step describe in the GTFOBins → ncdu (find ncdu link and click there)
The flag.txt in root is not the correct one
try viewing the /home/lab_adm/.viminfo → it will mention a couple of “.sh” file