diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-02-28 00:17:43 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-03-04 18:50:25 +0100 |
commit | b6a5cc00018fcc42ee306cff7cd8bcdda01916a3 (patch) | |
tree | 453ebdb0a1aeb0c5b349eba88ba69d53ced0935c /contrib/examples/extract-handshakes/README | |
parent | wg-quick: if resolvconf/run/iface exists, use it (diff) | |
download | wireguard-monolithic-historical-b6a5cc00018fcc42ee306cff7cd8bcdda01916a3.tar.xz wireguard-monolithic-historical-b6a5cc00018fcc42ee306cff7cd8bcdda01916a3.zip |
contrib: add extract-handshakes kprobe example
Diffstat (limited to 'contrib/examples/extract-handshakes/README')
-rw-r--r-- | contrib/examples/extract-handshakes/README | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/examples/extract-handshakes/README b/contrib/examples/extract-handshakes/README new file mode 100644 index 0000000..1d030fa --- /dev/null +++ b/contrib/examples/extract-handshakes/README @@ -0,0 +1,20 @@ +Handshake Extractor +=================== + +This will extract private keys from outgoing handshake sessions, prior +to them being sent, via kprobes. It exports the bare minimum to be +able to then decrypt all packets in the handshake and in the subsequent +transport data session. + +Build: + + $ make + +Run (as root): + + # ./extract-handshakes.sh + New handshake session: + LOCAL_STATIC_PRIVATE_KEY = QChaGDXeH3eQsbFAhueUNWFdq9KfpF3yl+eITjZbXEk= + REMOTE_STATIC_PUBLIC_KEY = HzgTY6aWXtuSyW/PUquZtg8LB/DyMwEXGkPiEmdSsUU= + LOCAL_EPHEMERAL_PRIVATE_KEY = UNGdRHuKDeqbFvmiV5FD4wP7a8PqI6v3Xnnz6Jc6NXQ= + PRESHARED_KEY = AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= |