For those who are stuck in either user or root. Here are some Hints!
User: look closely at the configuration file and search all directories…
Root: look at the script running with what privilege… try to understand what is that binary used for and how to exploit it. GTFOBINS is very useful … check it out. Remember you do not need output but only need input from the binary command. Cheers.
If these hints were helpful pls gimme respect too. thanx