View Single Post
  #7  
Old 20.02.2010, 16:36
Spongshga's Avatar
Spongshga Spongshga is offline
JD Legend
 
Join Date: Apr 2009
Location: web
Posts: 1,159
Default

Also gut ich habe 2 Sachen, allerdings weiß ich leider nicht ganz was ich selbst an Welche stelle eintragen muss.... kann mir da mal jemand helfen.. und zudem weiß ich nicht welcher der beiden "*.bat" ich nutzen sollte...

D-Link DIR-300 Firmware-Version: 1.04 - Sat 05 Jul 2008
Code:
curl -b cookies.txt -c cookies.txt -m 10 -d "ACTION_POST=LOGIN&LOGIN_USER=admin&LOGIN_PASSWD=&login=Anmelden" "**External links are only visible to Support Staff**
curl -b cookies.txt -c cookies.txt -m 10 "**External links are only visible to Support Staff**

curl -b cookies.txt -c cookies.txt -m 10 -d "ACTION_POST=DHCP&hostname=DIR-300&mac1=XX&mac2=XX&mac3=XX&mac4=XX&mac5=XX&mac6=%zahl%&clonemac=XX%%3AXX%%3AXX%%3AXX%%3AXX%%3A%zahl%&dns1=&dns2=&mtu=1500&dh_eap_type=1&dh_authentication=0&dh_username=&dh_password=&dh_password_v=" "**External links are only visible to Support Staff**
curl -b cookies.txt -c cookies.txt -m 10 "**External links are only visible to Support Staff**
und...



Thomson THG 540 (k) und dewm D-Link DIR-300
zwei frage habe ich aber:
Kann man den recon vorgang beschleunigen?
habe ich in den cURL zeilen des routers überflüssige passagen drinne?

Code:
@echo off & SETLOCAL
rem - ReConnect.bat
rem - Kabel Modem (WebSTAR EPX (DPX, DPC, EPC) 2203 (Scientific Atlanta)) RESTART + Router (D-Link 624+) NEUSTART
rem - Kabelmodem als 1. booten und gleichzeitig Router durch neue MAC-Adresse versorgen und booten.
rem - Durch die Änderung der MAC-Adresse bezieht der Router eine neue WAN-IP-Adresse über das Kabel-Modem.
rem - =========================== Have Phun - PC-Fun & Moses =====================================================

rem  Pro Tag eine eigene Datum_IP-History.txt 
FOR /F "tokens=1,2,3,4,5 delims=/. " %%a in ('date/T') do set cDate=%%d-%%c-%%b


rem - WAN-IP ermitteln
WGET.EXE -O "%Temp%.\index.html" **External links are only visible to Support Staff**FOR /F "tokens=8 delims=<>" %%A IN ('TYPE "%Temp%.\index.html" ^| FIND /I "Current IP Address:"') DO FOR %%B IN (%%A) DO SET WAN_IP=%%B
DEL "%Temp%.\index.html"

rem - Warmstart Kabel Modem WebSTAR EPX (DPX, DPC, EPC) 2203
curl -b cookies.txt -c cookies.txt -m 10 -d "mCmInfoDsFreq1=xx&mCmInfoUsId1=xx" "**External links are only visible to Support Staff**
rem - ^^^^^^hier kann ein alternatives Kabel-Modem eingesetzt werden ^^^^^^^^

rem - Schritt 1 (Zaehlschleife): Wert aus "Zahl.txt" aus lesen (Wichtig: für 6-Stelle Mac-Adresse)
if not exist "zahl.txt" set /a zahl=10
for /f %%i in (Zahl.txt) do set /a zahl=%%i

rem - %Zahl%MAC-Übergabe an (D-Link 624+) Router und Restart
rem - !!! Bei mac1= bis mac5= die eigenen 2-stelligen Adressen anstelle der XX eingetragen !!!
curl -b cookies.txt -c cookies.txt -m 10 "**External links are only visible to Support Staff**
curl -b cookies.txt -c cookies.txt -m 10 -d "ACTION_POST=LOGIN&LOGIN_USER=admin&LOGIN_PASSWD=&login=Anmelden" "**External links are only visible to Support Staff**
curl -b cookies.txt -c cookies.txt -m 10 "**External links are only visible to Support Staff**
curl -b cookies.txt -c cookies.txt -m 10 "**External links are only visible to Support Staff**
curl -b cookies.txt -c cookies.txt -m 10 "**External links are only visible to Support Staff**

curl -b cookies.txt -c cookies.txt -m 10 "**External links are only visible to Support Staff**

curl -b cookies.txt -c cookies.txt -m 10 -d "ACTION_POST=DHCP&hostname=DIR-300&mac1=AA&mac2=BB&mac3=CC&mac4=DD&mac5=EE&mac6=%zahl%&clonemac=AA%%3ABB%%3ACC%%3ADD%%3AEE%%3A%zahl%&dns1=&dns2=&mtu=1500&dh_eap_type=1&dh_authentication=0&dh_username=&dh_password=&dh_password_v=" "**External links are only visible to Support Staff**
curl -b cookies.txt -c cookies.txt -m 10 "**External links are only visible to Support Staff**
rem - ^^^^^^hier kann ein alternativer Router eingesetzt werden ^^^^^^^^

rem - Schritt2: Zahl.txt um Wert 1 erhöhen!!! 6te-Zweistellige Mac-Adresse von 10-60 hex !!!
rem ----------- Die IP-Adresse wird per DHCP vom KABEL-Provider zugewiesen. LEASE-Time pro IP ~24h
rem ----------- Bitte geht nicht inflationär mit dem Zähler um! 50x neue IP reicht!!!

set /a zahl=zahl+1
if %zahl%==61 set /a zahl=10
echo %zahl% > Zahl.txt

@Echo "======= WARTEN: Online-Verbindung wird geprüft! ======================"
@echo on

rem - Internetverbindung prüfen bis Verbindung steht!
:IPcheck
ping www.google.de -n 2 | find "TTL=" >nul
if not errorlevel 1 goto ende
goto IPcheck
:ende

rem - Neue WAN-IP ermitteln!
WGET.EXE -O "%Temp%.\index.html" **External links are only visible to Support Staff**FOR /F "tokens=8 delims=<>" %%A IN ('TYPE "%Temp%.\index.html" ^| FIND /I "Current IP Address:"') DO FOR %%B IN (%%A) DO SET WAN_IP_NEW=%%B
DEL "%Temp%.\index.html"

if not exist "Log". md "Log"
rem Log-Datei erstellen
@echo %date% um %time% ALT *** %WAN_IP% - NEU *** %WAN_IP_NEW%>> LOG/%cdate%_IP-History.txt
ENDLOCAL
ich würde mich riesig freuen wenn mir einer per TeamViewer helfen könnte, zudem könnte ich somit auch in weiteren Boards weiterhelfen
__________________
sorry about my gramma (dyslexia).
———————————————————————————————————
SuFu/Google: Inoffizielle JDownloader Plugins, Erweiterungen, Addons & Tools
Reply With Quote