-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
ENV:
Scapy 2.4.4 and Scapy 2.4.3
Linux kali 5.5.0-kali1-amd64 #1 SMP Debian 5.5.13-2kali1 (2020-04-03) x86_64 GNU/Linux
Python 3.8.6 (default, Sep 25 2020, 09:36:53)
ISSUE:
When sending PPPoED frames (PADI and PADR), the first srp1 recognized the response as answers while the second one did not. I also tried the srp, srp1loop...etc, but all did not recognize the returned frames after sending the PADR as "answers". If I use sniff() I can see that all returned frames were captured by Scapy without problems. also all captured frames are error and issue-free in Wireshark.
Note: I am not using any custom payload, this is the standard PPPoED. In other words, even if I change the Raw(bytes) with the correspondent PPPoED sublayer, the issue persists.
REPRODUCE:
>>> ans = srp1(Ether(dst='ff:ff:ff:ff:ff:ff')/PPPoED()/PPPoED_Tags())
Begin emission:
Finished sending 1 packets.
*
Received 1 packets, got 1 answers, remaining 0 packets
>>> ans = srp1(Ether(dst=ans[Ether].src)/PPPoED(version=1, type=1, code=25, sessionid=0)/Raw(load=b'\x01\x01\x00\x00\x01\x04\x00\x10%b' %ans[Ether][PPPoED][PPPoED_Tags][2].tag_value))
Begin emission:
Finished sending 1 packets.
......^C
Received 6 packets, got 0 answers, remaining 1 packets