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

IPv6 self injection / port forwarding #88

Open
oza6ut0ne opened this issue Aug 16, 2020 · 2 comments
Open

IPv6 self injection / port forwarding #88

oza6ut0ne opened this issue Aug 16, 2020 · 2 comments
Labels
feature Feature beyond netcat's functionality

Comments

@oza6ut0ne
Copy link

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.

@oza6ut0ne oza6ut0ne added the feature Feature beyond netcat's functionality label Aug 16, 2020
@cytopia
Copy link
Owner

cytopia commented Aug 22, 2020

@oza6ut0ne awesome 👍 thank you for this. I will need some time to test this thouroughly. You can already go ahead and create a PR.

@oza6ut0ne
Copy link
Author

Thanks, I created a PR for this (#90).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature beyond netcat's functionality
Projects
None yet
Development

No branches or pull requests

2 participants