sliver icon indicating copy to clipboard operation
sliver copied to clipboard

Unable to build stage-listener in https/http

Open AndreaF17 opened this issue 1 year ago • 2 comments

Describe the bug I just compiled v1.6.X/master of sliver and I'm trying to create an HTTPS stager-listener, by running the following command stage-listener -e --url https://${FQDN}:${PORT} --profile ${PROFILE_NAME} I get the following error: [!] Unsupported staging protocol: https.

The feature was working the latest stable version (v1.5.43) stable build. Is the stager listener for https protocol got deprecated?

In the help section it doesn't seems to be deprecated because there are still information for using the lets encrypt feature:

Usage:
   stage-listener [flags]

Flags:
      --aes-encrypt-iv string    encrypt stage with AES encryption iv
      --aes-encrypt-key string   encrypt stage with AES encryption key
  -c, --cert string              path to PEM encoded certificate file (HTTPS only)
  -C, --compress string          compress the stage before encrypting (zlib, gzip, deflate9, none) (default "none")
  -h, --help                     help for stage-listener
  -k, --key string               path to PEM encoded private key file (HTTPS only)
  -e, --lets-encrypt             attempt to provision a let's encrypt certificate (HTTPS only)
  -P, --prepend-size             prepend the size of the stage to the payload (to use with MSF stagers)
  -p, --profile string           implant profile name to link with the listener
      --rc4-encrypt-key string   encrypt stage with RC4 encryption key
  -u, --url string               URL to which the stager will call back to

In order to reproduce

  1. git clone https://github.com/BishopFox/sliver.git
  2. cd sliver
  3. make
  4. ./sliver-server
  5. Create a profile
  6. run the following command stage-listener -e --url https://${FQDN}:${PORT} --profile ${PROFILE_NAME}

Thanks for the support!

AndreaF17 avatar Oct 10 '25 15:10 AndreaF17

Also http has the same problem. Am I missing something?

AndreaF17 avatar Oct 10 '25 15:10 AndreaF17

yeah this has changed in the master branch, at the moment stage-listener is really only used for tcp stage. If you run implants stage, you are able to stage your payloads through the http/s listeners. There's a tutorial here https://sliver.sh/tutorials?name=4+-+HTTP+Payload+staging

TimBF avatar Oct 23 '25 16:10 TimBF