コード例 #1
0
ファイル: Main.py プロジェクト: apcwowo/WiFi-Pumpkin
 def __init__(self, parent=None):
     super(Initialize, self).__init__(parent)
     self.form_widget = SubMain(self)
     self.FSettings = frm_Settings()
     self.setCentralWidget(self.form_widget)
     self.setWindowTitle("WiFi-Pumpkin v" + version)
     self.loadtheme(self.FSettings.XmlThemeSelected())
コード例 #2
0
ファイル: PackagesUI.py プロジェクト: MGKhKhD/WiFi-Pumpkin
 def __init__(self,parent=None,*args):
     super(PumpkinModule, self).__init__(parent)
     self.setWindowIcon(QIcon('Icons/icon.ico'))
     self.module_network = Refactor
     self.configure      = frm_Settings()
     self.Ftemplates     = frm_PhishingManager()
     self.interfaces     = Refactor.get_interfaces()
コード例 #3
0
 def __init__(self, parent=None):
     super(Initialize, self).__init__(parent)
     self.form_widget = SubMain(self)
     self.FSettings = frm_Settings()
     self.setCentralWidget(self.form_widget)
     self.setWindowTitle('WiFi-Pumpkin v' + version)
     self.loadtheme(self.FSettings.XmlThemeSelected())
コード例 #4
0
ファイル: Main.py プロジェクト: MGKhKhD/WiFi-Pumpkin
 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()
コード例 #5
0
ファイル: PackagesUI.py プロジェクト: webkodex/WiFi-Pumpkin
 def __init__(self, parent=None, *args):
     super(PumpkinModule, self).__init__(parent)
     self.setWindowIcon(QIcon('rsc/icon.ico'))
     self.module_network = Refactor
     self.configure = frm_Settings()
     self.Ftemplates = frm_PhishingManager()
     self.interfaces = Refactor.get_interfaces()
コード例 #6
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()
コード例 #7
0
 def __init__(self, parent=None):
     super(frm_wifideauth, self).__init__(parent)
     self.form_widget = frm_deauth(self)
     self.setCentralWidget(self.form_widget)
     self.setWindowTitle("Deauth Attack wireless Route")
     self.setWindowIcon(QIcon('rsc/icon.ico'))
     self.config = frm_Settings()
     self.loadtheme(self.config.XmlThemeSelected())
コード例 #8
0
 def __init__(self, parent=None):
     super(frm_deauth, self).__init__(parent)
     self.Main           = QVBoxLayout()
     self.xmlcheck       = frm_Settings()
     self.interface      = self.xmlcheck.xmlSettings("interface", "monitor_mode", None, False)
     self.ApsCaptured    = {}
     self.data           = {'Bssid':[], 'Essid':[], 'Channel':[]}
     self.window_qt()
コード例 #9
0
ファイル: UpdateFake.py プロジェクト: Neykl/WiFi-Pumpkin
 def __init__(self, parent=None):
     super(frm_update_attack, self).__init__(parent)
     self.form_widget = frm_WinSoftUp(self)
     self.setCentralWidget(self.form_widget)
     self.setWindowTitle('Windows Update Attack Generator ')
     self.setWindowIcon(QIcon('rsc/icon.ico'))
     self.config = frm_Settings()
     self.main = frm_WinSoftUp()
     self.loadtheme(self.config.XmlThemeSelected())
コード例 #10
0
    def __init__(self, parent=None):
        super(frm_dhcp_main, self).__init__(parent)
        self.form_widget = frm_dhcp_Attack(self)
        self.setCentralWidget(self.form_widget)
        self.setWindowTitle("DHCP Starvation Attack")
        self.setWindowIcon(QIcon('rsc/icon.ico'))

        self.config = frm_Settings()
        self.loadtheme(self.config.XmlThemeSelected())
コード例 #11
0
    def __init__(self, parent=None):
        super(frm_dhcp_main, self).__init__(parent)
        self.form_widget = frm_dhcp_Attack(self)
        self.setCentralWidget(self.form_widget)
        self.setWindowTitle("DHCP Starvation Attack")
        self.setWindowIcon(QIcon('rsc/icon.ico'))

        self.config = frm_Settings()
        self.loadtheme(self.config.XmlThemeSelected())
コード例 #12
0
ファイル: UpdateFake.py プロジェクト: KorayAgaya/WiFi-Pumpkin
 def __init__(self, parent=None):
     super(frm_update_attack, self).__init__(parent)
     self.form_widget = frm_WinSoftUp(self)
     self.setCentralWidget(self.form_widget)
     self.setWindowTitle('Windows Update Attack Generator ')
     self.setWindowIcon(QIcon('rsc/icon.ico'))
     self.config = frm_Settings()
     self.main = frm_WinSoftUp()
     self.loadtheme(self.config.XmlThemeSelected())
コード例 #13
0
 def __init__(self, parent=None):
     super(frm_get_credentials, self).__init__(parent)
     self.label = QLabel()
     self.Main = QVBoxLayout(self)
     self.setGeometry(0, 0, 450, 200)
     self.center()
     self.owd = getcwd()
     self.config = frm_Settings()
     self.loadtheme(self.config.XmlThemeSelected())
     self.Qui()
コード例 #14
0
 def __init__(self, parent=None):
     super(frm_NetCredsLogger, self).__init__(parent)
     self.setGeometry(0, 0, 550, 400)
     self.Main = QVBoxLayout(self)
     self.owd = getcwd()
     self.thread = []
     self.config = frm_Settings()
     self.loadtheme(self.config.XmlThemeSelected())
     self.center()
     self.Qui()
コード例 #15
0
ファイル: Privilege.py プロジェクト: KorayAgaya/WiFi-Pumpkin
 def __init__(self, parent = None):
     super(frm_privelege, self).__init__(parent)
     self.setWindowTitle("Privilege Authentication")
     self.Main = QVBoxLayout()
     self.frm = QFormLayout()
     self.setGeometry(0, 0, 270, 100)
     self.center()
     self.config = frm_Settings()
     self.loadtheme(self.config.XmlThemeSelected())
     self.Qui()
コード例 #16
0
 def __init__(self, parent=None):
     super(frm_dns2proxy, self).__init__(parent)
     self.setGeometry(0, 0, 400, 400)
     self.Main = QVBoxLayout(self)
     self.owd = getcwd()
     self.thread = []
     self.config = frm_Settings()
     self.loadtheme(self.config.XmlThemeSelected())
     self.center()
     self.Qui()
コード例 #17
0
 def __init__(self, parent=None):
     super(frm_privelege, self).__init__(parent)
     self.setWindowTitle("Privilege Authentication")
     self.Main = QVBoxLayout()
     self.frm = QFormLayout()
     self.setGeometry(0, 0, 270, 100)
     self.center()
     self.config = frm_Settings()
     self.loadtheme(self.config.XmlThemeSelected())
     self.Qui()
コード例 #18
0
 def __init__(self, parent=None):
     super(frm_PMonitor, self).__init__(parent)
     self.Main       = QVBoxLayout()
     self.config     = frm_Settings()
     self.Requests   = []
     self.data       = {'Devices':[],'MacAddress': [], 'SSIDs':[]}
     self.interface  = str(self.config.xmlSettings("interface", "monitor_mode", None, False))
     self.loadtheme(self.config.XmlThemeSelected())
     self.setWindowTitle("Probe Request wifi Monitor")
     self.setWindowIcon(QIcon('rsc/icon.ico'))
     self.setupGUI()
コード例 #19
0
 def __init__(self, version, parent=None):
     super(frm_githubUpdate, self).__init__(parent)
     self.setWindowTitle("WiFi Pumpkin Software Update")
     self.config = frm_Settings()
     self.version = version
     self.loadtheme(self.config.XmlThemeSelected())
     self.UrlDownloadCommits = \
     'https://raw.githubusercontent.com/P0cL4bs/WiFi-Pumpkin/master/Core/config/Lcommits.cfg'
     self.PathUrlRcommits = 'Core/config/Rcommits.cfg'
     self.PathUrlLcommits = 'Core/config/Lcommits.cfg'
     self.center()
     self.GUI()
コード例 #20
0
 def __init__(self, parent=None):
     super(frm_PMonitor, self).__init__(parent)
     self.Main = QVBoxLayout()
     self.config = frm_Settings()
     self.Requests = []
     self.data = {'Devices': [], 'MacAddress': [], 'SSIDs': []}
     self.interface = str(
         self.config.xmlSettings("interface", "monitor_mode", None, False))
     self.loadtheme(self.config.XmlThemeSelected())
     self.setWindowTitle("Probe Request wifi Monitor")
     self.setWindowIcon(QIcon('rsc/icon.ico'))
     self.setupGUI()
コード例 #21
0
 def __init__(self, parent=None):
     super(frm_PhishingManager, self).__init__(parent)
     self.label = QLabel()
     self.Main = QVBoxLayout(self)
     self.owd = getcwd()
     self.config = frm_Settings()
     self.setWindowTitle('Phishing Manager')
     self.ThreadTemplates = {'Server': []}
     self.setGeometry(0, 0, 630, 100)
     self.loadtheme(self.config.XmlThemeSelected())
     self.center()
     self.UI()
コード例 #22
0
 def __init__(self, parent = None):
     super(frm_PhishingManager, self).__init__(parent)
     self.label = QLabel()
     self.Main  = QVBoxLayout(self)
     self.owd   = getcwd()
     self.config = frm_Settings()
     self.setWindowTitle('Phishing Manager')
     self.ThreadTemplates = {'Server':[]}
     self.setGeometry(0, 0, 630, 100)
     self.loadtheme(self.config.XmlThemeSelected())
     self.center()
     self.UI()
コード例 #23
0
ファイル: Main.py プロジェクト: apcwowo/WiFi-Pumpkin
 def __init__(self, parent=None):
     super(SubMain, self).__init__(parent)
     # self.create_sys_tray()
     self.Main = QVBoxLayout()
     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.setGeometry(0, 0, 300, 400)
     self.checkPlugins()
     self.intGUI()
コード例 #24
0
ファイル: update.py プロジェクト: KorayAgaya/WiFi-Pumpkin
 def __init__(self, version, parent=None):
     super(frm_githubUpdate, self).__init__(parent)
     self.setWindowTitle("WiFi Pumpkin Software Update")
     self.config = frm_Settings()
     self.version = version
     self.loadtheme(self.config.XmlThemeSelected())
     self.UrlDownloadCommits = (
         "https://raw.githubusercontent.com/P0cL4bs/WiFi-Pumpkin/master/Core/config/Lcommits.cfg"
     )
     self.PathUrlRcommits = "Core/config/Rcommits.cfg"
     self.PathUrlLcommits = "Core/config/Lcommits.cfg"
     self.center()
     self.GUI()
コード例 #25
0
 def __init__(self, parent=None):
     super(frm_Arp_Poison, self).__init__(parent)
     self.setWindowTitle('Arp Posion Attack ')
     self.setWindowIcon(QIcon('rsc/icon.ico'))
     self.Main = QVBoxLayout()
     self.owd = getcwd()
     self.control = False
     self.interfaces = Refactor.get_interfaces()
     self.configure = frm_Settings()
     self.module_network = Refactor
     self.loadtheme(self.configure.XmlThemeSelected())
     self.data = {'IPaddress': [], 'Hostname': [], 'MacAddress': []}
     self.ThreadDirc = {'Arp_posion': []}
     global threadloading
     self.GUI()
コード例 #26
0
ファイル: Main.py プロジェクト: Neykl/WiFi-Pumpkin
 def __init__(self, parent = None):
     super(SubMain, self).__init__(parent)
     #self.create_sys_tray()
     self.Main           = QVBoxLayout()
     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.setGeometry(0, 0, 300, 400)
     self.checkPlugins()
     self.intGUI()
コード例 #27
0
ファイル: Main.py プロジェクト: KorayAgaya/WiFi-Pumpkin
 def __init__(self, parent = None):
     super(SubMain, self).__init__(parent)
     #self.create_sys_tray()
     self.Main           = QVBoxLayout()
     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.setGeometry(0, 0, 300, 400)
     self.checkPlugins()
     self.intGUI()
コード例 #28
0
ファイル: ArpPosion.py プロジェクト: apcwowo/WiFi-Pumpkin
 def __init__(self, parent=None):
     super(frm_Arp_Poison, self).__init__(parent)
     self.setWindowTitle('Arp Posion Attack ')
     self.setWindowIcon(QIcon('rsc/icon.ico'))
     self.Main           = QVBoxLayout()
     self.owd            = getcwd()
     self.control        = False
     self.interfaces     = Refactor.get_interfaces()
     self.configure      = frm_Settings()
     self.Ftemplates = frm_PhishingManager()
     self.module_network = Refactor
     self.loadtheme(self.configure.XmlThemeSelected())
     self.data = {'IPaddress':[], 'Hostname':[], 'MacAddress':[]}
     self.ThreadDirc = {'Arp_posion':[]}
     global threadloading
     self.GUI()
コード例 #29
0
ファイル: about.py プロジェクト: KorayAgaya/WiFi-Pumpkin
 def __init__(self,author,emails,version,
     update,license,desc, parent = None):
     super(frmAbout, self).__init__(parent)
     self.author      = author
     self.emails      = emails
     self.version     = version
     self.update      = update
     self.license     = license
     self.desc        = desc
     self.setWindowTitle("About WiFi-Pumpkin")
     self.Main = QVBoxLayout()
     self.frm = QFormLayout()
     self.setGeometry(0, 0, 400, 300)
     self.center()
     self.config = frm_Settings()
     self.loadtheme(self.config.XmlThemeSelected())
     self.Qui_update()
コード例 #30
0
ファイル: Macchanger.py プロジェクト: fo0nikens/WiFi-Pumpkin
    def __init__(self, parent=None):
        super(frm_mac_generator, self).__init__(parent)
        self.setWindowIcon(QIcon('rsc/icon.ico'))
        self.setWindowIcon(QIcon('Modules/icon.ico'))
        self.setWindowTitle("MAC Address Generator")
        self.Main = QVBoxLayout()
        self.prefix = [ 0x00, 0xCB, 0x01,0x03 ,\
                        0x84,0x78,0xAC, 0x88,0xD3,\
                        0x7B, 0x8C,0x7C,0xB5, 0x90,0x99,0x16, \
                        0x9C, 0x6A ,0xBE , 0x55, 0x12, 0x6C , 0xD2,\
                        0x8b, 0xDA, 0xF1, 0x9c , 0x20 , 0x3A, 0x4A,\
                        0x2F, 0x31, 0x32, 0x1D, 0x5F, 0x70, 0x5A,\
                        0x5B, 0x5C, 0x63, 0x4F, 0x3F, 0x5F, 0x9E]

        self.config = frm_Settings()
        self.loadtheme(self.config.XmlThemeSelected())
        self.MacGUI()
コード例 #31
0
ファイル: Macchanger.py プロジェクト: KorayAgaya/WiFi-Pumpkin
    def __init__(self, parent=None):
        super(frm_mac_generator, self).__init__(parent)
        self.setWindowIcon(QIcon('rsc/icon.ico'))
        self.setWindowIcon(QIcon('Modules/icon.ico'))
        self.setWindowTitle("MAC Address Generator")
        self.Main = QVBoxLayout()
        self.prefix = [ 0x00, 0xCB, 0x01,0x03 ,\
                        0x84,0x78,0xAC, 0x88,0xD3,\
                        0x7B, 0x8C,0x7C,0xB5, 0x90,0x99,0x16, \
                        0x9C, 0x6A ,0xBE , 0x55, 0x12, 0x6C , 0xD2,\
                        0x8b, 0xDA, 0xF1, 0x9c , 0x20 , 0x3A, 0x4A,\
                        0x2F, 0x31, 0x32, 0x1D, 0x5F, 0x70, 0x5A,\
                        0x5B, 0x5C, 0x63, 0x4F, 0x3F, 0x5F, 0x9E]

        self.config = frm_Settings()
        self.loadtheme(self.config.XmlThemeSelected())
        self.MacGUI()
コード例 #32
0
    def __init__(self, parent=None):
        super(PumpkinSettings, self).__init__(parent)
        self.SettingsDHCP = {}
        self.FSettings = frm_Settings()
        self.mainLayout = QFormLayout()
        self.GroupDHCP = QGroupBox()
        self.layoutDHCP = QFormLayout()
        self.layoutbuttons = QHBoxLayout()
        self.btnDefault = QPushButton('default')
        self.btnSave = QPushButton('save settings')
        self.btnSave.setIcon(QIcon('Icons/export.png'))
        self.btnDefault.setIcon(QIcon('Icons/settings.png'))
        self.leaseTime_def = QLineEdit(
            self.FSettings.xmlSettings('leasetimeDef', 'value', None))
        self.leaseTime_Max = QLineEdit(
            self.FSettings.xmlSettings('leasetimeMax', 'value', None))
        self.netmask = QLineEdit(
            self.FSettings.xmlSettings('netmask', 'value', None))
        self.range_dhcp = QLineEdit(
            self.FSettings.xmlSettings('range', 'value', None))
        self.route = QLineEdit(
            self.FSettings.xmlSettings('router', 'value', None))
        self.subnet = QLineEdit(
            self.FSettings.xmlSettings('subnet', 'value', None))
        self.broadcast = QLineEdit(
            self.FSettings.xmlSettings('broadcast', 'value', None))
        self.GroupDHCP.setTitle('DHCP-Settings')
        self.GroupDHCP.setLayout(self.layoutDHCP)
        self.layoutDHCP.addRow('default-lease-time', self.leaseTime_def)
        self.layoutDHCP.addRow('max-lease-time', self.leaseTime_Max)
        self.layoutDHCP.addRow('subnet', self.subnet)
        self.layoutDHCP.addRow('router', self.route)
        self.layoutDHCP.addRow('netmask', self.netmask)
        self.layoutDHCP.addRow('broadcast-address', self.broadcast)
        self.layoutDHCP.addRow('range-dhcp', self.range_dhcp)
        # layout add
        self.layoutbuttons.addWidget(self.btnSave)
        self.layoutbuttons.addWidget(self.btnDefault)
        self.layoutDHCP.addRow(self.layoutbuttons)

        # connects
        self.btnDefault.clicked.connect(self.setdefaultSettings)
        self.btnSave.clicked.connect(self.savesettingsDHCP)
        self.mainLayout.addRow(self.GroupDHCP)
        self.addLayout(self.mainLayout)
コード例 #33
0
ファイル: TabModels.py プロジェクト: MGKhKhD/WiFi-Pumpkin
    def __init__(self, parent = None):
        super(PumpkinMonitor, self).__init__(parent)
        self.FSettings      = frm_Settings()
        self.Home           = QFormLayout()
        self.GroupMonitor   = QGroupBox()
        self.MonitorTreeView= QTreeView()
        self.MonitorTreeView.setSelectionBehavior(QAbstractItemView.SelectRows)
        self.MonitorTreeView.setFixedHeight(330)
        self.model = QStandardItemModel()
        self.model.setHorizontalHeaderLabels(['Devices','Informations'])
        self.MonitorTreeView.setModel(self.model)
        self.MonitorTreeView.setUniformRowHeights(True)
        self.MonitorTreeView.setColumnWidth(0,130)

        self.GroupMonitor.setTitle('Pump-Monitor::')
        self.MonitorLayout = QFormLayout()
        self.MonitorLayout.addRow(self.MonitorTreeView)
        self.GroupMonitor.setLayout(self.MonitorLayout)
        self.Home.addRow(self.GroupMonitor)
        self.addLayout(self.Home)
コード例 #34
0
    def __init__(self, parent=None):
        super(PumpkinMonitor, self).__init__(parent)
        self.FSettings = frm_Settings()
        self.Home = QFormLayout()
        self.GroupMonitor = QGroupBox()
        self.MonitorTreeView = QTreeView()
        self.MonitorTreeView.setSelectionBehavior(QAbstractItemView.SelectRows)
        self.MonitorTreeView.setFixedHeight(330)
        self.model = QStandardItemModel()
        self.model.setHorizontalHeaderLabels(['Devices', 'Informations'])
        self.MonitorTreeView.setModel(self.model)
        self.MonitorTreeView.setUniformRowHeights(True)
        self.MonitorTreeView.setColumnWidth(0, 130)

        self.GroupMonitor.setTitle('Pump-Monitor::')
        self.MonitorLayout = QFormLayout()
        self.MonitorLayout.addRow(self.MonitorTreeView)
        self.GroupMonitor.setLayout(self.MonitorLayout)
        self.Home.addRow(self.GroupMonitor)
        self.addLayout(self.Home)
コード例 #35
0
ファイル: TabModels.py プロジェクト: MGKhKhD/WiFi-Pumpkin
    def __init__(self, parent = None):
        super(PumpkinSettings, self).__init__(parent)
        self.SettingsDHCP  = {}
        self.FSettings     = frm_Settings()
        self.mainLayout    = QFormLayout()
        self.GroupDHCP     = QGroupBox()
        self.layoutDHCP    = QFormLayout()
        self.layoutbuttons = QHBoxLayout()
        self.btnDefault    = QPushButton('default')
        self.btnSave       = QPushButton('save settings')
        self.btnSave.setIcon(QIcon('Icons/export.png'))
        self.btnDefault.setIcon(QIcon('Icons/settings.png'))
        self.leaseTime_def = QLineEdit(self.FSettings.xmlSettings('leasetimeDef', 'value',None))
        self.leaseTime_Max = QLineEdit(self.FSettings.xmlSettings('leasetimeMax', 'value',None))
        self.netmask       = QLineEdit(self.FSettings.xmlSettings('netmask', 'value',None))
        self.range_dhcp    = QLineEdit(self.FSettings.xmlSettings('range', 'value',None))
        self.route         = QLineEdit(self.FSettings.xmlSettings('router', 'value',None))
        self.subnet        = QLineEdit(self.FSettings.xmlSettings('subnet', 'value',None))
        self.broadcast     = QLineEdit(self.FSettings.xmlSettings('broadcast', 'value',None))
        self.GroupDHCP.setTitle('DHCP-Settings')
        self.GroupDHCP.setLayout(self.layoutDHCP)
        self.layoutDHCP.addRow('default-lease-time',self.leaseTime_def)
        self.layoutDHCP.addRow('max-lease-time',self.leaseTime_Max)
        self.layoutDHCP.addRow('subnet',self.subnet)
        self.layoutDHCP.addRow('router',self.route)
        self.layoutDHCP.addRow('netmask',self.netmask)
        self.layoutDHCP.addRow('broadcast-address',self.broadcast)
        self.layoutDHCP.addRow('range-dhcp',self.range_dhcp)
        # layout add
        self.layoutbuttons.addWidget(self.btnSave)
        self.layoutbuttons.addWidget(self.btnDefault)
        self.layoutDHCP.addRow(self.layoutbuttons)

        # connects
        self.btnDefault.clicked.connect(self.setdefaultSettings)
        self.btnSave.clicked.connect(self.savesettingsDHCP)
        self.mainLayout.addRow(self.GroupDHCP)
        self.addLayout(self.mainLayout)
コード例 #36
0
ファイル: about.py プロジェクト: fo0nikens/WiFi-Pumpkin
 def __init__(self,
              author,
              emails,
              version,
              update,
              license,
              desc,
              parent=None):
     super(frmAbout, self).__init__(parent)
     self.author = author
     self.emails = emails
     self.version = version
     self.update = update
     self.license = license
     self.desc = desc
     self.setWindowTitle("About WiFi-Pumpkin")
     self.Main = QVBoxLayout()
     self.frm = QFormLayout()
     self.setGeometry(0, 0, 400, 300)
     self.center()
     self.config = frm_Settings()
     self.loadtheme(self.config.XmlThemeSelected())
     self.Qui_update()
コード例 #37
0
ファイル: TabModels.py プロジェクト: MGKhKhD/WiFi-Pumpkin
    def __init__(self,popup,parent = None):
        super(PumpkinProxy, self).__init__(parent)
        self.popup      = popup
        self.urlinjected= []
        self.FSettings  = frm_Settings()
        self.Home       = QFormLayout()
        self.statusbar  = QStatusBar()
        self.lname      = QLabel('Proxy::scripts::')
        self.lstatus    = QLabel('')
        self.argsLabel  = QLabel('')
        self.hBox       = QHBoxLayout()
        self.hBoxargs   = QHBoxLayout()
        self.btnLoader  = QPushButton('Reload')
        self.btnEnable  = QPushButton('Enable')
        self.btncancel  = QPushButton('Cancel')
        self.btnbrownser= QPushButton('Browser')
        self.comboxBox  = QComboBox()
        self.log_inject = QListWidget()
        self.docScripts = QTextEdit()
        self.argsScripts= QLineEdit()
        self.btncancel.setIcon(QIcon('Icons/cancel.png'))
        self.btnLoader.setIcon(QIcon('Icons/search.png'))
        self.btnEnable.setIcon(QIcon('Icons/accept.png'))
        self.btnbrownser.setIcon(QIcon("Icons/open.png"))
        self.statusbar.addWidget(self.lname)
        self.statusbar.addWidget(self.lstatus)
        self.docScripts.setFixedHeight(40)
        self.statusInjection(False)
        self.argsScripts.setEnabled(False)
        self.btnbrownser.setEnabled(False)

        # group settings
        self.GroupSettings  = QGroupBox()
        self.GroupSettings.setTitle('Settings:')
        self.SettingsLayout = QFormLayout()
        self.hBox.addWidget(self.comboxBox)
        self.hBox.addWidget(self.btnLoader)
        self.hBox.addWidget(self.btnEnable)
        self.hBox.addWidget(self.btncancel)
        self.hBoxargs.addWidget(self.argsLabel)
        self.hBoxargs.addWidget(self.argsScripts)
        self.hBoxargs.addWidget(self.btnbrownser)
        self.SettingsLayout.addRow(self.hBox)
        self.SettingsLayout.addRow(self.hBoxargs)
        self.GroupSettings.setLayout(self.SettingsLayout)
        #group logger
        self.GroupLogger  = QGroupBox()
        self.GroupLogger.setTitle('Logger Injection:')
        self.LoggerLayout = QFormLayout()
        self.LoggerLayout.addRow(self.log_inject)
        self.GroupLogger.setLayout(self.LoggerLayout)

        #group descriptions
        self.GroupDoc  = QGroupBox()
        self.GroupDoc.setTitle('Description:')
        self.DocLayout = QFormLayout()
        self.DocLayout.addRow(self.docScripts)
        self.GroupDoc.setLayout(self.DocLayout)

        #connections
        self.SearchProxyPlugins()
        self.readDocScripts('html_injector')
        self.btnLoader.clicked.connect(self.SearchProxyPlugins)
        self.connect(self.comboxBox,SIGNAL('currentIndexChanged(QString)'),self.readDocScripts)
        self.btnEnable.clicked.connect(self.setPluginsActivated)
        self.btncancel.clicked.connect(self.unsetPluginsConf)
        self.btnbrownser.clicked.connect(self.get_filenameToInjection)
        # add widgets
        self.Home.addRow(self.GroupSettings)
        self.Home.addRow(self.GroupDoc)
        self.Home.addRow(self.GroupLogger)
        self.Home.addRow(self.statusbar)
        self.addLayout(self.Home)
