1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Metaploit and upgrading sessions.

Discussion in 'Linux & Open Source' started by alex938, Jul 8, 2017.

  1. alex938


    Joined: Nov 12, 2003

    Posts: 118

    I wonder if you can help me with an issue I am having attacking my home network.

    I have successfully managed to gain access a but the issue I am having is upgrading the basic sessions I have obtained to meterpreter sessions.

    I have tried 'session -u <session number>' as well running the upgrade module separately, every time I try I receive the error: "Shells on the target platform, unix, cannot be upgraded to meterpreter at this time'.

    Does anyone know a way I can fix this issue and upgrade a basic already connected session?

    Kind regards,

  2. Rich


    Joined: Oct 18, 2002

    Posts: 2,657

    The quickest way would be to use sshexec in the first place - 'exploit/multi/ssh/sshexec' which will return a Meterpreter session directly.

    Quickly tested upgrading a standard shell and it worked fine.
    I used exploit/multi/handler with linux/x86/shell_reverse_tcp for the payload. Sessions -u 1 worked fine.

Share This Page