Jump to content

Help with reverse shell on Linux


JonL

Recommended Posts

Hello,

I'm looking for a bit of advice with modifying the LinuxReverseShell script to upgrade the shell to a meterpreter shell.  Has anyone had any experience with this?  I can get the shell to execute without any problem at all, but it will not let me upgrade the shell to a meterpreter shell if I have my listener set up in Metasploit on my kali machine.

Any help would be greatly appreciated.

Thanks

Link to comment
Share on other sites

Hello,

I figured it out.

Start metasploit and get the reverse shell, then enter Python -c “import pty; pty.spawn(‘/bin/bash’)”  

Put the shell in the background and enter Sessions -u <ID_Of_Session>

It spawned a new meterpreter shell so gives me one basic shell and one meterpreter shell to work with ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...