Exemple #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()
Exemple #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()
Exemple #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()
Exemple #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()
    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()