Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: 1 [2] 3

Author Topic: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet  (Read 23748 times)

Vaako

  • Member
  • **
  • Posts: 30
Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
« Reply #15 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
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
« Last Edit: March 06, 2014, 09:06:55 AM by Vaako »
Logged
Regards,
Vaako

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
« Reply #16 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.  :(
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

Vaako

  • Member
  • **
  • Posts: 30
Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
« Reply #17 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?
Logged
Regards,
Vaako

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
« Reply #18 on: March 06, 2014, 04:04:52 PM »

Other than completely rebuilding the firmware, I can not see any other way. Sorry.  :(
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

Vaako

  • Member
  • **
  • Posts: 30
Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
« Reply #19 on: March 06, 2014, 05:17:31 PM »

So they limiting this firmware by disable things, any thoughts why they would do that?
Logged
Regards,
Vaako

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
« Reply #20 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
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

Vaako

  • Member
  • **
  • Posts: 30
Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
« Reply #21 on: March 09, 2014, 02:28:53 AM »

Thanks to all of you for your effort!!!!

At least we have tryed  :)
Logged
Regards,
Vaako

krypton

  • Reg Member
  • ***
  • Posts: 128
Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
« Reply #22 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.
Logged

Vaako

  • Member
  • **
  • Posts: 30
Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
« Reply #23 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  >:(
« Last Edit: March 21, 2014, 09:01:43 AM by Vaako »
Logged
Regards,
Vaako

Vaako

  • Member
  • **
  • Posts: 30
Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
« Reply #24 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}=>

« Last Edit: March 22, 2014, 07:09:36 PM by Vaako »
Logged
Regards,
Vaako

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
« Reply #25 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.
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

Vaako

  • Member
  • **
  • Posts: 30
Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
« Reply #26 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}=>
Logged
Regards,
Vaako

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
« Reply #27 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 ]
« Last Edit: March 22, 2014, 09:36:05 PM by burakkucat »
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

Vaako

  • Member
  • **
  • Posts: 30
Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
« Reply #28 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}=>
Logged
Regards,
Vaako

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: O-Box 3 (Technicolor TG789Bvn / TG799vn) via Serial Console or Telnet
« Reply #29 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.  :(
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.
Pages: 1 [2] 3
 

anything