➜ ~/Downloads/ctf/mbti sudo pip install scapy-ssl_tls
➜ ~/Downloads/ctf/mbti python [16:11:10]
Python 2.7.12 (default, Sep 28 2016, 18:41:32)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import scapy
>>> from scapy_ssl_tls.ssl_tls import TLS
>>>
后来发现这样不行,应该直接在命令行scapy,才能使用rdpcap
函数。