REM ******************************* REM * * REM * Virtual Wifi By Leprechaun * REM * translated by MauroJack * REM * Script licensed under GPLv3 * REM * Http://inforge.net * REM * https://www.furaffinity.net * REM * * REM ******************************* @Echo off :home Color B Title VirtualWifi English edition by Leprechaun and MauroJack cls echo ____ ____.__ __ .__ __ __.__ _____.__ echo \ \ / /^|__^|_______/ ^|_ __ _______ ^| ^| / \ / \__^|/ ____\__^| echo \ Y / ^| \_ __ \ __\ ^| \__ \ ^| ^| \ \/\/ / \ __\^| ^| echo \ / ^| ^|^| ^| \/^| ^| ^| ^| // __ \^| ^|__ \ /^| ^|^| ^| ^| ^| echo \___/ ^|__^|^|__^| ^|__^| ^|____/(____ /____/ \__/\ / ^|__^|^|__^| ^|__^| echo \/ \/ ECHO. ECHO. ECHO [1] Setup virtual network ECHO [2] Start virtual network ECHO [3] Stop virtual network ECHO [4] State virtual network ECHO [5] Devices connected to the virtual network ECHO [6] Automatic execution ECHO [7] Set static IP ECHO [8] Enable/Disable virtual network ECHO. ECHO [9] About ECHO. SET /p selectmode= IF "%selectmode%" == "1" (GOTO networksetup) IF "%selectmode%" == "2" (GOTO startnetwork) IF "%selectmode%" == "3" (GOTO networkshutdown) IF "%selectmode%" == "4" (GOTO networkstatus) IF "%selectmode%" == "5" (GOTO devicesconnectedtothevirtualnetwork) IF "%selectmode%" == "6" (GOTO autoexec) IF "%selectmode%" == "7" (GOTO staticip) IF "%selectmode%" == "8" (GOTO enableandodisablenetwork) IF "%selectmode%" == "9" (GOTO about) IF "%selectmode%" == "version" (GOTO lol) cls Color c Echo Scelta non valida, premi un tasto compreso tra 0 e 9 timeout /t 3 > nul goto home REM ---------------------------------------------------------------------- :networksetup title Setup virtual network cls Echo. set /p ssid=Enter the network name: ECHO. set /p pass=Enter your password: ECHO. netsh wlan set hostednetwork mode=allow "ssid=%ssid%" key=%pass% keyUsage=persistent ECHO. Echo Virtual network set: Echo. Echo SSID: %ssid% Echo Password: %pass% :choicesetupstatic Echo. Echo Remember to set a static IP! Do you want to set it now? Echo. Echo [1] Yes Echo [2] No Echo. SET /p selectmode= IF "%selectmode%" == "1" (GOTO staticip) IF "%selectmode%" == "2" (GOTO home) cls Color c Echo Invalid choice, press a button between 1 and 2 timeout /t 3 > nul color B cls goto choicesetupstatic REM ---------------------------------------------------------------------- :startnetwork title Start virtual network... Color A cls Echo. netsh wlan start hostednetwork timeout /t 4 > nul netsh wlan show hostednetwork | find /i /v "impostazioni" | find /i /v "modalit" | find /i /v "nome" | find /i /v "------" | find /i /v "numero massimo" | find /i /v "autenticazione" | find /i /v "crittografia" | find /i /v "bssid" | find /i /v "tipo" | find /i /v "canale" | find /i /v "numero di" | find /i /v "autenticato" Echo. Echo In 10 seconds you will be returned to the home, you press a button to go back now ... timeout /t 10 > nul goto home REM ---------------------------------------------------------------------- :networkshutdown title Stop Network... Color C cls echo. netsh wlan stop hostednetwork netsh wlan show hostednetwork | find /i /v "impostazioni" | find /i /v "modalit" | find /i /v "nome" | find /i /v "------" | find /i /v "numero massimo" | find /i /v "autenticazione" | find /i /v "crittografia" | find /i /v "bssid" | find /i /v "tipo" | find /i /v "canale" | find /i /v "numero di" | find /i /v "autenticato" Echo. Echo In 10 seconds you will be returned to the home, you press a button to go back now ... timeout /t 10 > nul goto home REM ---------------------------------------------------------------------- :networkstatus title state virtual network cls echo. netsh wlan show hostednetwork | find /i /v "impostazioni" | find /i /v "modalit" | find /i /v "nome" | find /i /v "------" | find /i /v "numero massimo" | find /i /v "autenticazione" | find /i /v "crittografia" | find /i /v "bssid" | find /i /v "tipo" | find /i /v "canale" | find /i /v "numero di" | find /i /v "autenticato" Echo. Echo In 10 seconds you will be returned to the home, you press a button to go back now ... timeout /t 10 > nul goto home REM ---------------------------------------------------------------------- :devicesconnectedtothevirtualnetwork devices connected to the virtual network cls echo. ECHO [1] show only ECHO [2] show and Log ECHO [3] Cancel ECHO. SET /p connessimode= IF "%connessimode%" == "1" (GOTO refreshn) IF "%connessimode%" == "2" (GOTO refreshlog) IF "%connessimode%" == "3" (GOTO home) cls Color c Echo Invalid choice, press a button between 1 and 3 timeout /t 3 > nul Color B cls goto devicesconnectedtothevirtualnetwork :refreshn cls echo. set /p tempo= Enter refresh interval (SECONDS): cls :start1 echo. netsh wlan show hostednetwork Echo. Echo Refresh automatico ogni %tempo% secondi. timeout /t %tempo% > nul cls goto start1 :refreshlog cls set /p tempolog=Enter the interval between a log and the other (SECONDS): set /p filelog=Enter the file name of Log: cls :start2 echo %date% %time% >> %filelog%.txt netsh wlan show hostednetwork | find /i /v "impostazioni" | find /i /v "modalit" | find /i /v "nome" | find /i /v "------" | find /i /v "numero massimo" | find /i /v "autenticazione" | find /i /v "crittografia" | find /i /v "stato" | find /i /v "bssid" | find /i /v "tipo" | find /i /v "canale" >> %filelog%.txt Echo --------------------------------------------------- >> %filelog%.txt Echo. >> %filelog%.txt netsh wlan show hostednetwork Echo. Echo Automatic refresh every %tempolog% seconds. timeout /t %tempolog% > nul cls goto start2 REM ---------------------------------------------------------------------- :autoexec cls Echo. ECHO [1] set autostart virtual network with Windows ECHO [2] remove autostart virtual network with Windows ECHO [3] Cancel ECHO. SET /p autoexecmode= IF "%autoexecmode%" == "1" (GOTO addautoexec) IF "%autoexecmode%" == "2" (GOTO removeautoexec) IF "%autoexecmode%" == "3" (GOTO home) cls Color c Echo Invalid choice, press a button between 1 and 3 timeout /t 3 > nul Color B cls goto autoexec :addautoexec cls echo @echo off > "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\VirtualWifi.bat" echo netsh wlan start hostednetwork >> "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\VirtualWifi.bat" echo Exit >> "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\VirtualWifi.bat" goto home :removeautoexec cls del /f /q "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\VirtualWifi.bat" goto home REM ---------------------------------------------------------------------- :staticip cls Echo I view the available network adapters... ECHO. netsh interface ip show config |find "Configuration" | more ECHO. set /p nomescheda=Locate the virtual network and write her name below: cls Echo. set /p varip=Enter the desired static IP (advised 192.168.2.100): cls Echo. set /p varsm=Enter the SubnetMask (usually 255.255.255.0): cls Echo. set /p vardns1=Enter the first DNS server (Google 8.8.8.8): cls Echo. set /p vardns2=Enter Second DNS server (Google 8.8.4.4): netsh int ip set address name = "%nomescheda%" source = static addr = %varip% mask = %varsm% netsh int ip set dns name = "%nomescheda%" source = static addr = %vardns1% netsh int ip add dns name = "%nomescheda%" addr = %vardns2% cls Echo Please wait... timeout /t 5 > nul cls echo IP set, display the current configuration: netsh interface ip show config name="%nomescheda%" :ipcorrectsn echo. echo [1] Correct setting, back to Home echo [2] Run setup IP again SET /p staticipmode= IF "%staticipmode%" == "1" (GOTO home) IF "%staticipmode%" == "2" (GOTO staticip) cls Color c Echo Invalid choice, press a button between 1 and 2 timeout /t 3 > nul Color B cls goto ipcorrectsn REM ---------------------------------------------------------------------- :About cls Color A Echo. Echo VirtualWifi English edition by Leprechaun and MauroJack Echo. Echo For correct operation set static IP to the virtual network Echo and share the connection with the hotspot created Echo. Echo Script licensed under GPLv3 Echo. Echo Press a button to return to the Home. pause>nul goto home REM ---------------------------------------------------------------------- :enableandodisablenetwork cls echo. echo [1] Enable virtual network echo [2] disables virtual network echo [3] Cancel echo. SET /p abidisabimode= IF "%abidisabimode%" == "1" (GOTO abilitar) IF "%abidisabimode%" == "2" (GOTO disabilitar) IF "%abidisabimode%" == "3" (GOTO home) Color C cls Echo Invalid choice, press a button between 1 and 3 timeout /t 3 > nul Color B cls goto enableandodisablenetwork :disabilitar cls Color C Echo. netsh wlan set hostednetwork mode=disallow Echo. Echo You are being redirected to the Home... timeout /t 4 > nul goto home :abilitar cls Color A Echo. netsh wlan set hostednetwork mode=allow Echo. Echo You are being redirected to the Home ... timeout /t 4 > nul goto home REM ---------------------------------------------------------------------- :lol color c Echo *Trollface* NOW YOU WANT A COOKIE? VirtualWifi GUI 1.1 CODENAME:TROLLCOOKIE Echo *Trollface* NOW YOU WANT A COOKIE? VirtualWifi GUI 1.1 CODENAME:TROLLCOOKIE Echo *Trollface* NOW YOU WANT A COOKIE? VirtualWifi GUI 1.1 CODENAME:TROLLCOOKIE goto lol REM -END-