WireGuard keylog file by ntqbit · Pull Request #216 · mitmproxy/mitmproxy_rs · GitHub
Skip to content

WireGuard keylog file - #216

Open
ntqbit wants to merge 1 commit into
mitmproxy:mainfrom
ntqbit:feature/wg_keylogfile
Open

ntqbit wants to merge 1 commit into
mitmproxy:mainfrom
ntqbit:feature/wg_keylogfile

Conversation

@ntqbit

@ntqbit ntqbit commented Jan 8, 2025

Copy link
Copy Markdown

Implements mitmproxy/mitmproxy#7418.

I had to fork the upstream WireGuard library boringtun since the upstream version does not allow to extract handshake keys. The fork is here: https://github.com/ntqbit/boringtun/tree/feature/key_logger

The changes made are non-breaking, neither in fork of boringtun nor in mitmproxy_rs.

@mhils

mhils commented Jan 8, 2025

Copy link
Copy Markdown
Member

@ntqbit

ntqbit commented Jan 8, 2025

Copy link
Copy Markdown
Author

Understood. I'll create a pull request to the upstream boringtun.

@ntqbit

ntqbit commented Jan 15, 2025

Copy link
Copy Markdown
Author

It appears that maintainers of boringtun aren't actively reviewing pull requests, so it's likely that my changes won't be merged in the near future.

I'd like to propose an alternative approach: to use a .patch file with the changes on top of the upstream boringtun, with rust's build.rs script taking care of seamlessly cloning the repo, applying the changes and building boringtun. The interference of the new changes with the existing code of boringtun can be minimized to reduce the risk of merge conflicts with new versions of boringtun.

What do you think about this approach?

@mhils

mhils commented Jan 15, 2025

Copy link
Copy Markdown
Member

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

2 participants