@echo off
echo 1. Neustart Kabelmodem
curl.exe "http://192.168.100.1/loginData.htm?loginUsername=admin&loginPassword=motorola&LOGIN_BUTTON=Login" -c "cookies.txt"
curl.exe "http://192.168.100.1/reset.htm?reset_modem=Restart+Cable+Modem"
echo 2. Neue MAC generieren
if not exist "count.txt" set /a zahl=10
for /f %%i in (count.txt) do set /a zahl=%%i
echo 3. MAC aendern
curl "http://
admin:[email protected]/ether.cgi" -d "system_name=WGR614v7&domain_name=&WANAssign=dhcp&DNSAssign=0&MACAssign=2&S poofmac=001B2FF6E8%zahl%&apply=%DCbernehmen&runtest=no&wan_proto=dhcp&wan _netmask=255.255.252.0&wan_dns_sel=0&wan_dns1_pri=0.0.0.0&wan_dns1_sec=...& wan_hwaddr_sel=2&wan_hwaddr2=00%3A00%3A00%3A00%3A00%3A%zahl%"
ping localhost -n 5 >nul
set /a zahl=zahl+1
if %zahl%==61 set /a zahl=10
echo %zahl% > count.txt
echo 4. Verbindung pruefen
:IPcheck
ping http://www.google.de -n 2 | find "TTL=" >nul
if not errorlevel 1 goto ende
goto IPcheck
:ende
echo 5. Fertig!
ping localhost -n 5 >nul
exit