software_version must be cryptoparser.ssh.version.SshSoftwareVersionBase
Created by: Nothing4You
On latest master 09f8cc95 I'm getting the following exception:
pdm run python -m dheater --protocol ssh myhost
Traceback (most recent call last):
File "/home/username/.asdf/installs/python/3.10.1/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/username/.asdf/installs/python/3.10.1/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File ".../dheater/dheater/__main__.py", line 565, in <module>
main()
File ".../dheater/dheater/__main__.py", line 507, in main
enforcer = DHEnforcerThreadSSH(args.uri, args.timeout, pre_check_result)
File "<attrs generated init __main__.DHEnforcerThreadBase>", line 14, in __init__
File ".../dheater/dheater/__main__.py", line 130, in __attrs_post_init__
self.message_bytes = self._prepare_packets()
File ".../dheater/dheater/__main__.py", line 232, in _prepare_packets
protocol_message = SshProtocolMessage(
File "<attrs generated init cryptoparser.ssh.subprotocol.SshProtocolMessage>", line 7, in __init__
File ".../dheater/__pypackages__/3.10/lib/attr/validators.py", line 103, in __call__
raise TypeError(
TypeError: ("'software_version' must be <class 'cryptoparser.ssh.version.SshSoftwareVersionBase'> (got 'DHEater_0.3.1' that is a <class 'str'>).", Attribute(name='software_version', default=NOTHING, validator=<instance_of validator for type <class 'cryptoparser.ssh.version.SshSoftwareVersionBase'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None), <class 'cryptoparser.ssh.version.SshSoftwareVersionBase'>, 'DHEater_0.3.1')
this is on Python 3.10.1 on macOS ARM with the following package versions:
asn1crypto==1.4.0
attrs==21.4.0
certifi==2021.10.8
certvalidator==0.11.1
charset-normalizer==2.0.11
cryptolyzer==0.8.0
cryptoparser==0.8.0
idna==3.3
oscrypto==1.2.1
python-dateutil==2.8.2
requests==2.27.1
six==1.16.0
urllib3==1.26.8