|
Was tired posting this, don't mind the grammer and the messed up title..... Argh.. Was bored tonight figure you guys might enjoy this. I wrote windows batch script that will assign a random 02:*:*:*:*:* MAC address by modifying the registry then disable and renable the wifi card. It will then open the browser you set it to to the xfinitywifi sign page, just pick 1 hour free trial then enter a bogus zip code and email address. Once your free hour is up just rerun the script and get another free hour. You can keep doing this over and over again. Normally I just use kali linux to do this, but I wanted something that works on windows. You will need to download devcon utility from microsoft to make the script work. Other then that just define what browser you use and the device id of your wireless network card. Maybe someone will get some use out of it, I currently am. Enjoy @echo off rem nick.brian.collins@gmail.com rem This script will randomly spoof your MAC address on windows, then disable and enable the network card of your choosing rem Once that is done it will open up your defined browser to the xfinity public hotspot page at that point rem you can enter bogus information for the zipcode and email address and click start session.. rem The script uses the devcon utility from Microsoft, it is use to disable and enable the Wifi device this script will not rem work with oute it.. rem Set the browser you would like to use, I'm currently using firefox.. set BROWSER=firefox rem Set the name of the wifi device ID, use the command: devcon hwids "*" , to find it set WIFI_DEVICE_ID=*VID_13B1* cls call :intToHex hex0 "(%random%<<15)+%random%" call :intToHex hex1 "(%random%<<15)+%random%" set "MAC=02:%hex1:~-4,2%:%hex1:~-2,2%:%hex0:~-6,2%:%hex0:~-4,2%:%hex0:~-2,2%" echo Random MAC=%MAC% for /f "tokens=1,2,3,4,5,6 delims=:" %%a in ("%MAC%") do set CLEANMAC=%%a%%b%%c%%d%%e%%f echo Registry MAC=%CLEANMAC% echo Updating MAC Address in registry rem Set registry location where NetworkAddress needs to go..This will most likely vary from PC to PC set REG_LOCATION=HKLM\SYSTEM\ControlSet001\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\0013 /v NetworkAddress /t REG_SZ /d %CLEANMAC% /f reg add %REG_LOCATION% echo Disabling WIFI devcon disable %WIFI_DEVICE_ID% echo Enabling WIFI devcon enable %WIFI_DEVICE_ID% echo Opening %BROWSER% to Comcast Page start %BROWSER% https://xfinity.nnu.com/xfinitywifi/?client-mac=%MAC% goto :eof :intToHex :: %~1 variable to store the hex value :: %~2 int32 string value setlocal enableDelayedExpansion set /A "num=%~2" set "hex=" set "digits=0123456789ABCDEF" for /L %%a in (0,1,7) do ( set /A "nibble=num&0xF", "num>>=4" for %%b in (!nibble!) do set "hex=!digits:~%%b,1!!hex!" ) endlocal & set "%~1=%hex%" goto :eof JamesPlumbtree fucked around with this message at 11:29 on Nov 30, 2016 |
# ? Nov 30, 2016 09:40 |
|
|
# ? May 3, 2024 20:36 |