BandaAncha.eu

Comunidad de usuarios
de fibra, móvil y ADSL

ADSL

Script cambio IP Comtrend VR-3025un (para JDownloader)

vukits
1

Estos scripts aún están en pruebas ;)

presuponiendo que 192.168.1.1 es la LAN IP del router... y el usuario y contraseña son admin y admin

aquí tienes un script de renovar IP, para shell de linux

#!/bin/sh
( sleep 3
  echo admin
  sleep 1
  echo admin
  sleep 1
  echo ppp config ppp1 down
  sleep 5
  echo ppp config ppp1 up
  sleep 1
  echo exit ) | telnet 192.168.1.1

Pack para Windows (con ejecutar o hacer doble click sobre lscript.bat, la ip cambiará en unos 10s ... el script es totalmente editable)

El script para windows es muy parecido al del Livebox 2 , solamente que el bat invoca wlscript_down ... hace una pausa de 4s (PING -n 4 127.0.0.1>nul) y luego invoca wlscript_up.

ni que decir que todos los ficheros deben estar en el misma carpeta..

el pack contiene Telnet Scripting Tool (Albert Yale) : (TST10.exe)

un saludo

PD:

Acabo de probarlo con mi vr-3025u (sin 'n' al final) y con la configuracion que viene por defecto para la conexion PPP encapsulado PTM (la del VDSL2 hablando claro), hay que modificar ambos archivos wlscript_up y wlscript_down añadiendo un .1 en la línea 7 de cada script:

SEND "ppp config ppp1.1 down\m"

Para conocer este dato hay que entrar en el router via web, ir a Device Info - WAN, y en la primera columna vienen las dos interfaces, la ppp0.1 para ADSL2+ (ATM) y la ppp1.1 para VDSL2 (PTM).

Ari

Si es para cambio de ip y tienes el ar5381u ¿has probado esta aplicación (link roto) ?

Saludos

PD. Estamos de hablando windows, lógicamente

🗨️ 2
vukits

gracias, Ari..

Esta noche lo pruebo..

vukits

na'... no soporta el comtrend ( ya he hecho un script para Livebox 2 y ahora para este Comtrend... no pasa nada si los incluye en su programita :) )

333
1

Gracias.

BocaDePez
BocaDePez

Gracias tio funciona a la perfección en un Comtrend VR-3025un.

Ari
1

Pero, el script ¿no era para el ar5381? ¿O has cambiado el título del tema? O yo me he confundido.. :-/

Saludos

🗨️ 2
vukits

he cambiado el nombre del tema..

es que como lo hice por remoto.. no me acordaba de qué modelo es ...

luego comparé.. y el que uso es el de las antenitas (i.e. con V ).

un saludo y perdón

🗨️ 1
Ari
1

Nada, no te preocupes ;) Pero si pones un aviso en el mensaje principal de que has cambiado uno por otro, a los reyes del despiste nos ahorrarás algunos momentos de angustia innecesaria :D :P

Saludos y enhorabuena ;)

Kalimist
1

Gracias. Acabo de probarlo con mi vr-3025u (sin 'n' al final) y con la configuracion que viene por defecto para la conexion PPP encapsulado PTM (la del VDSL2 hablando claro), hay que modificar ambos archivos wlscript_up y wlscript_down añadiendo un .1 en la línea 7 de cada script:

SEND "ppp config ppp1.1 down\m"

Para conocer este dato hay que entrar en el router via web, ir a Device Info - WAN, y en la primera columna vienen las dos interfaces, la ppp0.1 para ADSL2+ (ATM) y la ppp1.1 para VDSL2 (PTM).

Si alguien no lo consigue que avise y le modifico los archivos. Este script sirve tambien para el AR-5381 y para el Comtrend HG/CT 536 siempre que se modifique esa linea dependiendo de cada modelo.

BocaDePez
BocaDePez

No me funciona para el router

Comtrend VR-3025u

de jazztel, alguna idea, que scipt es al final ????

🗨️ 13
Kalimist

Lee mi respuesta justo encima de tu mensaje.

🗨️ 12
BocaDePez
BocaDePez

Buenas, he provado un script como el siguiente. No entiendo muy bien lo que comentas que hay que hacer, modificar archivos del router ??

Como los modifico no lo entiento, esto es para el JDownloader

