MCPcopy
hub / github.com/jtesta/ssh-audit / _kex_payload

Method _kex_payload

test/test_ssh2.py:48–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 return data
47
48 def _kex_payload(self):
49 w = self.wbuf()
50 w.write(b'\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xaa\xbb\xcc\xdd\xee\xff')
51 w.write_list(['bogus_kex1', 'bogus_kex2']) # We use a bogus kex, otherwise the host key tests will kick off and fail.
52 w.write_list(['ssh-rsa', 'rsa-sha2-512', 'rsa-sha2-256', 'ssh-ed25519'])
53 w.write_list(['chacha20-poly1305@openssh.com', 'aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'aes128-gcm@openssh.com', 'aes256-gcm@openssh.com', 'aes128-cbc', 'aes192-cbc', 'aes256-cbc'])
54 w.write_list(['chacha20-poly1305@openssh.com', 'aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'aes128-gcm@openssh.com', 'aes256-gcm@openssh.com', 'aes128-cbc', 'aes192-cbc', 'aes256-cbc'])
55 w.write_list(['umac-64-etm@openssh.com', 'umac-128-etm@openssh.com', 'hmac-sha2-256-etm@openssh.com', 'hmac-sha2-512-etm@openssh.com', 'hmac-sha1-etm@openssh.com', 'umac-64@openssh.com', 'umac-128@openssh.com', 'hmac-sha2-256', 'hmac-sha2-512', 'hmac-sha1'])
56 w.write_list(['umac-64-etm@openssh.com', 'umac-128-etm@openssh.com', 'hmac-sha2-256-etm@openssh.com', 'hmac-sha2-512-etm@openssh.com', 'hmac-sha1-etm@openssh.com', 'umac-64@openssh.com', 'umac-128@openssh.com', 'hmac-sha2-256', 'hmac-sha2-512', 'hmac-sha1'])
57 w.write_list(['none', 'zlib@openssh.com'])
58 w.write_list(['none', 'zlib@openssh.com'])
59 w.write_list([''])
60 w.write_list([''])
61 w.write_byte(False)
62 w.write_int(0)
63 return w.write_flush()
64
65 def _kex_payload_with_gss(self):
66 w = self.wbuf()

Callers 3

test_kex_readMethod · 0.95
test_key_payloadMethod · 0.95

Calls 5

write_listMethod · 0.80
write_byteMethod · 0.80
write_intMethod · 0.80
write_flushMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected