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

Closing sliver client terminate all the socks started before #1642

Closed
n3rada opened this issue Apr 22, 2024 · 5 comments
Closed

Closing sliver client terminate all the socks started before #1642

n3rada opened this issue Apr 22, 2024 · 5 comments

Comments

@n3rada
Copy link
Contributor

n3rada commented Apr 22, 2024

If you start a socks in an implant (e.g., sliver (PLASTIC_SECURITY) > socks5 start -H 127.0.0.1 -P 1081) and quit a job which is blocking your terminal with "Ctrl + C", this will necessarily disconnect the sliver client, but if you reconnect, you keep the jobs because they are server-side, but you lose the socks started before.

Any reason why?

PS: I also tried to have two sliver clients opened-up but same issue when one is closed.

@rkervella
Copy link
Member

Because socks is partly a client-side feature. So if the client is dead, the tunnel is closed.

@n3rada
Copy link
Contributor Author

n3rada commented Apr 23, 2024

Ok. Seems logical.

For better comprehension, let's say that you received your implant and you need to pivot:

sliver (PLASTIC_SECURITY) > socks5 start -H 127.0.0.1 -P 1081

Then, you're using a command that's taking too long to run and you want to stop it, you're stuck because exiting a running command seems impossible if I do say so myself. It's either press Ctrl+ C and quit the current client (thus loosing my socks), or wait for the long timeout, isn't?

Do I miss something?

@rkervella
Copy link
Member

Do I miss something?

No that's about right, in the current state of things, if you don't want to kill the client, you'll need to wait for the timeout to expire (1 minute by default).

@rkervella
Copy link
Member

Closing this one because this is by design: socks tunnels should be closed if the client dies / exits.

@n3rada
Copy link
Contributor Author

n3rada commented Apr 23, 2024

Totally understandable, thanks a lot for the promptness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants