Rapid7 Vulnerability & Exploit Database

SSH User Code Execution

Back to Search

SSH User Code Execution

Disclosed
01/01/1999
Created
05/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.

Author(s)

  • Spencer McIntyre
  • Brandon Knight

Platform

BSD,Linux,OSX,Python,Unix

Development

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

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;