Bienvenido! - Willkommen! - Welcome!

Bitácora Técnica de Tux&Cía., Santa Cruz de la Sierra, BO
Bitácora Central: Tux&Cía.
Bitácora de Información Avanzada: Tux&Cía.-Información
May the source be with you!

Thursday, September 27, 2012

JDownloader scripts

If you want a reconnection script for your router, please read
 ZHONE 6211-I3-302 - Reconnection CLR Script

ZHONE 6211-I3-302



Code:


















I personally use CLR script with jdownloader for reconnection and they work fine for me 
=============================
=============================
 Linux users (Ubuntu at least)

hi there!! I wroted this script and posted it in ubuntu help forum. It should work on every linux/unix system i think with a ppp based internet connection (think it is said like this) Works via telnet generally on those systems.
This is muy guide for ubuntu/debian users.
First of all, script is written in bash expect (think is like that)we have to install the expect lib via synaptic or terminal
Code:
sudo apt-get install expect
We create the .sh file and put it in home/"user"/JDownloader/ i do it like that:
Code:
sudo gedit /home/"user"/JDownloader/reconnect.sh
and paste the text above as it is but changing your own data
Code:
#! /usr/bin/expect 

spawn telnet 192.168.1.1 (or your routers' address) 
expect "Login:" 
send "admin or your login\r" 
sleep 2 
expect "password:" 
send "yourpassword\r" 
sleep 2 
expect ">" 
send "ppp config ppp0 down\r" 
sleep 5 
expect ">" 
send "ppp config ppp0 up\r" 
sleep 5 
expect ">" 
send "exit\r"
we give script's permissions
Code:
sudo chmod +x /home/"youruser"/JDownloader/reconnect.sh
then in settings>>reconnection in external tab in command select your script's route
After all you can tweak reconnection times, in advanced. Mines are
30
4
40
wich gives me a reconection time of 30 seconds, think it can be improved.
===============================
===============================
Linksys WRT54G2 v.1


I have an old Linksys WRT54G2 v1 FW. 1.0.01 and the only way is spoofing the MAC

This scritpt works... but you need to edit some values every time you use it... check this also http://svn.jdownloader.org/issues/3383

Spoiler:


you need to edit this line:

Code:
action=Apply&mac_clone_enable=1&def_hwaddr_0=00&def_hwaddr_1=21&def_hwaddr_2=29&def_hwaddr_3=8E&def_hwaddr_4=1A&def_hwaddr_5=00
just change the values of "def_hwaddr_(0 to 5)=XX" writing any hex number (00 to FF) instead XX
====================================
====================================
Reconnect Script for D-Link DIR-600 (tested on Firmware Version 2.05)

Spoiler:
Code:
[[[HSRC]]]

    [[[STEP]]]
        [[[REQUEST]]]
        POST /login.php HTTP/1.1
        Host: %%%routerip%%%

ACTION_POST=LOGIN&FILECODE=&VERIFICATION_CODE=&LOGIN_USER=%%%user%%%&LOGIN_PASSWD=%%%pass%%%&VER_CODE=
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /conninfo.xgi?set/runtime/wan/inf:1/disconnect=1 HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        GET /conninfo.xgi?set/runtime/wan/inf:1/connect=1 HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]


    [[[STEP]]]
        [[[REQUEST]]]
        GET /logout.php HTTP/1.1
        Host: %%%routerip%%%
        [[[/REQUEST]]]
    [[[/STEP]]]

[[[/HSRC]]]
==============================
==============================
Heres a Zyxel telnet scripter a very useful external reconnect method for zyxel routers the reconnection takes only 7-13 seconds > and works with almost all zyxel series

Click here to Download

Users guide:

Download it and extract it to a user defined directory

once the file is extracted > open the BAT file with a text editor and replace 1234 in the command line with your own router password

this is what the command line in the bat looks like
Code:
ztnbatch.exe -h 192.168.1.1 -p 1234 -c "poe drop poe0" silent -EXIT
save the file and add the BAT file to JDownloader as a external file


Backup line If the command line in the bat does not work you can also try this one
Code:
ztnbatch.exe -h 192.168.1.1 -p 1234 -c "poe drop poe0" -c "dev dial 1" -silent -EXIT
Attention : telnet has to be enabled on your system for this to work 
=================================
=================================

No comments: