This is a Linux machine with SSH, Web, and Samba services enabled. During web directory enumeration,
we did not discover any useful clues, so we moved on to the Samba service. Fortunately, in one of
the shares, we found that it exposed the root directory of the web service, which allowed us to
upload a web shell and gain an initial foothold on the system.
After performing basic system enumeration (such as checking sudo rules and SUID files), we
discovered that gdb was configured with the SUID bit set and owned by root. By leveraging gdb's
scripting capabilities, we were able to execute commands with elevated privileges and utimately
obtain root access.