[[[HSRC]]]
     [[[STEP]]]
          [[[DEFINE ip0="192.168.1.1" ip1="safebrowsing.clients.google.com" ip2="safebrowsing-cache.google.com"/]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET / HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET / HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /logo.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /menu.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /info.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /footer.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /stylemain.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/logo.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /colors.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/logo.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /menuTree.js HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/menu.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /stylemain.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/menu.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /colors.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/menu.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /stylemain.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /colors.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /menuTitle.js HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/menu.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /stylemain.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/footer.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /colors.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/footer.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /menuBcm.js HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/menu.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /backupsettings.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/menu.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /stylemain.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/backupsettings.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /colors.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/backupsettings.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /resetrouter.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/menu.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /stylemain.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/resetrouter.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /colors.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/resetrouter.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /rebootinfo.cgi HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/resetrouter.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /main.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/rebootinfo.cgi
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /logo.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/main.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /menu.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/main.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /info.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/main.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /footer.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/main.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /stylemain.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/logo.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /colors.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/logo.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /menuTree.js HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/menu.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /stylemain.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/menu.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /colors.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/menu.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /stylemain.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /colors.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /menuTitle.js HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/menu.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /stylemain.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/footer.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /colors.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/footer.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /menuBcm.js HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/menu.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /info.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /stylemain.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /colors.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /info.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /stylemain.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /colors.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /info.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /stylemain.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /colors.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /info.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /stylemain.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /colors.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /info.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /stylemain.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /colors.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
POST /safebrowsing/downloads?client=navclient-auto-ffox&appver=3.0.13&pver=2.2&wrkey=AKEgNissTBe-1QHMoOMUJobRKRpn-hUQfojMDc1LVrl_cGluxAPnNlW_8qPeFPdhY5Gq1iRuEKwCI13cV3x8PtWvGAELHHMUqQ== HTTP/1.1
Host: %%%IP1%%%
Keep-Alive: 300
Connection: keep-alive
Content-Length: 102
Content-Type: text/plain
Cookie: PREF=ID=b74a708f10544c65:U=7136d1c6f4c3ac1d:TM=1250560982:LM=1250687715:S=9fUkrRRQOQMz6JqP; NID=25=nnCdphl7Jb1ltMV1iXdcEzTCTXLXIVlfKUptK4uiRurt57jVZdWuIBX0JhruKXjn1muTYWLXo__sOI8-oi3UIS3II0mPJL-GtqR6L2YNG4JQRlJVr75jejMZQpcW9qBH
goog-malware-shavar;a:11483-13612:s:12417-14564:mac
goog-phish-shavar;a:51846-63962:s:39906-46127:mac

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /safebrowsing/rd/goog-malware-shavar_s_14561-14565.14561-14565.: HTTP/1.1
Host: %%%IP2%%%
Keep-Alive: 300
Connection: keep-alive
Cookie: PREF=ID=b74a708f10544c65:U=7136d1c6f4c3ac1d:TM=1250560982:LM=1250687715:S=9fUkrRRQOQMz6JqP; NID=25=nnCdphl7Jb1ltMV1iXdcEzTCTXLXIVlfKUptK4uiRurt57jVZdWuIBX0JhruKXjn1muTYWLXo__sOI8-oi3UIS3II0mPJL-GtqR6L2YNG4JQRlJVr75jejMZQpcW9qBH

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /info.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /stylemain.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /colors.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /info.html HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /stylemain.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
     [[[STEP]]]
          [[[REQUEST]]]
GET /colors.css HTTP/1.1
Host: 192.168.1.1
Keep-Alive: 300
Connection: keep-alive
Referer:192.168.1.1/info.html
Authorization: Basic YWRtaW46YWRtaW4=

          [[[/REQUEST]]]
     [[[/STEP]]]
[[[/HSRC]]]
🗨️ 11
Kalimist

No utilices ese tipo de scripts porque lo que hacen es reiniciar el router, el que publicó vukits es para cambiar la IP, que tarda unos pocos segundos en lugar de 1 minuto o más que tarda en reiniciar.

Me refería a modificar los archivos del script que hay en el post inicial, te lo he subido ya modificado aquí:

(link roto)

Luego en el jdownloader tienes que irte a settings, reconnection, external y buscar la ruta del lscript.bat, aquí:

Imagen original en http://img695.imageshack.us/img695/4032/jdown.png
🗨️ 10
BocaDePez
BocaDePez
BocaDePez
BocaDePez
🗨️ 1
BocaDePez
BocaDePez
🗨️ 5
Kalimist
🗨️ 4
BocaDePez
BocaDePez
🗨️ 3
Kalimist
🗨️ 2
BocaDePez
BocaDePez
BocaDePez
BocaDePez
BocaDePez
BocaDePez
BocaDePez
BocaDePez

pasaba por aquí, sólo quería decir que con un pequeño "hack" se puede hacer

con un sólo archivo de comandos para el TST (que no lo conocía gracias!)

se trata de ejecutar el comando sleep después de poner la interfície a down

mediante el comando echo `sleep 4`

como está capado el telnet no se puede ejecutar sleep por sí sólo, los acentos

los interpreta la shell como "hay que ejecutar lo de dentro y devolver el resultado"

un saludo!

BocaDePez
BocaDePez

BocadePez, podrias explicar mejor lo del Sleep..

Tendriamos que añadir esta linea al final de Down:

SEND "'sleep 4'\m"

O como seria? Lo digo para integrar el script en un solo archivo i no tener el down y el up por separado..

🗨️ 1
BocaDePez
BocaDePez

no no, el comando completo es "echo `sleep 4`", por lo tanto habría que añadir:

SEND "echo `sleep 4`\m"

Todo el script sería así:

192.168.1.1 23
WAIT "Login"
SEND "USER\m"
WAIT "Password"
SEND "PASS\m"
WAIT " >"
SEND "ppp config ppp1.1 down\m"
WAIT " >"
SEND "echo `sleep 4`\m"
WAIT " >"
SEND "ppp config ppp1.1 up\m"
WAIT " >"
SEND "exit\m"

Además, si os molesta la típica ventanilla negra del CMD, podéis cambiar el lscript.bat por un script VBS como el siguiente:

Set WShell = WScript.CreateObject("WScript.Shell")
Return = WShell.Run("TST10.exe /r:wlscript_reset",2,true)

No lo he probado con el jDownloader todavía, así que los que lo probéis postead aquí si funciona

Un saludo!