Virtual Environment setup
Ubuntu 64 (Victim Machine) & Kali Linux (Attacker Machine)
Figure 1: VM Setup
Remote shell: Access to the victim system
We have divided this evaluation into two phases:
- Obtaining remote access to the victim system, specifically as a non-root user, which allows us to utilize Linux local privilege escalation exploit modules in phase two, thereby escalating the non-root remote session to a root remote session.
- Escalating from a non-root remote shell to a root remote shell, either upgrading the existing non-root remote shell to a root shell or opening a new root remote shell.
Remote Access Modules for Linux in Metasploit
There are multiple modules/payloads available in the Metasploit tool to configure for remote shell/access on the target Linux system. For this evaluation, we have used 10 modules of different categories to diversify our research and detonation. Selected modules include both Meterpreter & shell payloads, covering traffic flow for both sides “reverse” & “bind” and utilizing both application (http,https) and non-application layer protocols (tcp)
- payload/linux/x64/meterpreter/reverse_tcp
- payload/linux/x64/shell/reverse_tcp
- payload/linux/x64/exec
- payload/linux/x64/meterpreter_reverse_https
- payload/linux/x64/meterpreter_reverse_tcp
- payload/linux/x64/shell_reverse_tcp
- payload/linux/x64/meterpreter/bind_tcp
- payload/linux/x64/shell/bind_tcp
- payload/linux/x64/meterpreter_reverse_http
- payload/linux/x64/shell_bind_tcp