#!/usr/local/bin/python
#Copyright Luciano Bello
#This file is to be released under the WTFPL licence as part of CWKPF
#http://www.lucianobello.com.ar/webknocking/
#see http://sam.zoy.org/wtfpl/COPYING

import SocketServer
import commands

class RequestHandler(SocketServer.BaseRequestHandler ):
    def handle(self):
        commands.getstatusoutput('pfctl -Tl -f /etc/pf.conf')
        return

server = SocketServer.ThreadingTCPServer(('localhost', 50105), RequestHandler)
server.serve_forever()

