Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scapy ConditionalFields and MultipleTypeFIeld using reserved field #7

Open
ashok5141 opened this issue Jun 2, 2023 · 0 comments
Open

Comments

@ashok5141
Copy link

  • % of customers impacted: [100]%
  • Affected Users: [Customers]
  • Is revenue impacted: [Yes ]
  • Urgency: [High]
  • Deadline: [5 June 2023]

Description of Bug

In the code is using "reserved" keyword of scapy documentation

What should the expected behavior be

Unable start the scan listen.py file

Platform Affected

[Ubuntu 22.04 LTS] Dev
[ ] Preview
[ ] Production

Steps to Reproduce

May be change keywords

Additional context

OS-Ubuntu 22.04 LTS

Relevant screenshots

Using USRP B210 for capturing radio signals and Raspberry PI 4B along Raspbee II for Zigbee Network.

Here is the error when execute the python file of listen.py
root@vm:/home/zigbee/zigdiggity# python3 listen.py -c 15
/usr/local/lib/python3.10/dist-packages/scapy/base_classes.py:319: SyntaxWarning: Packet 'ZigbeeNWKCommandPayload' has a duplicated 'reserved' field ! If you are using several ConditionalFields, have a look at MultipleTypeField instead ! This will become a SyntaxError in a future version of Scapy !
warnings.warn(war_msg, SyntaxWarning)
/usr/local/lib/python3.10/dist-packages/scapy/base_classes.py:319: SyntaxWarning: Packet 'ZigbeeNWKCommandPayload' has a duplicated 'multicast' field ! If you are using several ConditionalFields, have a look at MultipleTypeField instead ! This will become a SyntaxError in a future version of Scapy !
warnings.warn(war_msg, SyntaxWarning)
/usr/local/lib/python3.10/dist-packages/scapy/base_classes.py:319: SyntaxWarning: Packet 'ZigbeeNWKCommandPayload' has a duplicated 'route_request_identifier' field ! If you are using several ConditionalFields, have a look at MultipleTypeField instead ! This will become a SyntaxError in a future version of Scapy !
warnings.warn(war_msg, SyntaxWarning)
/usr/local/lib/python3.10/dist-packages/scapy/base_classes.py:319: SyntaxWarning: Packet 'ZigbeeNWKCommandPayload' has a duplicated 'path_cost' field ! If you are using several ConditionalFields, have a look at MultipleTypeField instead ! This will become a SyntaxError in a future version of Scapy !
warnings.warn(war_msg, SyntaxWarning)
/usr/local/lib/python3.10/dist-packages/scapy/base_classes.py:319: SyntaxWarning: Packet 'ZigbeeNWKCommandPayload' has a duplicated 'destination_address' field ! If you are using several ConditionalFields, have a look at MultipleTypeField instead ! This will become a SyntaxError in a future version of Scapy !
warnings.warn(war_msg, SyntaxWarning)
/usr/local/lib/python3.10/dist-packages/scapy/base_classes.py:319: SyntaxWarning: Packet 'ZigbeeNWKCommandPayload' has a duplicated 'epid' field ! If you are using several ConditionalFields, have a look at MultipleTypeField instead ! This will become a SyntaxError in a future version of Scapy !
warnings.warn(war_msg, SyntaxWarning)
Traceback (most recent call last):
File "/home/zigbee/zigdiggity/listen.py", line 9, in
import zigdiggity.observers.utils as observer_utils
File "/home/zigbee/zigdiggity/zigdiggity/observers/utils.py", line 2, in
from zigdiggity.observers.key_finder_observer import KeyFinderObserver
File "/home/zigbee/zigdiggity/zigdiggity/observers/key_finder_observer.py", line 1, in
from zigdiggity.packets.utils import get_extended_source, extended_address_bytes, get_pan_id
File "/home/zigbee/zigdiggity/zigdiggity/packets/utils.py", line 3, in
from scapy.layers.zigbee import *
File "/usr/local/lib/python3.10/dist-packages/scapy/layers/zigbee.py", line 291, in
class ZigbeeNWKCommandPayload(Packet):
File "/usr/local/lib/python3.10/dist-packages/scapy/base_classes.py", line 339, in new
dct["signature"] = inspect.Signature([
File "/usr/lib/python3.10/inspect.py", line 2958, in init
raise ValueError(msg)
ValueError: duplicate parameter name: 'reserved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant