Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off &setlocal
- :newmac
- set /a count=0
- for /f "tokens=1delims=:" %%i in ('findstr /n "^" "maclist.txt"') do set
- /a count=%%i
- set /a rd=%random%%%count
- if %rd% equ 0 (set "skip=") else set "skip=skip=%rd%"
- set "found="
- for /f "%skip%tokens=1*delims=:" %%i in ('findstr /n "^" "maclist.txt"')
- do if not defined found set "found=%%i"&set "var=%%j"
- rem echo.random line %found%: %var%
- echo New MAC: %var%
- set /a newtime=%random% %%28800+3600
- goto main
- :main
- netsh wlan stop hostednetwork
- macshift -i "Wireless Network Connection 4" "%var%"
- netsh wlan start hostednetwork
- sleep %newtime%
- goto newmac
- endlocal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement