Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[!] Error: rpc error: code = Unknown desc = Invalid format: shellcode - Please make sure Metasploit framework >= v6.2 is installed and msfvenom/msfconsole are in your PATH #1606

Closed
teamdArk5 opened this issue Mar 19, 2024 · 3 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@teamdArk5
Copy link

  1. installed sliver and msf on ubuntu 22
  2. when i exec "generate stager --lhost 192.168.5.131 --lport 1234 --protocol http --format shellcode --save /tmp"
  3. error

[!] Error: rpc error: code = Unknown desc = Invalid format: shellcode - Please make sure Metasploit framework >= v6.2 is installed and msfvenom/msfconsole are in your PATH

i can run msf with "msfconsole"

image

@rkervella rkervella added the duplicate This issue or pull request already exists label Mar 19, 2024
@Gorship
Copy link

Gorship commented Mar 20, 2024

Facing the same issue myself - fresh install so perhaps I've done something wrong? Cant seem to find anything online.

@moloch--
Copy link
Member

Could just be a bug in our code, note that generate stager is just a helper ontop of msfvenom, you can just run msfvenom directly to get the same stager shellcode.

@moloch-- moloch-- added the bug Something isn't working label Mar 20, 2024
@rkervella
Copy link
Member

rkervella commented Mar 22, 2024

It's a long standing bug, IIRC the cmd.Run call hangs and the context times out, and it's interpreted as a runtime error. Or at least that's how I remember the issue. As @moloch-- says, you can use msfvenom instead to generate payloads, that's basically what sliver does anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants