Vulnerability & Exploit Database

Back to search

Mercurial Custom hg-ssh Wrapper Remote Code Exec

This module takes advantage of custom hg-ssh wrapper implementations that don't adequately validate parameters passed to the hg binary, allowing users to trigger a Python Debugger session, which allows arbitrary Python code execution.

Free Metasploit Download

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

 Download Now

Module Name

exploit/linux/ssh/mercurial_ssh_exec

Authors

  • claudijd

References

Targets

  • Automatic

Platforms

  • python

Architectures

  • 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/linux/ssh/mercurial_ssh_exec msf exploit(mercurial_ssh_exec) > show targets ...targets... msf exploit(mercurial_ssh_exec) > set TARGET <target-id> msf exploit(mercurial_ssh_exec) > show options ...show and set options... msf exploit(mercurial_ssh_exec) > exploit