• Close
  • Back to search

    SSH User Code Execution

    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.

    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
    • Python

    Platforms

    • linux
    • osx
    • python

    Architectures

    • x86
    • x86_64
    • python

    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