Unable to build stage-listener in https/http
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
git clone https://github.com/BishopFox/sliver.gitcd slivermake./sliver-server- Create a profile
- run the following command
stage-listener -e --url https://${FQDN}:${PORT} --profile ${PROFILE_NAME}
Thanks for the support!
Also http has the same problem. Am I missing something?
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