Posted on 1 Comment

Upgrade command shell to Meterpreter session

Hello friends.. I took a long break from the blog (actually I was channeling my energy on my monthly magazine Hackercool). But I am here now back with a bang or should I say hack. Ok, Most of the times we only get a command shell on our target while hacking, although we wish we got a meterpreter session (like the case here). Today we will see how to upgrade the command shell to meterpreter.

First thing we need is to background the current command shell session. Hit on CTRL+C. Don’t abort the session altogether. If it happened by mistake ( like it happened to me below), select “no” when it asks whether to abort a session. Then hit CTRL+Z and select Yes. Your session has been sent to background. Remember the session number.

shell_to_meterpreter1

Load the command shell to meterpreter upgrade module. We need only one option, the session id we sent to background.

shell_to_meterpreter2

Specify the session id and run the exploit as shown below. We will get the meterpreter session.

shell_to_meterpreter3

Type command “sessions -l” to see all our sessions as shown below.

shell_to_meterpreter4

We can load the meterpreter session as shown below.

shell_to_meterpreter5

If you found that helpful. Please check out my monthly magazine Hackercool (in the side widget) which is free but you can also PAY WHAT YOU WANT.

1 thought on “Upgrade command shell to Meterpreter session

  1. […] display the “file not found” message. (Just like any POST exploit or as shown in the shell_to_meterpreter exploit, we need to background the current session and load the POST module as shown above. Then set the […]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.