我可以使用 Python Scapy 库添加 ls() 函数输出中未列出的协议吗?

Can I use Python Scapy library to add protocols which are not listed in the output of ls() function?

我们可以使用 Python Scapy 库来添加在 ls() 函数的输出中找不到的协议类型吗?

例如 ls() 的结果不包含 GSM SCCP 协议,但我想添加它以便我可以操作 GSM SCCP 消息。

我能做到吗?我在看 this tutorial guide,我的印象是我可以添加新的协议。

问题是我什至可以添加不在 ls() 函数输出中的协议吗?

当然可以!这就是 Scapy 的目的之一。

ls() 仅列出当前在 Scapy 中实现的协议。