def InitUI(self): panel = wx.Panel(self) # ~ panel.SetBackgroundColour('#4f5049') # ~ wless_commands.get_monitoring_interfaces() self.APname = wx.TextCtrl(panel, -1, "Enter the name of Fake AP", size=(250, 30), pos=(10, 20)) self.APpasswd = wx.TextCtrl(panel, -1, "Enter the Password of Fake AP", size=(250, 30), pos=(10, 55)) self.nDeviceList = wx.ComboBox(panel, -1, value='Select Attack Interface', size=(200, 30), pos=(10, 115), choices=wless_commands.get_net_devices()) self.nDeviceList2 = wx.ComboBox(panel, -1, value='Select Internet Interface', size=(200, 30), pos=(10, 155), choices=wless_commands.get_net_devices()) self.actionButton = wx.Button(panel, -1, label='Create Fake AP', pos=(10, 210)) self.stopButton = wx.Button(panel, -1, label='Stop Fake AP', pos=(130, 210)) self.sniffButton = wx.Button(panel, -1, label='MiTM', pos=(10, 250)) self.victimIPButton = wx.Button(panel, -1, label='Victim IP', pos=(130, 250)) self.closeButton = wx.Button(panel, -1, label='Close', pos=(250, 250)) self.myLabel = wx.StaticText(panel, -1, label='', pos=(10, 180)) self.actionButton.Bind(wx.EVT_BUTTON, self.executeCommand) self.stopButton.Bind(wx.EVT_BUTTON, self.stopfakeap) self.closeButton.Bind(wx.EVT_BUTTON, self.closeMe) self.sniffButton.Bind(wx.EVT_BUTTON, self.sniffdata) self.victimIPButton.Bind(wx.EVT_BUTTON, self.getVictimIPaddress)
def InitUI(self): panel = wx.Panel(self) # ~ panel.SetBackgroundColour('#4f5049') # ~ wless_commands.get_monitoring_interfaces() self.APname = wx.TextCtrl(panel, -1, "Enter the name of Fake AP", size=(250, 30), pos=(10, 20)) self.nDeviceList = wx.ComboBox(panel, -1, value='Select Attack Interface', size=(200, 30), pos=(10, 115), choices=wless_commands.get_net_devices()) self.nDeviceList2 = wx.ComboBox(panel, -1, value='Select Internet Interface', size=(200, 30), pos=(10, 155), choices=wless_commands.get_net_devices()) self.actionButton = wx.Button(panel, -1, label='Create Fake AP', pos=(10, 210)) self.stopButton = wx.Button(panel, -1, label='Stop Fake AP', pos=(130, 210)) self.sniffButton = wx.Button(panel, -1, label='MiTM', pos=(10, 250)) self.victimIPButton = wx.Button(panel, -1, label='Victim IP', pos=(130, 250)) self.closeButton = wx.Button(panel, -1, label='Close', pos=(250, 250)) self.myLabel = wx.StaticText(panel, -1, label='', pos=(10, 180)) self.actionButton.Bind(wx.EVT_BUTTON, self.executeCommand) self.stopButton.Bind(wx.EVT_BUTTON, self.stopfakeap) self.closeButton.Bind(wx.EVT_BUTTON, self.closeMe) self.sniffButton.Bind(wx.EVT_BUTTON, self.sniffdata) self.victimIPButton.Bind(wx.EVT_BUTTON, self.getVictimIPaddress)
def InitUI(self): panel = wx.Panel(self) # ~ panel.SetBackgroundColour('#4f5049') if not os.path.exists('./Modules/Logs/sniffer/deauthSSID.txt'): os.system('touch ./Modules/Logs/sniffer/deauthSSID.txt') # ~ myfiles = open('./Modules/Logs/sniffer/deauthSSID.txt', 'r').readlines() ssid_victim = ','.join(myfiles).split(',') # ~ wless_commands.get_monitoring_interfaces() self.comboBox = wx.ComboBox(panel, -1, value='Select SSID', size=(400, 50), pos=(10, 50), choices=ssid_victim) self.valueSlider = wx.Slider(panel, -1, minValue=10, maxValue=200, pos=(10, 130), size=(400, 50), style=wx.SL_HORIZONTAL | wx.SL_AUTOTICKS | wx.SL_LABELS) self.nDeviceList = wx.ComboBox(panel, -1, value='Select Net Interface', size=(200, 30), pos=(10, 235), choices=wless_commands.get_net_devices()) self.actionButton = wx.Button(panel, -1, label='Deauthenticate SSID', pos=(250, 235)) self.closeButton = wx.Button(panel, -1, label='Close', pos=(250, 275)) self.myLabel = wx.StaticText(panel, -1, label='', pos=(10, 270)) self.actionButton.Bind(wx.EVT_BUTTON, self.executeCommand) self.closeButton.Bind(wx.EVT_BUTTON, self.closeMe)
def InitUI(self): panel = wx.Panel(self) # ~ panel.SetBackgroundColour('#4f5049') # ~ # ~ wless_commands.get_monitoring_interfaces() # ~ self.comboBox = wx.ComboBox(panel, -1, value='Select SSID', size=(400, 50), pos=(10, 50), choices = ssid_victim) # ~ self.valueSlider = wx.Slider(panel, -1, minValue=10, maxValue=200, pos=(10,130), size=(400,50),style=wx.SL_HORIZONTAL|wx.SL_AUTOTICKS|wx.SL_LABELS) self.nDeviceList = wx.ComboBox(panel, -1, value='Select Net Interface', size=(200, 30), pos=(10, 90), choices=wless_commands.get_net_devices()) self.filename = wx.TextCtrl(panel, -1, "File name", size=(250, 30), pos=(10, 20)) self.actionButton = wx.Button(panel, -1, label='Start Mapping', pos=(10, 135)) self.stopActionButton = wx.Button(panel, -1, label='Stop Mapping', pos=(150, 135)) self.generateImage = wx.Button(panel, -1, label='Generate PNG MAP', pos=(10, 175)) self.closeButton = wx.Button(panel, -1, label='Close', pos=(162, 175)) # ~ self.myLabel = wx.StaticText(panel, -1, label='', pos=(10, 210)) # ~ # ~ # ~ self.actionButton.Bind(wx.EVT_BUTTON, self.executeCommand) self.stopActionButton.Bind(wx.EVT_BUTTON, self.stopExecuteCommand) self.closeButton.Bind(wx.EVT_BUTTON, self.closeMe) self.generateImage.Bind(wx.EVT_BUTTON, self.generateImageAction)
def InitUI(self): panel = wx.Panel(self) # ~ panel.SetBackgroundColour('#4f5049') if not os.path.exists('./Modules/deauthSSID.txt'): os.system('touch ./Modules/deauthSSID.txt') # ~ myfiles = open('./Modules/deauthSSID.txt', 'r').readlines() ssid_victim = ','.join(myfiles).split(',') # ~ wless_commands.get_monitoring_interfaces() self.comboBox = wx.ComboBox(panel, -1, value='Select SSID', size=(400, 50), pos=(10, 50), choices=ssid_victim) self.valueSlider = wx.Slider(panel, -1, minValue=10, maxValue=200, pos=(10, 130), size=(400, 50), style=wx.SL_HORIZONTAL | wx.SL_AUTOTICKS | wx.SL_LABELS) self.nDeviceList = wx.ComboBox(panel, -1, value='Select Net Interface', size=(200, 30), pos=(10, 235), choices=wless_commands.get_net_devices()) self.actionButton = wx.Button(panel, -1, label='Deauthenticate SSID', pos=(250, 235)) self.closeButton = wx.Button(panel, -1, label='Close', pos=(250, 275)) self.myLabel = wx.StaticText(panel, -1, label='', pos=(10, 270)) self.actionButton.Bind(wx.EVT_BUTTON, self.executeCommand) self.closeButton.Bind(wx.EVT_BUTTON, self.closeMe)
def InitUI(self): panel = wx.Panel(self) # ~ panel.SetBackgroundColour('#4f5049') # ~ wless_commands.get_monitoring_interfaces() self.myLabel = wx.StaticText(panel, -1, label='Currently, fully page download automation is not fully implemented.\nPlease save the login page as /var/www/login.html or /var/www/html/login.html \nChange permission to 755 for all web contents you downloaded\nAnd press the Modify button. \nAfter modifying the fields to capture click on attack to proceed with the attack', pos=(10, 20)) self.modifyButton = wx.Button(panel, -1, label='Modify the webpage', pos=(10, 135)) self.username = wx.TextCtrl(panel, -1, "Username variable to capture", size=(200, 30), pos=(520, 135)) self.password = wx.TextCtrl(panel, -1, "Password variable to capture", size=(200, 30), pos=(520, 200)) self.mylistbox = wx.ListBox(panel, -1, pos=(160, 135), size=(350, 100), choices='') self.SSID = wx.TextCtrl(panel, -1, "SSID Name", size=(200, 30), pos=(10, 265)) self.sniffButton = wx.Button(panel, -1, label='MiTM Attack', pos=(10, 350)) self.victimIPButton = wx.Button(panel, -1, label='Get Victim IP', pos=(150, 350)) self.nDeviceList = wx.ComboBox(panel, -1, value='Select Attack Interface', size=(200, 30), pos=(250, 265), choices=wless_commands.get_net_devices()) self.nDeviceList2 = wx.ComboBox(panel, -1, value='Select Internet Interface', size=(200, 30), pos=(522, 265), choices=wless_commands.get_net_devices()) self.startButton = wx.Button(panel, -1, label='Start Attack', pos=(10, 175)) self.stopButton = wx.Button(panel, -1, label='Stop Attack', pos=(10, 220)) self.closeButton = wx.Button(panel, -1, label='Quit', pos=(10, 470)) # ~ self.myLabel = wx.StaticText(panel, -1, label='', pos=(10, 180)) self.startButton.Bind(wx.EVT_BUTTON, self.executeCommand) self.stopButton.Bind(wx.EVT_BUTTON, self.stopfakeap) self.closeButton.Bind(wx.EVT_BUTTON, self.closeMe) self.modifyButton.Bind(wx.EVT_BUTTON, self.modifyContent) self.sniffButton.Bind(wx.EVT_BUTTON, self.sniffdata) self.victimIPButton.Bind(wx.EVT_BUTTON, self.getVictimIPaddress)
def InitUI(self): panel = wx.Panel(self) panel.SetBackgroundColour('#4f5049') self.APname = wx.TextCtrl(panel, -1, "Enter the name of Fake AP", size=(250, 30), pos=(10, 20)) self.nDeviceList = wx.ComboBox(panel, -1, value='Select Attack Interface', size=(200, 30), pos=(10, 115), choices=wless_commands.get_net_devices()) self.actionButton = wx.Button(panel, -1, label='Create Fake AP', pos=(10, 210)) self.stopButton = wx.Button(panel, -1, label='Stop Fake AP', pos=(130, 210)) self.logButton = wx.Button(panel, -1, label='Logs', pos=(10, 250)) self.closeButton = wx.Button(panel, -1, label='Close', pos=(130, 250)) self.myLabel = wx.StaticText(panel, -1, label='', pos=(10, 180)) self.actionButton.Bind(wx.EVT_BUTTON, self.executeCommand) self.stopButton.Bind(wx.EVT_BUTTON, self.stopfakeap) self.closeButton.Bind(wx.EVT_BUTTON, self.closeMe) self.logButton.Bind(wx.EVT_BUTTON, self.openLogs)
def InitUI(self): panel = wx.Panel(self) panel.SetBackgroundColour('#4f5049') self.APname = wx.TextCtrl(panel, -1, "Enter the name of Fake AP",size=(250,30), pos=(10,20)) self.nDeviceList = wx.ComboBox(panel, -1, value='Select Attack Interface', size=(200, 30), pos=(10, 115), choices = wless_commands.get_net_devices()) self.actionButton = wx.Button(panel, -1, label='Create Fake AP', pos=(10, 210)) self.stopButton = wx.Button(panel, -1, label='Stop Fake AP', pos=(130, 210)) self.logButton = wx.Button(panel, -1, label='Logs', pos=(10, 250)) self.closeButton = wx.Button(panel, -1, label='Close', pos=(130, 250)) self.myLabel = wx.StaticText(panel, -1, label='', pos=(10, 180)) self.actionButton.Bind(wx.EVT_BUTTON, self.executeCommand) self.stopButton.Bind(wx.EVT_BUTTON, self.stopfakeap) self.closeButton.Bind(wx.EVT_BUTTON, self.closeMe) self.logButton.Bind(wx.EVT_BUTTON, self.openLogs)