sliver icon indicating copy to clipboard operation
sliver copied to clipboard

Stager Generation - High CPU Usage

Open DiscoRat opened this issue 2 years ago • 4 comments

Describe the bug I'm trying to test a Stager with Sliver. I've created my Profile, Stager Listener, etc. When running the following command to generate my stager shellcode:

generate stager -r http -f csharp --lhost [IP] --lport [PORT]

My CPU usage spikes and my VM becomes unusable... the stager is never created.

To Reproduce Steps to reproduce the behavior:

  1. Create all necessary steps for your stager listener
  2. Use the above command to generate your stager

Expected behavior Using the generate stager command, I would expect my machine not to crash and for the Stager shellcode to be generated.

Desktop (please complete the following information):

  • Linux kali 6.5.0
  • Sliver v1.5.41
  • Metasploit Framework 6.3.43-dev

DiscoRat avatar Dec 06 '23 14:12 DiscoRat

Likely an issue with your local metasploit installation, for stagers we just call the msfvenom APIs

moloch-- avatar Dec 06 '23 15:12 moloch--

I've purged and reinstalled metasploit which seems to of fixed the CPU issue. Now I'm getting the following error:

[!] Error: rpc error: code = Unavailable desc = error reading from server: EOF - Please make sure Metasploit framework >= v6.2 is installed and msfvenom/msfconsole are in your PATH

I can confirm that metasploit is 6.3.43-dev and both msfvenom/msfconsole are in my PATH.

DiscoRat avatar Dec 06 '23 22:12 DiscoRat

Make sure its on the PATH of the Sliver server's user (probably root).

moloch-- avatar Dec 07 '23 16:12 moloch--

That's a known problem with Metasploit on Kali, haven't gone to the bottom of it yet.

rkervella avatar Dec 18 '23 19:12 rkervella