Back to search

SSH User Code Execution

This module utilizes a stager to upload a base64 encoded binary which is then decoded, chmod'ed and executed from the command shell.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name

exploit/multi/ssh/sshexec

Authors

  • Spencer McIntyre
  • Brandon Knight

References

Targets

  • Linux x86
  • Linux x64
  • OSX x86

Platforms

  • linux
  • osx

Architectures

  • x86
  • x86_64

Reliability

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

Related Modules