module

SSH User Code Execution

Disclosed
Jan 1, 1999
Created
May 30, 2018

Description

This module connects to the target system and executes the necessary
commands to run the specified payload via SSH. If a native payload is
specified, an appropriate stager will be used.

Authors

Spencer McIntyre
Brandon Knight

Platform

BSD,Linux,OSX,Python,Unix

Architectures

cmd, x86, x64, armle, mipsle, mipsbe, aarch64, python

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/multi/ssh/sshexec
msf exploit(sshexec) > show targets
...targets...
msf exploit(sshexec) > set TARGET < target-id >
msf exploit(sshexec) > show options
...show and set options...
msf exploit(sshexec) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.