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 .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.
![](https://www.hackercoolmagazine.com/wp-content/uploads/2016/09/shell_to_meterpreter1-300x136-1.jpg)
Load the command shell to meterpreter upgrade module. We need only one option, the session id we sent to background.
![Image explaining about upgrading command shell to meterpreter](https://www.hackercoolmagazine.com/wp-content/uploads/2016/09/shell_to_meterpreter2.jpg)
Specify the session id and run the exploit as shown below. We will get the meterpreter session.
![](https://www.hackercoolmagazine.com/wp-content/uploads/2016/09/shell_to_meterpreter3.jpg)
Type command “sessions -l” to see all our sessions as shown below.
![](https://www.hackercoolmagazine.com/wp-content/uploads/2016/09/shell_to_meterpreter4.jpg)
We can load the meterpreter session as shown below.
![](https://www.hackercoolmagazine.com/wp-content/uploads/2016/09/shell_to_meterpreter5.jpg)
If you found that helpful. Please check out my monthly magazine Hackercool.
Follow Us
[…] 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 […]