Enumerate directories, then open the results to find the version number. Inspect some of the files found by the directory scan.
Download the open-source package, search for the version number, and note where it is stored. Check the same location on the target to identify its version.
Port scan -> 80.page source reveals the site -> directory scan finds the entry point + user -> weak password login -> file upload gives a shell(nibbler) -> sudo misconfiguration gives root(root)
0x05 Lessons learned
1. If one reverse shell does not work, try another. These little snags often hold you up.
2. A tool may have several versions. If one does not work, try another, such as python and python3.
3. [sudo vs hosts] This box raises another question: the relationship between sudo and host resolution. It did not directly affect the solution, but sudo hanging can make you think you did something wrong. I need to investigate this.