简体   繁体   English

执行程序时出现错误“ NameError:名称'TLSExtSupportedGroup'未定义”

[英]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.

相关问题 出现名称错误 NameError,函数未定义? - Getting a name error NameError, function is not defined? 收到错误“ NameError:未定义名称&#39;Tk&#39;” - Getting error “NameError: name 'Tk' is not defined” 获取“ NameError:名称” <my function> “未定义”错误 - Getting 'NameError: name '<my function>' is not defined' error 在我的Python脚本中使用Pexpect时出现错误“ NameError:名称&#39;ExceptionPexpect&#39;未定义” - Getting error “NameError: name 'ExceptionPexpect' is not defined” while using Pexpect in my Python scripts 为什么我的程序返回 NameError: name 'self' is not defined as the error - Why is my program returning NameError: name 'self' is not defined as the error 获取 NameError:未定义名称“请求” - Getting NameError: name 'requests' is not defined Python 3.5:我收到一个错误:“ NameError:未定义名称&#39;multiprocessing&#39;” - Python 3.5: I am getting an error: “NameError: name 'multiprocessing' is not defined” 为什么我会收到“NameError: name &#39;df2&#39; is not defined”错误? - Why am i getting “ NameError: name 'df2' is not defined” error? NameError: name &#39;BertModel&#39; 未定义,导入 Bert 提取摘要器时出错 - NameError: name 'BertModel' is not defined, error while importing Bert extractive summarizer 为什么我收到此错误“NameError:name&#39;self&#39;未定义。” - Why am I getting this error “NameError:name 'self' is not defined.”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM