]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
New 'contrib' tool: a script for faking initial KEX.
authorSimon Tatham <anakin@pobox.com>
Sat, 28 Feb 2015 07:58:29 +0000 (07:58 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 20 Jun 2015 08:31:54 +0000 (09:31 +0100)
commit4a7632af7f12bae1664c580f67e4aed18d084ba8
tree85d47853941d30083a72eb999b4d5f9b850ceaa0
parentd0aa8b2380ad7aa8e5a660417dfe25a12ff02d5f
New 'contrib' tool: a script for faking initial KEX.

encodelib.py is a Python library which implements some handy SSH-2
encoding primitives; samplekex.py uses that to fabricate the start of
an SSH connection, up to the point where key exchange totally fails
its crypto.

The idea is that you adapt samplekex.py to construct initial-kex
sequences with particular properties, in order to test robustness and
security fixes that affect the initial-kex sequence. For example, I
used an adaptation of this to test the Diffie-Hellman range check
that's just gone into 0.64.

(cherry picked from commit 12d5b00d62240d1875be4ac0a6c5d29240696c89)
.gitignore
contrib/encodelib.py [new file with mode: 0644]
contrib/samplekex.py [new file with mode: 0755]