这是indexloc提供的服务,不要输入任何密码
Skip to content

IPv6 self injection / port forwarding #88

@oza6ut0ne

Description

@oza6ut0ne

ISSUE TYPE

  • Feature request

SUMMARY

Thanks for sharing your awsome tool. Self injection and port forwarding is so cool!
However, it seems only IPv4 address is supported for those features.

: is already used as separator for those options,
so ssh port fowarding like IPv6 notation (surrounded by []) may be better.

$ pwncat -l 4444 --self-inject /bin/bash:[xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]:4445
$ pwncat -R [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]:4444 10.0.0.1 3306
$ pwncat -L [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]:5000 10.0.0.1 3306

I tried to implement in this way.
Please see this change. (Seems working, and passed make code/make lint)
If this is OK, I will open a new PR for it. How do you think?

Goal

We can specify IPv6 address for --self-inject/-R/-L.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature beyond netcat's functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions