#!/usr/bin/python
# UDP Exploit Skeleton
# Und3rf10w 
import socket
from sys import exit,argv

if len(argv) < 2:
	print  "UNDEF-TODO: UDP Exploit Skeleton"
	print "Usage: %s <Target IP Address/hostname> <Target Port>" % str(argv[0])
	exit(0)

# evil buffer here
buf = ""

try:
	print "Attacking %s:%s" % (str(argv[1]),int(argv[2]))
	s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
	# This next part depends on whatever the RFC is for what you're trying to 
	# exploit. Up to you to put the 'string' in the right place.
        string = ""
        s.sendto(string, (str(argv[1]), int(argv[2]))) # Sends your evil buffer as 'string' to host:port
except:
	print "ERROR: socket() failed"
	exit(1)

