Stager Generation - High CPU Usage
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:
- Create all necessary steps for your stager listener
- 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
Likely an issue with your local metasploit installation, for stagers we just call the msfvenom APIs
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.
Make sure its on the PATH of the Sliver server's user (probably root).
That's a known problem with Metasploit on Kali, haven't gone to the bottom of it yet.