Exemplo n.º 1
0
    def __init__(self, parent=0):
        super(DHCPServers, self).__init__()
        self.parent = parent
        self.conf = SuperSettings.getInstance()

        self.loggermanager = LoggerManager.getInstance()
        self.configure_logger()
Exemplo n.º 2
0
    def __init__(self, parent):
        super(ProxyMode, self).__init__()
        self.parent = parent
        self.conf = SuperSettings.getInstance()

        self.handler = None
        self.reactor = None
        self.subreactor = None
        self.defaults_rules = {
            "ssslstrip": [
                "iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port "
                + self.conf.get("settings", "redirect_port")
            ],
            "pumpkinproxy": [
                "iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port {}"
                .format(
                    self.conf.get("proxy_plugins", "pumpkinproxy_config_port"))
            ],
        }
        # set config path plugin
        if self.getConfigINIPath != "":
            self.config = SettingsINI(self.getConfigINIPath)

        self.loggermanager = LoggerManager.getInstance()
        self.configure_logger()
Exemplo n.º 3
0
    def __init__(self, parent, **kwargs):
        super(DNSBase, self).__init__(parent)
        self.parent = parent
        self.conf = SuperSettings.getInstance()

        self.reactor = None
        self.loggermanager = LoggerManager.getInstance()
        self.configure_logger()
Exemplo n.º 4
0
    def __init__(self, parent=None):
        super(MitmMode, self).__init__(parent)
        self.parent = parent
        self.conf = SuperSettings.getInstance()
        self.reactor = None
        self.server = None

        if self.getConfigINIPath != "":
            self.config = SettingsINI(self.getConfigINIPath)

        self.loggermanager = LoggerManager.getInstance()
        self.configure_logger()
Exemplo n.º 5
0
    def __init__(self, parent):
        super(ProxyMode, self).__init__()
        self.parent = parent
        self.conf = SuperSettings.getInstance()

        self.handler = None
        self.reactor = None
        self.subreactor = None
        self.defaults_rules = {}
        self.defaults_rules[self.ID] = []
        # set config path plugin
        if self.getConfigINIPath != "":
            self.config = SettingsINI(self.getConfigINIPath)

        self.loggermanager = LoggerManager.getInstance()
        self.configure_logger()