mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
injection test: sniff longer in reorder test
This was important to avoid false negatives when testing the MT7612U, specifcally a device with internally an MT7612UN.
This commit is contained in:
parent
8936e2d33e
commit
8092813616
@ -120,7 +120,7 @@ def test_injection_order(sout, sin, ref, strtype, retries=1):
|
|||||||
for p in [p2] * 4 + [p6]:
|
for p in [p2] * 4 + [p6]:
|
||||||
sout.send(RadioTap(present="TXFlags", TXFlags="NOSEQ+ORDER")/p/Raw(label))
|
sout.send(RadioTap(present="TXFlags", TXFlags="NOSEQ+ORDER")/p/Raw(label))
|
||||||
|
|
||||||
packets = sniff(opened_socket=sin, timeout=1.5, lfilter=lambda p: Dot11QoS in p and label in raw(p))
|
packets = sniff(opened_socket=sin, timeout=2.5, lfilter=lambda p: Dot11QoS in p and label in raw(p))
|
||||||
tids = [p[Dot11QoS].TID for p in packets]
|
tids = [p[Dot11QoS].TID for p in packets]
|
||||||
log(STATUS, "Captured TIDs: " + str(tids))
|
log(STATUS, "Captured TIDs: " + str(tids))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user