Skip to content

Commit

Permalink
Merge pull request Kkevsterrr#46 from Kkevsterrr/amplification_plugin…
Browse files Browse the repository at this point in the history
…_bug

Fixing bug
  • Loading branch information
snourin authored Oct 31, 2022
2 parents 0cc8296 + 226b299 commit 40dcb7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/amplification/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
import actions.utils
from plugins.plugin import Plugin

import layers.packet

BASEPATH = os.path.dirname(os.path.abspath(__file__))
PROJECT_ROOT = os.path.dirname(os.path.dirname(BASEPATH))

Expand Down Expand Up @@ -129,7 +131,7 @@ def evaluate(self, args, evaluator, population, logger):
IP(dst=dst)/TCP(sport=sport, dport=dport, flags="A", ack=ack, seq=seq+1),
IP(dst=dst)/TCP(sport=sport, dport=dport, flags="PA", ack=ack, seq=seq+1)/Raw(payload)
]
packets = [actions.packet.Packet(packet) for packet in packets]
packets = [layers.packet.Packet(packet) for packet in packets]

packets_to_send = []
try:
Expand Down

0 comments on commit 40dcb7c

Please sign in to comment.