-
Notifications
You must be signed in to change notification settings - Fork 17
/
defaults.ini
30 lines (30 loc) · 7.75 KB
/
defaults.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# NOTE: the default ssh password will be 'root'. It's not a parameter as it would be hard to encode all special characters people might use, so just log in and change it!
# If you don't include all the mandatory defaultXXXXXX keys as shown the program will fail!
defaultHost=10.0.0.138
defaultUsername=admin
defaultPassword=
defaultUpgradeFilename=
defaultStartupVariant=Generic (Basic DDNS)
defaultFlashFirmware=0
defaultFlashSleepDelay=120
defaultConnectRetryDelay=5
defaultInterCommandDelay=5
defaultExpertMode=0
defaultSplitCommand=1
# The following line is not mandatory, but can be used as an alternative to the "-l it" command line language parameter
#defaultLanguage=it
# variant=DGA4130 TIM AGTEF_1.0.3 (passive root),Ping,dyndns.com,sed -i '1croot:x:0:0:root:/root:/bin/ash' /etc/passwd;uci set dropbear.@dropbear[0].RootPasswordAuth='on';uci set dropbear.@dropbear[0].enable='1';uci commit;echo -e "root\nroot"|passwd;/etc/init.d/dropbear restart;sed -i 's/off/on/' /overlay/$(cat /proc/banktable/inactive)/etc/config/dropbear;sed -i 's/0/1/' /overlay/$(cat /proc/banktable/inactive)/etc/config/dropbear;sed -i 's#root:/bin/restricted_shell#root:/bin/ash#' /overlay/$(cat /proc/banktable/inactive)/etc/passwd;sed -i "/option Interface 'lan'/s/.*/&\n\toption RootPasswordAuth 'on'/" /overlay/$(cat /proc/banktable/inactive)/etc/config/dropbear;sed -i "1c $(sed 1q /etc/shadow)" /overlay/$(cat /proc/banktable/inactive)/etc/shadow;switchover
variant=DGA4130 TIM AGTEF_1.0.3,Ping,dyndns.com,sed -i '1croot:x:0:0:root:/root:/bin/ash' /etc/passwd;uci set dropbear.@dropbear[0].RootPasswordAuth='on';uci set dropbear.@dropbear[0].enable='1';uci commit;echo -e "root\nroot"|passwd;/etc/init.d/dropbear restart
# variant=DGA4132 TIM AGTHP_1.0.3 (passive root) (Basic DDNS),BasicDDNS,dyndns.it,sed -i 's#root:/bin/false#root:/bin/ash#' /etc/passwd;uci set dropbear.lan.enable=1;uci set dropbear.lan.RootPasswordAuth=on;uci commit;echo -e "root\nroot"|passwd;/etc/init.d/dropbear restart;sed -i 's/off/on/' /overlay/$(cat /proc/banktable/inactive)/etc/config/dropbear;sed -i 's/0/1/' /overlay/$(cat /proc/banktable/inactive)/etc/config/dropbear;sed -i 's#root:/bin/restricted_shell#root:/bin/ash#' /overlay/$(cat /proc/banktable/inactive)/etc/passwd;sed -i "/option Interface 'lan'/s/.*/&\n\toption RootPasswordAuth 'on'/" /overlay/$(cat /proc/banktable/inactive)/etc/config/dropbear;sed -i "1c $(sed 1q /etc/shadow)" /overlay/$(cat /proc/banktable/inactive)/etc/shadow;switchover
variant=DGA4132 TIM AGTHP_1.0.3 (Advanced DDNS),AdvancedDDNS,dyndns.it,sed -i 's#root:/bin/false#root:/bin/ash#' /etc/passwd;uci set dropbear.lan.enable=1;uci set dropbear.lan.RootPasswordAuth=on;uci commit;echo -e "root\nroot"|passwd;/etc/init.d/dropbear restart
variant=DGA4132 TIM AGTHP_1.0.3 (Basic DDNS),BasicDDNS,dyndns.it,sed -i 's#root:/bin/false#root:/bin/ash#' /etc/passwd;uci set dropbear.lan.enable=1;uci set dropbear.lan.RootPasswordAuth=on;uci commit;echo -e "root\nroot"|passwd;/etc/init.d/dropbear restart
variant=DJA0231 Telstra 18.1.c.0215-950-RA (Basic DDNS),BasicDDNS,dyn.com,sed -i 's#root:/bin/restricted_shell#root:/bin/ash#' /etc/passwd;echo "root:root"|chpasswd;dropbear -p 6666 &
variant=TG789vac v2 iiNet 16.3,Ping,dyndns.com,uci set dropbear.@dropbear[0].PasswordAuth='on';uci set dropbear.@dropbear[0].RootPasswordAuth='on';uci set dropbear.@dropbear[0].enable='1';uci commit;echo -e "root\nroot"|passwd;/etc/init.d/dropbear restart
variant=TG789vac v2 HP MyRepublic 16.3,Ping,dyndns.com,sed -i -e "1croot:x:0:0:root:/root:/bin/ash" -e 's#root:/bin/false#root:/bin/ash#' /etc/passwd;echo "root:root"|chpasswd;sed -i -e "s/'0'/'1'/" -e "s/'off'/'on'/" /etc/config/dropbear;/etc/init.d/cwmpd stop;/etc/init.d/cwmpd disable;/etc/init.d/cwmpdboot disable;killall -9 cwmpd cwmpdboot watchdog-tch dropbear;/etc/init.d/dropbear start
variant=TG789vac v2 Tiscali 16.3,Ping,dyndns.com,sed -i 's#root:/bin/false#root:/bin/ash#' /etc/passwd;uci set dropbear.@dropbear[0].PasswordAuth='on';uci set dropbear.@dropbear[0].Interface='lan';uci set dropbear.@dropbear[0].RootPasswordAuth='on';uci set dropbear.@dropbear[0].enable='1';uci commit;echo -e "root\nroot"|passwd;/etc/init.d/dropbear restart
variant=TG797 Telstra <= 16.3,Ping,dyndns.com,echo "root:root"|chpasswd;sed -i -e "s/'0'/'1'/" -e "s/'off'/'on'/" /etc/config/dropbear;/etc/init.d/cwmpd disable;/etc/init.d/cwmpdboot disable;/etc/init.d/wifi-doctor-agent disable;/etc/init.d/hotspotd disable;killall -9 hotspotd cwmpd cwmpdboot watchdog-tch wifi-doctor-agent dropbear;/etc/init.d/dropbear start
variant=TG799 Telstra <= 16.3,Ping,dyndns.com,echo "root:root"|chpasswd;sed -i -e "s/'0'/'1'/" -e "s/'off'/'on'/" /etc/config/dropbear;/etc/init.d/cwmpd disable;/etc/init.d/cwmpdboot disable;/etc/init.d/wifi-doctor-agent disable;/etc/init.d/hotspotd disable;killall -9 hotspotd cwmpd cwmpdboot watchdog-tch wifi-doctor-agent dropbear;/etc/init.d/dropbear start
variant=TG799 Telstra 17.2.0261 (Basic DDNS),BasicDDNS,dyn.com,sed -i 's#root:/bin/restricted_shell#root:/bin/ash#' /etc/passwd;echo "root:root"|chpasswd;dropbear -p 6666 &
variant=Generic (Basic DDNS),BasicDDNS,dyndns.org,sed -i 's#/root:.*$#/root:/bin/ash#' /etc/passwd;echo root:root | chpasswd;sed -i -e 's/#//' -e 's#askconsole:.*\$#askconsole:/bin/ash#' /etc/inittab;uci -q delete dropbear.afg;uci add dropbear dropbear;uci rename dropbear.@dropbear[-1]=afg;uci set dropbear.afg.enable='1';uci set dropbear.afg.Interface='lan';uci set dropbear.afg.Port='22';uci set dropbear.afg.IdleTimeout='600';uci set dropbear.afg.PasswordAuth='on';uci set dropbear.afg.RootPasswordAuth='on';uci set dropbear.afg.RootLogin='1';uci -q set dropbear.lan.enable='0';uci commit dropbear;/etc/init.d/dropbear enable;/etc/init.d/dropbear restart;uci set $(uci show|grep -m 1 `fw3 -q print|egrep 'es -t filter -A zone_lan_input -p tcp -m tcp --dport 22 -m comment --comment "!fw3: .+" -j DROP'|sed -n's/^iptables.\+fw3: \(.\+\)".\+/\1/p'`|sed -n"s/\(.\+\).name='.\+'$/\1/p").target=ACCEPT;uci commit;/etc/init.d/firewall reload
variant=Generic (Advanced DDNS),AdvancedDDNS,dyndns.org,sed -i 's#/root:.*$#/root:/bin/ash#' /etc/passwd;echo root:root | chpasswd;sed -i -e 's/#//' -e 's#askconsole:.*\$#askconsole:/bin/ash#' /etc/inittab;uci -q delete dropbear.afg;uci add dropbear dropbear;uci rename dropbear.@dropbear[-1]=afg;uci set dropbear.afg.enable='1';uci set dropbear.afg.Interface='lan';uci set dropbear.afg.Port='22';uci set dropbear.afg.IdleTimeout='600';uci set dropbear.afg.PasswordAuth='on';uci set dropbear.afg.RootPasswordAuth='on';uci set dropbear.afg.RootLogin='1';uci -q set dropbear.lan.enable='0';uci commit dropbear;/etc/init.d/dropbear enable;/etc/init.d/dropbear restart;uci set $(uci show|grep -m 1 `fw3 -q print|egrep 'es -t filter -A zone_lan_input -p tcp -m tcp --dport 22 -m comment --comment "!fw3: .+" -j DROP'|sed -n's/^iptables.\+fw3: \(.\+\)".\+/\1/p'`|sed -n"s/\(.\+\).name='.\+'$/\1/p").target=ACCEPT;uci commit;/etc/init.d/firewall reload
variant=Generic (Ping),Ping,dyndns.com,sed -i 's#/root:.*$#/root:/bin/ash#' /etc/passwd;echo root:root | chpasswd;sed -i -e 's/#//' -e 's#askconsole:.*\$#askconsole:/bin/ash#' /etc/inittab;uci -q delete dropbear.afg;uci add dropbear dropbear;uci rename dropbear.@dropbear[-1]=afg;uci set dropbear.afg.enable='1';uci set dropbear.afg.Interface='lan';uci set dropbear.afg.Port='22';uci set dropbear.afg.IdleTimeout='600';uci set dropbear.afg.PasswordAuth='on';uci set dropbear.afg.RootPasswordAuth='on';uci set dropbear.afg.RootLogin='1';uci -q set dropbear.lan.enable='0';uci commit dropbear;/etc/init.d/dropbear enable;/etc/init.d/dropbear restart;uci set $(uci show|grep -m 1 `fw3 -q print|egrep 'es -t filter -A zone_lan_input -p tcp -m tcp --dport 22 -m comment --comment "!fw3: .+" -j DROP'|sed -n's/^iptables.\+fw3: \(.\+\)".\+/\1/p'`|sed -n"s/\(.\+\).name='.\+'$/\1/p").target=ACCEPT;uci commit;/etc/init.d/firewall reload