[英]Getting Error “NameError: name 'TLSExtSupportedGroup' is not defined” while executing the program
I am trying to execute the program full_rsa_connection_with_application_data.py
given here . 我正在尝试执行此处给出的程序full_rsa_connection_with_application_data.py
。 However, I dont know why I am getting the following error 但是,我不知道为什么会出现以下错误
Traceback (most recent call last):
File "full_rsa_connection_with_application_data.py", line 21, in <module>
extensions = [TLSExtension() / TLSExtECPointsFormat(),TLSExtension()/ TLSExtSupportedGroup()]
NameError: name 'TLSExtSupportedGroup' is not defined
How can I proceed further? 我该如何进一步?
With pip install you are installing the code of the release 1.2.3.2 so you should try this example instead: 通过pip install,您正在安装1.2.3.2版的代码,因此您应该尝试以下示例:
https://github.com/tintinweb/scapy-ssl_tls/blob/release/1.2.3/examples/full_rsa_connection_with_application_data.py https://github.com/tintinweb/scapy-ssl_tls/blob/release/1.2.3/examples/full_rsa_connection_with_application_data.py
The example you linked there is working from the master branch at is has classes the release hasnt like TLSExtSupportedGroup 您链接的示例从master分支开始工作,具有TLSExtSupportedGroup之类的版本尚未发布的类
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.