Vulnerability & Exploit Database

Back to search

Shell to Meterpreter Upgrade

This module attempts to upgrade a command shell to meterpreter. The shell platform is automatically detected and the best version of meterpreter for the target is selected. Currently meterpreter/reverse_tcp is used on Windows and Linux, with 'python/meterpreter/reverse_tcp' used on all others.

Free Metasploit Download

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

 Download Now

Module Name



  • Tom Sellers <tom [at]>


  • linux
  • osx
  • unix
  • solaris
  • bsd
  • windows



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 post/multi/manage/shell_to_meterpreter msf post(shell_to_meterpreter) > sessions ...sessions... msf post(shell_to_meterpreter) > set SESSION <session-id> msf post(shell_to_meterpreter) > show options and set options... msf post(shell_to_meterpreter) > run