1
0
mirror of https://github.com/jtesta/ssh-audit.git synced 2025-07-06 14:02:49 -05:00

Added debugging output for key exchanges.

This commit is contained in:
Joe Testa
2024-08-26 16:25:32 -04:00
parent 9049c8476a
commit a6f02ae8e8
3 changed files with 24 additions and 2 deletions

View File

@ -1,6 +1,7 @@
"""
The MIT License (MIT)
Copyright (C) 2024 Joe Testa (jtesta@positronsecurity.com)
Copyright (C) 2017 Andris Raugulis (moo@arthepsy.eu)
Permission is hereby granted, free of charge, to any person obtaining a copy
@ -48,3 +49,10 @@ class SSH2_KexParty:
@property
def languages(self) -> List[str]:
return self.__languages
def __str__(self) -> str:
ret = "Ciphers: " + ", ".join(self.__enc)
ret += "\nMACs: " + ", ".join(self.__mac)
ret += "\nCompressions: " + ", ".join(self.__compression)
ret += "\nLanguages: " + ", ".join(self.__languages)
return ret