mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 01:04:03 -05:00
fragattack: tweak eapol-inject forward test
This commit is contained in:
parent
e8b8b1a573
commit
6de61875e7
@ -94,11 +94,14 @@ class PingTest(Test):
|
|||||||
|
|
||||||
class ForwardTest(Test):
|
class ForwardTest(Test):
|
||||||
def __init__(self, eapol=False, dst=None, large=False):
|
def __init__(self, eapol=False, dst=None, large=False):
|
||||||
actions = [Action(Action.Connected, enc=True)]
|
|
||||||
if eapol:
|
if eapol:
|
||||||
actions = [Action(Action.StartAuth, enc=False)]
|
actions = [Action(Action.StartAuth, enc=False)]
|
||||||
|
else:
|
||||||
|
actions = [Action(Action.Connected, enc=True)]
|
||||||
|
|
||||||
if large:
|
if large:
|
||||||
actions += copy.deepcopy(actions)
|
actions += copy.deepcopy(actions)
|
||||||
|
actions += copy.deepcopy(actions)
|
||||||
|
|
||||||
super().__init__(actions)
|
super().__init__(actions)
|
||||||
self.eapol = eapol
|
self.eapol = eapol
|
||||||
@ -124,9 +127,9 @@ class ForwardTest(Test):
|
|||||||
else:
|
else:
|
||||||
request = LLC()/SNAP()/IP()/Raw(self.magic)
|
request = LLC()/SNAP()/IP()/Raw(self.magic)
|
||||||
|
|
||||||
# Wether to send large requests --- TODO FIXME ath9k_htc cannot reliably send large frames...
|
# Wether to send large requests
|
||||||
if self.large:
|
if self.large:
|
||||||
request = request/Raw(b"A" * 1500)
|
request = request/Raw(b"A" * 3000)
|
||||||
|
|
||||||
# Create the actual frame(s)
|
# Create the actual frame(s)
|
||||||
frames = create_fragments(header, request, len(self.actions))
|
frames = create_fragments(header, request, len(self.actions))
|
||||||
|
Loading…
Reference in New Issue
Block a user