moloch-- / sliver-py

A Python gRPC Client Library for Sliver
GNU General Public License v3.0
62 stars 13 forks source link

Ability to create pivot listeners on sessions #44

Open mcauthorn opened 5 months ago

mcauthorn commented 5 months ago

Is your feature request related to a problem? Please describe. I'd love a way to create pivot listeners on a connected session. Is it possible now and I'm just not seeing it?

Describe the solution you'd like A new property added to the session object that exposes the pivot command, e.g. something like this: session.pivots('tcp', bind='0.0.0.0') or session.pivots('named-pipe',bind='foobar',timeout=60)

Describe alternatives you've considered If there is a way to do this via a static configuration, that is an option for us as well - I can't seem to find such a config, however so I don't think it's possible.

Additional context We're using sliver-py for automated actions, and one of them is to (hopefully) establish a pivot listener on a specific host or two.

moloch-- commented 5 months ago

There's no high level API to do with in SliverPy right now, however you can potentially implement it on top of the lower level gRPC APIs in the same way the official client does it. We'd like to add higher lever APIs like this in the future, but dev time is limited.