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

Allow stagers to bind to different ports than the resolved URL #1436

Open
lorenzog opened this issue Oct 18, 2023 · 1 comment
Open

Allow stagers to bind to different ports than the resolved URL #1436

lorenzog opened this issue Oct 18, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@lorenzog
Copy link

Is your feature request related to a problem? Please describe.
Stager listeners appear to bind to the port supplied in the url parameter. It would be nice if one could specify a different port to bind a listener, to simplify the use of HTTP redirectors, allowing multiple stagers and re-using HTTP URLs.

Describe the solution you'd like
The stage-listener command could have a -p option, similar to how listeners are started, such as:

stage-listener --url https://stager.attackerdomain:443/blah -p 12345

This would create a job and start a listener on local port 12345. On the HTTP redirector server, which gathers traffic for 'stager.attackerdomain.com', one could then redirect traffic to /blah to port 12345 of the Sliver c2, and other URLs to the regular HTTP listener.

Describe alternatives you've considered
At the moment, starting a stage-listener forces me to use the same port on both the c2 server and the HTTP redirector.

Sliver is really good by the way, excellent work :)

@moloch--
Copy link
Member

Already in the works for v1.6 :) no release date yet though.

@moloch-- moloch-- added the enhancement New feature or request label Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants