Kitz Forum

Broadband Related => Router Monitoring Software => Topic started by: Vaako on March 04, 2014, 09:03:14 PM

Title: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Vaako on March 04, 2014, 09:03:14 PM
Hi,

I have managed to make a connection via Serial-Console to the Technicolor TG789Bvn / TG799vn wich is the O-Box 3 here in Belgium.
Although it is also possible to access it via Telnet if I connect a TTL to RS232 to ETHERNET converter that than is accessable via a IP address.

The command prompt that shows up is:

TG233 login:

After put the name Administrator I see this output:

Code: [Select]
TG233 login: starting pid 1049, tty '/dev/ttyS0': '/bin/login'^C
starting pid 1050, tty '/dev/ttyS0': '/bin/login'
TG233 login:
TG233 login: Administrator


BusyBox v1.10.3 (2013-08-16 16:29:13 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

------------------------------------------------------------------------



                             ______  Technicolor TG799vn v2

                         ___/_____/\

                        /         /\\  10.5.D.W

                  _____/__       /  \\

                _/       /\_____/___ \  Copyright (c) 1999-2013, Technicolor

               //       /  \       /\ \

       _______//_______/    \     / _\/______

      /      / \       \    /    / /        /\

   __/      /   \       \  /    / /        / _\__

  / /      /     \_______\/    / /        / /   /\

 /_/______/___________________/ /________/ /___/  \

 \ \      \    ___________    \ \        \ \   \  /

  \_\      \  /          /\    \ \        \ \___\/

     \      \/          /  \    \ \        \  /

      \_____/          /    \    \ \________\/

           /__________/      \    \  /

           \   _____  \      /_____\/

            \ /    /\  \    /___\/

             /____/  \  \  /

             \    \  /___\/

              \____\/



------------------------------------------------------------------------

{Administrator}=>
{Administrator}=>


What commands are used to show the dsl information.

Any help is welcome!  ;)

Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Bald_Eagle1 on March 04, 2014, 09:42:18 PM
Maybe this document will help (different model, but maybe same commands):-

http://wiki.aa.org.uk/images/3/33/TG582n_CLI_Guide_v1.0_public.pdf


Just a few examples:-


xdsl info                     Displays status information about modem
xdsl config                   Modify/Display dsl configuration see page 856
xdsl debug bitloadinginfo     Displays # bits per tone see page 857
xdsl debug deltconfig         Dual Ended Line Testing interface see page 858
xdsl debug deltinfo           Dual Ended Line Test result display see page 859
xdsl debug modemoptioninfo    The modem options bitmap display see page 860
xdsl debug multimode          Config custom multimode see page 861
xdsl debug traceconfig        Config the adsl tracelevel see page 862
xdsl version                  Display xdsl version information. see page 863
de]

Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Vaako on March 04, 2014, 10:28:54 PM
Thank you so much for your help!

The strange thing is that if I put any command like "xdsl info" results are:
Code: [Select]
{Administrator}=>xdsl info
-sh: xdsl: not found
{Administrator}=>

I don't now what I'm doing wrong.
My Linux knowledge is minimal jus tto let you know.

If I put the command "help" this is the output:
Code: [Select]
{Administrator}=>help

Built-in commands:
-------------------
        . : [ [[ alias bg break cd chdir continue echo eval exec exit
        export false fg hash help jobs kill let local pwd read readonly
        return set shift source test times trap true type ulimit umask
        unalias unset wait

{Administrator}=>

The command "ls" was possible after I did this:
cd ..
ls

Code: [Select]
{Administrator}=>ls
bin          init         mnt          root         tmp
dev          lib          opt          sbin         usr
etc          linuxrc      proc         scripts      var
home         log.txt      release.txt  sys          xdsl
{Administrator}=>

Any suggestions what I can try next?
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: burakkucat on March 04, 2014, 10:36:39 PM
Please show us the output produced by the following command lines --

echo $PATH
ls -l /bin
ls -l /sbin
ls -l xdsl


You might like to see if ./xdsl info produces any output . . .  :-\
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Vaako on March 04, 2014, 11:00:15 PM
Please show us the output produced by the following command lines --

echo $PATH
ls -l /bin
ls -l /sbin
ls -l xdsl


You might like to see if ./xdsl info produces any output . . .  :-\

Here is the output:

echo $PATH
Code: [Select]
{Administrator}=>echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/scripts:/usr/bin/X11:/usr/local/bin
{Administrator}=>


ls -l /bin
Code: [Select]
{Administrator}=>ls -l /bin
lrwxrwxrwx    1 root     root            7 Aug 16  2013 ash -> busybox
-rwsr-xr-x    1 root     root       351172 Aug 16  2013 busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 cat -> busybox
-rwxrwxrwx    1 root     root        41356 Aug 16  2013 chkimage
lrwxrwxrwx    1 root     root            7 Aug 16  2013 chmod -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 chown -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 cp -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 date -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 dd -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 df -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 dmesg -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 echo -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 egrep -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 false -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 fgrep -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 getopt -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 grep -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 gunzip -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 gzip -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 hostname -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 ip -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 kill -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 ln -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 login -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 ls -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 mkdir -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 mknod -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 mktemp -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 mount -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 mt -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 mv -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 netstat -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 pidof -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 ping -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 ping6 -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 ps -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 pwd -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 rm -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 rmdir -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 run-parts -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 sed -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 sh -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 sleep -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 stty -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 su -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 sync -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 touch -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 true -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 umount -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 uname -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 usleep -> busybox
lrwxrwxrwx    1 root     root            7 Aug 16  2013 vi -> busybox
-rwxr-xr-x    1 root     root       171416 Aug 16  2013 wget
-rwxr-xr-x    1 root     root        64420 Aug 16  2013 wput
lrwxrwxrwx    1 root     root            7 Aug 16  2013 zcat -> busybox
{Administrator}=>


ls -l /sbin
Code: [Select]
{Administrator}=>ls -l /sbin
-rwxr-xr-x    1 root     root         3280 Aug 16  2013 add_syslog
lrwxrwxrwx    1 root     root           14 Aug 16  2013 arp -> ../bin/busybox
-rwxr-xr-x    1 root     root       132204 Aug 16  2013 call_qcsapi
-rwxr-xr-x    1 root     root       815844 Aug 16  2013 cwmpd
lrwxrwxrwx    1 root     root           14 Aug 16  2013 getty -> ../bin/busybox
lrwxrwxrwx    1 root     root           14 Aug 16  2013 halt -> ../bin/busybox
-rwxr-xr-x    1 root     root          502 Aug 16  2013 hotplug
-rwxr-xr-x    1 root     root         6788 Aug 16  2013 htpasswd
lrwxrwxrwx    1 root     root           14 Aug 16  2013 hwclock -> ../bin/busybox
lrwxrwxrwx    1 root     root           14 Aug 16  2013 ifconfig -> ../bin/busybox
lrwxrwxrwx    1 root     root           14 Aug 16  2013 ifdown -> ../bin/busybox
lrwxrwxrwx    1 root     root           14 Aug 16  2013 ifup -> ../bin/busybox
lrwxrwxrwx    1 root     root           14 Aug 16  2013 init -> ../bin/busybox
lrwxrwxrwx    1 root     root           14 Aug 16  2013 insmod -> ../bin/busybox
-rwxr-xr-x    1 root     root         6008 Aug 16  2013 ipv6-mgmt
-rwxr-xr-x    1 root     root        70708 Aug 16  2013 iwconfig
lrwxrwxrwx    1 root     root            8 Aug 16  2013 iwevent -> iwconfig
lrwxrwxrwx    1 root     root            8 Aug 16  2013 iwgetid -> iwconfig
lrwxrwxrwx    1 root     root            8 Aug 16  2013 iwlist -> iwconfig
lrwxrwxrwx    1 root     root            8 Aug 16  2013 iwpriv -> iwconfig
lrwxrwxrwx    1 root     root            8 Aug 16  2013 iwspy -> iwconfig
lrwxrwxrwx    1 root     root           14 Aug 16  2013 klogd -> ../bin/busybox
-rwxr-xr-x    1 root     root         6900 Aug 16  2013 l2tftp
lrwxrwxrwx    1 root     root           14 Aug 16  2013 lsmod -> ../bin/busybox
-rwxr-xr-x    1 root     root        46532 Aug 16  2013 mini_httpd
lrwxrwxrwx    1 root     root           14 Aug 16  2013 modprobe -> ../bin/busybox
-rwxr-xr-x    1 root     root         7792 Aug 16  2013 monitor_reset_device
-rwxr-xr-x    1 root     root         7916 Aug 16  2013 monitor_wifi
lrwxrwxrwx    1 root     root           14 Aug 16  2013 pivot_root -> ../bin/busybox
lrwxrwxrwx    1 root     root           14 Aug 16  2013 poweroff -> ../bin/busybox
-rwxr-xr-x    1 root     root         6552 Aug 16  2013 qpm
lrwxrwxrwx    1 root     root           14 Aug 16  2013 reboot -> ../bin/busybox
-rwxr-xr-x    1 root     root         4972 Aug 16  2013 restore_bootcfg_env
lrwxrwxrwx    1 root     root           14 Aug 16  2013 rmmod -> ../bin/busybox
-rwxr-xr-x    1 root     root         5092 Aug 16  2013 rmt_qcsapi
-rwxr-xr-x    1 root     root         6464 Aug 16  2013 rmt_qcsapi_eth
lrwxrwxrwx    1 root     root           14 Aug 16  2013 route -> ../bin/busybox
-rwxr-xr-x    1 root     root         6468 Aug 16  2013 show_access_points
-rwxr-xr-x    1 root     root         3768 Aug 16  2013 show_rfcal_version
-rwxr-xr-x    1 root     root         4332 Aug 16  2013 show_traffic_rates
lrwxrwxrwx    1 root     root           14 Aug 16  2013 start-stop-daemon -> ../bin/busybox
lrwxrwxrwx    1 root     root           14 Aug 16  2013 sulogin -> ../bin/busybox
lrwxrwxrwx    1 root     root           14 Aug 16  2013 syslogd -> ../bin/busybox
-rwxr-xr-x    1 root     root       168800 Aug 16  2013 tc
-rwxr-xr-x    1 root     root         8408 Aug 16  2013 tch_dfs_reentry
-rwxr-xr-x    1 root     root        10344 Aug 16  2013 tch_events
-rwxr-xr-x    1 root     root         5652 Aug 16  2013 tch_led
-rwxr-xr-x    1 root     root        16428 Aug 16  2013 tch_monitor
-rwxr-xr-x    1 root     root        11048 Aug 16  2013 tch_traffic_monitor
-rwxr-xr-x    1 root     root        20280 Aug 16  2013 tch_vb_discover
drwxrwxr-x    4 root     root            0 Aug 16  2013 transformer
-r--r--r--    1 root     root         3091 Aug 16  2013 transformer.lua
-rwxr-xr-x    1 root     root        28716 Aug 16  2013 ucicli
lrwxrwxrwx    1 root     root           14 Aug 16  2013 udhcpc -> ../bin/busybox
lrwxrwxrwx    1 root     root           14 Aug 16  2013 vconfig -> ../bin/busybox
-rwxr-xr-x    1 root     root         4176 Aug 16  2013 writerfmem
{Administrator}=>


ls -l xdsl
Code: [Select]
{Administrator}=>ls -l xdsl
-rw-r--r--    1 root     root            0 Jan  2 03:44 xdsl
{Administrator}=>


./xdsl info
Code: [Select]
{Administrator}=>./xdsl info
-sh: ./xdsl: Permission denied
{Administrator}=>

Permission denied even after I use superuser:
Code: [Select]
{Administrator}=>su


BusyBox v1.10.3 (2013-08-16 16:29:13 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

{Administrator}=>./xdsl
sh: ./xdsl: Permission denied
{Administrator}=>
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: roseway on March 04, 2014, 11:12:34 PM
One possibility is that the file xdsl isn't executable. This may be grasping at straws but you could try

Code: [Select]
sh xdsl

or

sh ./xdsl
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: burakkucat on March 05, 2014, 12:57:05 AM
One possibility is that the file xdsl isn't executable.

The problem is more fundamental than that.

Code: [Select]
{Administrator}=>ls -l xdsl
-rw-r--r--    1 root     root            0 Jan  2 03:44 xdsl
{Administrator}=>

We can see that the file xdsl has a size of zero!  :o
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Vaako on March 05, 2014, 01:25:39 AM
One possibility is that the file xdsl isn't executable. This may be grasping at straws but you could try

Code: [Select]
sh xdsl

or

sh ./xdsl

Hmmm,

I tryed both and it gives no output:

Code: [Select]
{Administrator}=>sh xdsl
{Administrator}=>

Code: [Select]
{Administrator}=>sh ./xdsl
{Administrator}=>


Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: roseway on March 05, 2014, 07:17:45 AM
Quote
We can see that the file xdsl has a size of zero!

I missed that. It rather suggests that the CLI has been disabled in the firmware (unless there's another xdsl executable somewhere else on the system).
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Vaako on March 05, 2014, 01:10:53 PM
I also was looking to enable a telnet server on this modem and find out that telnetd is already installed but not enabled.

Telnetd schould be in /usr/sbin/telnetd
Code: [Select]
{Administrator}=>cd usr
{Administrator}=>cd sbin
{Administrator}=>ls
brctl           flash_info      jffs2dump       wdskey
chpasswd        hostapd         mkfs.jffs2      wpa_cli
flash_erase     hostapd_cli     ntpclient       wpa_supplicant
flash_eraseall  inetd           telnetd
{Administrator}=>

/etc/inetd.conf
The inetd.conf has this line:
Code: [Select]
telnet stream  tcp     nowait  root    /usr/sbin/telnetd   /usr/sbin/telnetd
Does someone knows what parts are needed to run the telnetd server?
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: burakkucat on March 05, 2014, 03:59:10 PM
I also was looking to enable a telnet server on this modem and find out that telnetd is already installed but not enabled.

Huh?  ??? 

Of course it is enabled. You have successfully connected to the device using a telnet client executing on the computer. (The computer's telnet client requires that the modem/router's telnet server should be active.) 
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Vaako on March 05, 2014, 04:53:28 PM
I also was looking to enable a telnet server on this modem and find out that telnetd is already installed but not enabled.

Huh?  ??? 

Of course it is enabled. You have successfully connected to the device using a telnet client executing on the computer. (The computer's telnet client requires that the modem/router's telnet server should be active.)

I do not connect to Telnet via IP address.
I connect via the modem onboard connector with an TTL-to-RS232 converter.
115200 baud / Data bits 8 / Parity 0 / Stop bits 1 / Flow Control None

I also found out that rc.local / rc.conf file does not exist on this system, so it must be a SYSTEMD !?
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: burakkucat on March 05, 2014, 05:05:50 PM
I do not connect to Telnet via IP address.
I connect via the modem onboard connector with an TTL-to-RS232 converter.
115200 baud / Data bits 8 / Parity 0 / Stop bits 1 / Flow Control None

Ah, I see. You are connecting via modem's console serial port UART. So what is the result of trying --

/usr/sbin/inetd &

Quote
I also found out that rc.local / rc.conf file does not exist on this system, so it must be a SYSTEMD !?

I don't think so. Earlier you showed us the listing of the contents of the /sbin/ directory and there was present, in the output --

Code: [Select]
lrwxrwxrwx    1 root     root           14 Aug 16  2013 init -> ../bin/busybox

It is not mandatory for an init based system to have an rc.local, an rc.sysinit or an rc.conf file(s).
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Vaako on March 06, 2014, 01:43:32 AM
Hi burakkucat,

Yeah, thats right I connect via the serial pins directly on the modem's PCB but it is a TTL signal and schould be converted to RS232 level.

This is the result of  /usr/sbin/inetd &

Code: [Select]
{Administrator}=>/usr/sbin/inetd &
[1] + Done                       /usr/sbin/inetd
{Administrator}=>

Is it possible to Enable telnet via inetd, these are used for startup services or not?


Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: burakkucat on March 06, 2014, 02:04:04 AM
I was wondering if that was enough to start inetd and, thus, telnetd (the telnet server) on the modem.

Having executed /usr/sbin/inetd &, are you now able to access the modem via telnet?

If that is unsuccessful, power cycle the modem (to reset everything) and then execute /usr/sbin/telnetd &. Now try to access the modem via telnet, one again.

I'm not sure exactly how the various services are started on that modem . . . I do not have any experience of using one. I'm just guessing, based on the information that you have been able to show.  ;)
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Vaako on March 06, 2014, 08:33:07 AM
I power cycle the modem and did the /usr/sbin/inetd & again but no telnet at port 23.

Could it be that the file /etc/inetd.conf contains the wrong information?
This is inside my curent file:
Code: [Select]
telnet stream  tcp     nowait  root    /usr/sbin/telnetd   /usr/sbin/telnetd
This is what I found on the net, but it seems dont like the option "-a".

http://en.wikipedia.org/wiki/Inetd (http://en.wikipedia.org/wiki/Inetd)
Code: [Select]
telnet  stream  tcp    nowait  root    /usr/sbin/telnetd      telnetd -a
If I try to start it manual I see this result:
Code: [Select]
{Administrator}=>/usr/sbin/telnetd -a
/usr/sbin/telnetd: invalid option -- a
BusyBox v1.10.3 (2013-08-16 16:29:13 CEST) multi-call binary

Usage: telnetd [OPTION]

{Administrator}=>

When I start it whitout "-a" I get this result:
Strange caracters and back to login.
Code: [Select]
{Administrator}=>/usr/sbin/telnetd
ÿýÿýÿý!ÿûÿû
TG233 login:

Here some more info about ined:
http://www.physics.udel.edu/~bnikolic/teaching/phys660/RUTE/rute/node32.html (http://www.physics.udel.edu/~bnikolic/teaching/phys660/RUTE/rute/node32.html)
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: burakkucat on March 06, 2014, 02:25:35 PM
If you take a look at the long listing of the telnetd entry in the /usr/sbin/ directory, I expect that you will see it is a symbolic link to the busybox binary . . . and the version of busybox that is present in the modem/router has not been built to accept a -a flag (when it is called as telnetd).

ls -l /usr/sbin/telnetd will probably show something like --

Code: [Select]
lrwxrwxrwx    1 root     root           14 Aug 16  2013 /usr/sbin/telnetd -> ../../bin/busybox

It does seem as if all means of access have been disabled, one way or another.  :(
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Vaako on March 06, 2014, 03:13:59 PM
If you take a look at the long listing of the telnetd entry in the /usr/sbin/ directory, I expect that you will see it is a symbolic link to the busybox binary . . . and the version of busybox that is present in the modem/router has not been built to accept a -a flag (when it is called as telnetd).

ls -l /usr/sbin/telnetd will probably show something like --

Code: [Select]
lrwxrwxrwx    1 root     root           14 Aug 16  2013 /usr/sbin/telnetd -> ../../bin/busybox

It does seem as if all means of access have been disabled, one way or another.  :(

yeah you're right:
Code: [Select]
{Administrator}=>ls -l /usr/sbin/telnetd
lrwxrwxrwx    1 root     root           17 Aug 16  2013 /usr/sbin/telnetd -> ../../bin/busybox
{Administrator}=>

Is it possible to find out how they disabled it and or is there mabe a possebility for a workaround?
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: burakkucat on March 06, 2014, 04:04:52 PM
Other than completely rebuilding the firmware, I can not see any other way. Sorry.  :(
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Vaako on March 06, 2014, 05:17:31 PM
So they limiting this firmware by disable things, any thoughts why they would do that?
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: burakkucat on March 06, 2014, 06:39:49 PM
 :shrug2:  To stop end users examining or changing certain setting, perhaps? That has also been done by some service providers in the UK . . .  :-X
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Vaako on March 09, 2014, 02:28:53 AM
Thanks to all of you for your effort!!!!

At least we have tryed  :)
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: krypton on March 09, 2014, 11:46:14 AM
You can try this:

telnetd -p 2323 -l /bin/sh

If this works, it should be possible to connect to port 2323.
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Vaako on March 21, 2014, 12:08:28 AM
You can try this:

telnetd -p 2323 -l /bin/sh

If this works, it should be possible to connect to port 2323.

Hi morphium,

I overlook you post, sorry!

I have tried the command you suggest:
telnetd -p 2323 -l /bin/sh

This is the output, it does not now the option -p
Code: [Select]
{Administrator}=>telnetd -p 2323 -l /bin/sh
telnetd -p 2323 -l /bin/sh
telnetd: invalid option -- p
BusyBox v1.10.3 (2013-08-16 16:29:13 CEST) multi-call binary

Usage: telnetd [OPTION]

{Administrator}=>

The moment you dare to execute telnetd you're be kicket and back to login again  >:(
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Vaako on March 22, 2014, 05:02:16 PM
I also found this file and there is something about Telnet in it.

/etc/init.d/S42inetd :
Code: [Select]
{Administrator}=>cat S42inetd
cat S42inetd
cat S42inetd
cat S42inetd
#!/bin/sh
#
# Start inetd
#

start() {
        if [ -f /mnt/jffs2/telnet-disabled ]; then
                echo "Telnet disabled"
        elif [ -f /etc/inetd.conf ]; then
                echo "Starting inetd ..."
                /usr/sbin/inetd
        fi
}
stop() {
        if [ -f /etc/inetd.conf ]; then
                echo -n "Stopping inetd ..."
                killall -q inetd
        fi
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart|reload)
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart}"
        exit 1
esac

exit $?

{Administrator}=>

Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: burakkucat on March 22, 2014, 05:22:30 PM
Within that script, the start() function checks the /mnt/jffs2/ directory for the presence of a file called telnet-disabled.

If that file exists, then inetd will not be started.

If that file does not exist, then inetd will be started.
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Vaako on March 22, 2014, 06:14:34 PM
Within that script, the start() function checks the /mnt/jffs2/ directory for the presence of a file called telnet-disabled.

If that file exists, then inetd will not be started.

If that file does not exist, then inetd will be started.

Hmmm, I don't understand why they would do that.
I like to Enable the Telnet server and I thought that starting inetd would start telnetd.

The file telnet-disabled is not in the directory:
Code: [Select]
{Administrator}=>cd jffs2
{Administrator}=>ls
admin.conf             hostapd.deny.wifi0     wifi_mac_addrs
cwmpd.db               tch_cwmp_conf          wireless_conf.txt
enable_autostart       tch_monitor.conf       wireless_conf.txt.bak
eth_macaddr            tch_ntp.conf
hostapd.conf           tch_upgrade.conf
{Administrator}=>
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: burakkucat on March 22, 2014, 06:30:02 PM
Hmmm, I don't understand why they would do that.

Agreed. It is one of those little mysteries.

Quote
I like to Enable the Telnet server and I thought that starting inetd would start telnetd.

The file telnet-disabled is not in the directory:

In that case, inetd should be started . . . or should be able to be started.

Take a look at the currently running processes (with the ps command). Issue the command line:

/etc/init.d/S42inetd start

Now recheck the running processes.

[ Edited: inet.d --> init.d ]
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Vaako on March 22, 2014, 07:44:26 PM
I have made a little typo: /etc/inet.d/S42inetd schould be /etc/init.d/S42inetd

/etc/init.d/S42inetd start
Code: [Select]
{Administrator}=>/etc/init.d/S42inetd start
Starting inetd ...
{Administrator}=>

It starts and this are the processes:
Code: [Select]
{Administrator}=>/etc/init.d/S42inetd start
Starting inetd ...
{Administrator}=>ps
  PID USER       VSZ STAT COMMAND
    1 root      1496 S    init
    2 root         0 SW<  [kthreadd]
    3 root         0 SW<  [ksoftirqd/0]
    4 root         0 SW<  [events/0]
    5 root         0 SW<  [khelper]
    6 root         0 SW<  [async/mgr]
    7 root         0 SW<  [ruby_pm/0]
    8 root         0 SW<  [kblockd/0]
    9 root         0 SW   [pdflush]
   10 root         0 SW   [pdflush]
   11 root         0 SW<  [kswapd0]
   12 root         0 SW<  [mtdblockd]
   25 root         0 SWN  [jffs2_gcd_mtd2]
  224 root      1496 S    /usr/sbin/inetd
  227 root      1488 S    /sbin/syslogd -n -L -m 0 -s 48
  228 root      1480 S    /sbin/klogd -n
  318 root      1032 S    iwevent --syslog
  442 root      2792 S    hostapd -B /mnt/jffs2//hostapd.conf
  538 root      1488 S    /bin/sh /scripts/cmdloop call_qcsapi -server -eth
  544 root      1544 S    call_qcsapi -server -eth
  563 root      1488 S    /bin/sh /scripts/cmdloop /sbin/tch_vb_discover -t 3 -
  568 root       808 S    /sbin/tch_vb_discover -t 3 -i br0 -e eth1_0 -w wifi0
  673 root      4760 S    cwmpd
  687 root      4760 S    cwmpd
  688 root      4760 S    cwmpd
  692 root      1384 S    tch_events -i br0 -a A4B1E9AEFF12
  708 root      1488 S    /sbin/udhcpc -i br0 -s /usr/share/udhcpc/default.scri
 1151 root      1504 S    -sh
 2150 root      1496 S    sh
 2392 root      1496 S    /usr/sbin/inetd
 2421 root      1496 S    /usr/sbin/inetd
 2422 root      1488 R    ps
{Administrator}=>
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: burakkucat on March 22, 2014, 09:45:52 PM
Yes, I can see there are three separate invocations of inetd currently active . . .

Quote
{Administrator}=>ps
  PID USER       VSZ STAT COMMAND
<snip>
   25 root         0 SWN  [jffs2_gcd_mtd2]
  224 root      1496 S    /usr/sbin/inetd

  227 root      1488 S    /sbin/syslogd -n -L -m 0 -s 48
<snip>
 2150 root      1496 S    sh
 2392 root      1496 S    /usr/sbin/inetd
 2421 root      1496 S    /usr/sbin/inetd

 2422 root      1488 R    ps
<snip>

But still the telnet server is inactive.  :(
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Vaako on March 23, 2014, 01:44:02 AM
I discover the IP address where I'm able to get Telnet access to ;)

My modem's IP 192.168.2.1
Telnet access via IP 192.168.2.62


Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: burakkucat on March 23, 2014, 10:54:36 AM
How interesting.  :)

And "well done" in discovering that IPv4 address.
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: Vaako on March 23, 2014, 01:58:58 PM
I discovered it when I was looking at a file called ipaddr in /etc/ directory.

Code: [Select]
{Administrator}=>cat ipaddr
cat ipaddr
192.168.2.62
{Administrator}=>

I assign the modem IP address 192.168.2.1 and IP 192.168.2.2 is my router WAN that connects to the modem so I did not understand what this IP could be.
I did an portscan on that IP address and BINGO Telnet port 23 was open and available ;D


Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: burakkucat on March 23, 2014, 05:38:01 PM
Just "purrfect".   :)
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: rootbeer on March 31, 2014, 08:26:03 PM
I have a B-Box and get a telnet login on 192.168.1.62 my gateway is 192.168.1.1. (through ethernet cable)
Thanks for that IP by the way, but I can't login.
Can you do an ls and a cat on files: /etc/passwd  and /etc/shadow?  or if you know default user and password that would help too.
Title: Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
Post by: DYNAMIC+ on May 24, 2015, 11:19:45 AM
Hi,

I have managed to make a connection via Serial-Console to the Technicolor TG789Bvn / TG799vn wich is the O-Box 3 here in Belgium.
Although it is also possible to access it via Telnet if I connect a TTL to RS232 to ETHERNET converter that than is accessable via a IP address.

The command prompt that shows up is:

TG233 login:

After put the name Administrator I see this output:

Code: [Select]
TG233 login: starting pid 1049, tty '/dev/ttyS0': '/bin/login'^C
starting pid 1050, tty '/dev/ttyS0': '/bin/login'
TG233 login:
TG233 login: Administrator


BusyBox v1.10.3 (2013-08-16 16:29:13 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

------------------------------------------------------------------------



                             ______  Technicolor TG799vn v2

                         ___/_____/\

                        /         /\\  10.5.D.W

                  _____/__       /  \\

                _/       /\_____/___ \  Copyright (c) 1999-2013, Technicolor

               //       /  \       /\ \

       _______//_______/    \     / _\/______

      /      / \       \    /    / /        /\

   __/      /   \       \  /    / /        / _\__

  / /      /     \_______\/    / /        / /   /\

 /_/______/___________________/ /________/ /___/  \

 \ \      \    ___________    \ \        \ \   \  /

  \_\      \  /          /\    \ \        \ \___\/

     \      \/          /  \    \ \        \  /

      \_____/          /    \    \ \________\/

           /__________/      \    \  /

           \   _____  \      /_____\/

            \ /    /\  \    /___\/

             /____/  \  \  /

             \    \  /___\/

              \____\/



------------------------------------------------------------------------

{Administrator}=>
{Administrator}=>


What commands are used to show the dsl information.

Any help is welcome!  ;)

hello...
sorry for this reply, but i cant find anything different from this on entire internet.

as i read you managed to access serial console of TG799vn.
i also have this router; i have already opened it, and on top/left of pcb there
seems to be a [1] serial-header but i cant find TX/RX pins: i need to bridge some circuits soldering?
is there some datasheet?