Skip to content

Implement pivot.port_forward function in eldritch #419

@hulto

Description

@hulto

Is your feature request related to a problem? Please describe.
In nested environments we'd like a way to pass callback out through other compromised hosts or allow connections into network segments. A basic way we can do this is through port forwarding.

Describe the solution you'd like
The privot.port_forward function should take in:

  • a local port
  • a local IP or interface to bind to
  • a remote port
  • a remote IP or hostname to forward the connection too
  • a protocol UDP or TCP

The port_forward function shouldn't exit unless an error occurs or a task management function call kills it.

This on it's own isn't sufficient to create an HTTPS repeater for imix. The grpc crate imix uses requires hostnames for HTTPS and GCP Cloud run + HTTP/2 doesn't offer a way to do IP based connections so a repeater is necessary.

Describe alternatives you've considered
Na

Additional context
Na

Metadata

Metadata

Assignees

No one assigned

    Labels

    eldritchRelated to the Eldritch languagefeatureNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions