Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.62 KB | None | 0 0
  1. @echo off &setlocal
  2. :newmac
  3. set /a count=0
  4. for /f "tokens=1delims=:" %%i in ('findstr /n "^" "maclist.txt"') do set
  5. /a count=%%i
  6. set /a rd=%random%%%count
  7. if %rd% equ 0 (set "skip=") else set "skip=skip=%rd%"
  8. set "found="
  9. for /f "%skip%tokens=1*delims=:" %%i in ('findstr /n "^" "maclist.txt"')
  10. do if not defined found set "found=%%i"&set "var=%%j"
  11. rem echo.random line %found%: %var%
  12. echo New MAC: %var%
  13. set /a newtime=%random% %%28800+3600
  14. goto main
  15. :main
  16. netsh wlan stop hostednetwork
  17. macshift -i "Wireless Network Connection 4" "%var%"
  18. netsh wlan start hostednetwork
  19. sleep %newtime%
  20. goto newmac
  21. endlocal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement