inloggen met telnet op een western digital n900

Pagina: 1
Acties:

Acties:
  • 0 Henk 'm!

  • thunder7
  • Registratie: Januari 2003
  • Laatst online: 20:58

thunder7

houten vaas/schaal nodig?

Topicstarter
In een poging te onderzoeken of een Western Digital My Net N900 router overweg zou kunnen met een 4TB usb disk, ben ik er achter gekomen dat je met telnet kunt inloggen op het apparaat.

na het downloaded van het GPL source pakket, blijkt dat er een

192.168.1.1/telnet.php

pagina bestaat. De inlognaam Alphanetworks staat ook alvast in het bestand. Voor het wachtwoord moet je wat verder zoeken, want dat staat kennelijk in /etc/config/image_sign. Gelukkig zijn er andere scripts in het source pakket waarbij wat 'if ... then ...' statements worden losgelaten op dat bestand, zodat het nu duidelijk is dat het bijbehorende wachtwoord wrgnd15_wd_pro is.

Inloggen doet verder niet zo veel, busybox is erg uitgekleed:


# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
none on /proc type proc (rw,relatime)
ramfs on /var type ramfs (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
tmpfs on /dev type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
# cat /proc/cpuinfo
Vendor          : Ubicom
CPU             : IP8K
MMU             : enabled
FPU             : enabled
Arch            : 4
Rev             : 1
Clock Freq      : 600.0 MHz
DDR Freq        : 533.0 MHz
BogoMips        : 589.82
Calibration     : 294912000 loops
Hardware        : UbicomIP8K
cpu[00]         : thread id - 6
cpu[01]         : thread id - 2
cpu[02]         : thread id - 3
cpu[03]         : thread id - 4
cpu[04]         : thread id - 5
# df 
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                10624     10624         0 100% /
tmpfs                   126720       144    126576   0% /dev
# busybox
BusyBox v1.18.1 (2013-02-07 11:40:56 CST) multi-call binary.
Copyright (C) 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: busybox --list[-full]
   or: function [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as.

Currently defined functions:
        [, [[, addgroup, adduser, arp, ash, awk, basename, cat, chmod,
        chpasswd, cp, cryptpw, cut, date, dd, delgroup, deluser, df,
        dnsdomainname, du, echo, egrep, expr, false, fdisk, fgrep, find, free,
        fuser, grep, gunzip, gzip, hd, hexdump, hostname, id, ifconfig, init,
        insmod, kill, killall, killall5, ln, ls, lsmod, md5sum, mkdir, mknod,
        mkpasswd, mkswap, modprobe, mount, mv, netstat, nice, passwd, pidof,
        ping, ping6, ps, pwd, renice, rm, rmdir, rmmod, route, sed, sh, sleep,
        swapoff, swapon, sync, sysctl, tar, test, tftp, tftpd, top, touch, tr,
        true, tunctl, umount, uname, uptime, vconfig, vi, wc, wget, xargs, yes,
        zcat
# free
             total         used         free       shared      buffers
Mem:        253456        86928       166528            0         6544
-/+ buffers:              80384       173072
Swap:            0            0            0


volgens /proc/config.gz is advanced partition support en ext4 compiled in, dus ik heb goede hoop :-)

Ik wilde gewoon ergens vastleggen dat je telnet aan kunt zetten, vandaar deze post.

hout-nerd - www.hetmooistehout.nl of www.houtenschalen.nl