コード例 #38
0
    def __init__(self, popup, parent=None):
        super(PumpkinProxy, self).__init__(parent)
        self.popup = popup
        self.urlinjected = []
        self.FSettings = frm_Settings()
        self.Home = QFormLayout()
        self.statusbar = QStatusBar()
        self.lname = QLabel('Proxy::scripts::')
        self.lstatus = QLabel('')
        self.argsLabel = QLabel('')
        self.hBox = QHBoxLayout()
        self.hBoxargs = QHBoxLayout()
        self.btnLoader = QPushButton('Reload')
        self.btnEnable = QPushButton('Enable')
        self.btncancel = QPushButton('Cancel')
        self.btnbrownser = QPushButton('Browser')
        self.comboxBox = QComboBox()
        self.log_inject = QListWidget()
        self.docScripts = QTextEdit()
        self.argsScripts = QLineEdit()
        self.btncancel.setIcon(QIcon('Icons/cancel.png'))
        self.btnLoader.setIcon(QIcon('Icons/search.png'))
        self.btnEnable.setIcon(QIcon('Icons/accept.png'))
        self.btnbrownser.setIcon(QIcon("Icons/open.png"))
        self.statusbar.addWidget(self.lname)
        self.statusbar.addWidget(self.lstatus)
        self.docScripts.setFixedHeight(40)
        self.statusInjection(False)
        self.argsScripts.setEnabled(False)
        self.btnbrownser.setEnabled(False)

        # group settings
        self.GroupSettings = QGroupBox()
        self.GroupSettings.setTitle('Settings:')
        self.SettingsLayout = QFormLayout()
        self.hBox.addWidget(self.comboxBox)
        self.hBox.addWidget(self.btnLoader)
        self.hBox.addWidget(self.btnEnable)
        self.hBox.addWidget(self.btncancel)
        self.hBoxargs.addWidget(self.argsLabel)
        self.hBoxargs.addWidget(self.argsScripts)
        self.hBoxargs.addWidget(self.btnbrownser)
        self.SettingsLayout.addRow(self.hBox)
        self.SettingsLayout.addRow(self.hBoxargs)
        self.GroupSettings.setLayout(self.SettingsLayout)
        #group logger
        self.GroupLogger = QGroupBox()
        self.GroupLogger.setTitle('Logger Injection:')
        self.LoggerLayout = QFormLayout()
        self.LoggerLayout.addRow(self.log_inject)
        self.GroupLogger.setLayout(self.LoggerLayout)

        #group descriptions
        self.GroupDoc = QGroupBox()
        self.GroupDoc.setTitle('Description:')
        self.DocLayout = QFormLayout()
        self.DocLayout.addRow(self.docScripts)
        self.GroupDoc.setLayout(self.DocLayout)

        #connections
        self.SearchProxyPlugins()
        self.readDocScripts('html_injector')
        self.btnLoader.clicked.connect(self.SearchProxyPlugins)
        self.connect(self.comboxBox, SIGNAL('currentIndexChanged(QString)'),
                     self.readDocScripts)
        self.btnEnable.clicked.connect(self.setPluginsActivated)
        self.btncancel.clicked.connect(self.unsetPluginsConf)
        self.btnbrownser.clicked.connect(self.get_filenameToInjection)
        # add widgets
        self.Home.addRow(self.GroupSettings)
        self.Home.addRow(self.GroupDoc)
        self.Home.addRow(self.GroupLogger)
        self.Home.addRow(self.statusbar)
        self.addLayout(self.Home)