Пример #1
0
 def __init__(self, parent=None):
     super(SubMain, self).__init__(parent)
     #self.create_sys_tray()
     self.MainControl = QVBoxLayout(self)
     self.TabControl = QTabWidget(self)
     self.Tab_Default = QWidget(self)
     self.Tab_Injector = QWidget(self)
     self.Tab_Settings = QWidget(self)
     self.Tab_ApMonitor = QWidget(self)
     #self.TabControl.setTabPosition(QTabWidget.w)
     self.TabControl.addTab(self.Tab_Default, 'Home')
     self.TabControl.addTab(self.Tab_Injector, 'Pump-Proxy')
     self.TabControl.addTab(self.Tab_Settings, 'Pump-Settings')
     self.TabControl.addTab(self.Tab_ApMonitor, 'Pump-Monitor')
     self.ContentTabHome = QVBoxLayout(self.Tab_Default)
     self.ContentTabInject = QVBoxLayout(self.Tab_Injector)
     self.ContentTabsettings = QVBoxLayout(self.Tab_Settings)
     self.ContentTabMonitor = QVBoxLayout(self.Tab_ApMonitor)
     self.Apthreads = {'RougeAP': []}
     self.APclients = {}
     self.ConfigTwin = {
         'ProgCheck': [],
         'AP_iface': None,
         'PortRedirect': None,
         'interface': 'None'
     }
     self.THeaders = {'ip-address': [], 'device': [], 'mac-address': []}
     self.FSettings = frm_Settings()
     self.PopUpPlugins = PopUpPlugins(self.FSettings)
     self.checkPlugins()
     self.intGUI()
Пример #2
0
 def __init__(self, parent=None, window=None, Fsettings=None):
     self.InitialMehtod = window
     super(WifiPumpkin, self).__init__(parent)
     #self.create_sys_tray()
     self.MainControl = QVBoxLayout()
     self.TabControl = QTabWidget()
     self.Tab_Default = QWidget()
     self.Tab_Injector = QWidget()
     self.Tab_Settings = QWidget()
     self.Tab_ApMonitor = QWidget()
     self.FSettings = Fsettings
     #self.TabControl.setTabPosition(QTabWidget.w)
     self.TabControl.addTab(self.Tab_Default, 'Home')
     self.TabControl.addTab(self.Tab_Injector, 'Pump-Proxy')
     self.TabControl.addTab(self.Tab_Settings, 'Pump-Settings')
     self.TabControl.addTab(self.Tab_ApMonitor, 'Pump-Monitor')
     self.ContentTabHome = QVBoxLayout(self.Tab_Default)
     self.ContentTabInject = QVBoxLayout(self.Tab_Injector)
     self.ContentTabsettings = QVBoxLayout(self.Tab_Settings)
     self.ContentTabMonitor = QVBoxLayout(self.Tab_ApMonitor)
     self.Apthreads = {'RougeAP': []}
     self.APclients = {}
     self.AreaDockInfo = {
         ':: URLMonitor::': {
             'active':
             self.FSettings.Settings.get_setting('dockarea',
                                                 'dock_urlmonitor',
                                                 format=bool),
             'path':
             'Logs/AccessPoint/urls.log',
             'thread_name':
             'Netcreds::Urls',
             'error':
             'netcreds no logger found.'
         },
         '::Credentials:: ': {
             'active':
             self.FSettings.Settings.get_setting('dockarea',
                                                 'dock_credencials',
                                                 format=bool),
             'path':
             'Logs/AccessPoint/credentials.log',
             'thread_name':
             'Netcreds::Credentials',
             'error':
             'netcreds no logger found.'
         },
         '::Pumpkin-Phishing:: ': {
             'active':
             self.FSettings.Settings.get_setting('dockarea',
                                                 'dock_phishing',
                                                 format=bool),
             'path':
             'Logs/Phishing/Webclone.log',
             'thread_name':
             'PumpKin-Phishing::Capture',
             'error':
             'Phishing::capture no logger found'
         }
     }
     self.ConfigTwin = {
         'ProgCheck': [],
         'AP_iface': None,
         'PortRedirect': None,
         'interface': 'None'
     }
     self.THeaders = {'ip-address': [], 'device': [], 'mac-address': []}
     self.PopUpPlugins = PopUpPlugins(self.FSettings)
     self.checkPlugins()
     self.intGUI()