├── WinHotspot.exe ├── WinHotspot.rar ├── README.md └── WinHotspot.py /WinHotspot.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chan9390/WinHotspot/HEAD/WinHotspot.exe -------------------------------------------------------------------------------- /WinHotspot.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chan9390/WinHotspot/HEAD/WinHotspot.rar -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WinHotspot 2 | 3 | A free open source python program to start WiFi hotspot in Windows without any external software 4 | 5 | The program uses only windows commands. 6 | 7 | ### Features 8 | + Checks for admin priv 9 | + Start with your hotspot name 10 | + Password length check -------------------------------------------------------------------------------- /WinHotspot.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import subprocess 3 | 4 | def exitting(): 5 | print("[-] Exiting") 6 | sys.exit() 7 | 8 | def script(): 9 | cmd1_output = subprocess.check_output("netsh wlan show drivers", shell=True) 10 | if "Hosted network supported : Yes" in cmd1_output: 11 | print("[+] Driver supported") 12 | hot_name = raw_input("Name for your hotspot: ") 13 | password = raw_input("Enter your password (include alphanumeric): ") 14 | while(len(password)<8): 15 | print("\n[-] Insufficient password strength. Try again ") 16 | password = raw_input("Enter your password (include alphanumeric): ") 17 | cmd2 = "netsh wlan set hostednetwork mode=allow ssid="+hot_name+" key="+password 18 | cmd2_output = subprocess.check_output(cmd2, shell=True) 19 | if "successfully changed" in cmd2_output: 20 | print("[+] Hotspot created") 21 | cmd3_output = subprocess.check_output("netsh wlan start hostednetwork", shell=True) 22 | if "started" in cmd3_output: 23 | print("[+] The hotspot is up and running") 24 | else: 25 | print("[-] Oops, Something went wrong") 26 | exitting() 27 | # stat = "a" 28 | # while (stat != "q"): 29 | stat = raw_input("\nPress any key to stop hotspot ") 30 | cmd4_output = subprocess.check_output("netsh wlan stop hostednetwork", shell=True) 31 | print("\n[+] Hotspot has been stopped") 32 | print("[+] Thanks for using") 33 | print("[+] For details contact @bnchandrapal") 34 | 35 | 36 | def Main(): 37 | print ("[+] Checking for admin status") 38 | try: 39 | output = subprocess.check_output("whoami /groups | find \"S-1-16-12288\"", shell=True) 40 | except: 41 | print("[-] You are not admin :( ") 42 | exitting() 43 | if('S-1-16-12288' in output): 44 | print("[+] The program is running with Admin priv :)") 45 | print("[+] Initiating the script") 46 | script() 47 | 48 | if __name__ == '__main__': 49 | Main() --------------------------------------------------------------------------------