散歩


telnet できるようになったので、動的な情報を見てみる。

DISK 容量

~ # df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/ram0                15863     13326      2537  84% /
/dev/mtdblock2             192       100        92  52% /mnt
~ #
/ はトータル 15MB、残り 2.5MB ほど。
遊ぶには足りなさそう。

/mnt

/mnt は Flash メモリ?
~ # ls -l /mnt
-rw-r--r--    1 root     root          522 Jan  1 09:00 mediasession.conf
-rw-r--r--    1 root     root            3 Jan  1  1970 volume
設定ファイルがあるよう。

/proc

~ # ls /proc
1            69           79           crypto       ioports      partitions
17           7            8            devices      kallsyms     self
2            70           80           diskstats    kmsg         slabinfo
3            71           81           driver       loadavg      stat
39           72           88           execdomains  locks        sys
4            73           9            fb           meminfo      sysvipc
44           74           buddyinfo    filesystems  misc         tty
5            75           bus          fs           modules      uptime
6            76           cmdline      ingenient    mounts       version
67           77           cpu          interrupts   mtd          vmstat
68           78           cpuinfo      iomem        net
~ # cat /proc/cmdline
root=/dev/ram0 rw mem=44M
~ # cat /proc/cpuinfo
Processor       : ARM926EJ-Sid(wb) rev 3 (v5l)
BogoMIPS        : 100.96
Features        : swp half thumb fastmult
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant     : 0x0
CPU part        : 0x926
CPU revision    : 3
Cache type      : VIPT write-back
Cache clean     : cp15 c7 ops
Cache lockdown  : format C
Cache format    : Harvard
I size          : 16384
I assoc         : 4
I line length   : 32
I sets          : 128
D size          : 8192
D assoc         : 4
D line length   : 32
D sets          : 64

Hardware        : IT DM320-20
Revision        : 0000
Serial          : 0000000000000000
~ # cat /proc/meminfo
MemTotal:        42644 kB
MemFree:         15032 kB
Buffers:         16384 kB
Cached:           5692 kB
SwapCached:          0 kB
Active:          21388 kB
Inactive:         3852 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:        42644 kB
LowFree:         15032 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:               0 kB
Writeback:           0 kB
Mapped:           5536 kB
Slab:             1144 kB
Committed_AS:    25460 kB
PageTables:        184 kB
VmallocTotal:   212992 kB
VmallocUsed:      1032 kB
VmallocChunk:  4128768 kB
~ # cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00010000 "bootloader"
mtd1: 00010000 00010000 "bootenv"
mtd2: 00030000 00010000 "data"
~ #

mtd2

~ # cat /dev/mtd2 > /tmp/mtd2
~ # ls -l /tmp/mtd2
-rw-r--r--    1 root     root       196608 Jan  1 09:12 /tmp/mtd2
~ #
192KB

プロセス

~ # ps
  PID  Uid     VmSize Stat Command
    1 root        576 S   init
    2 root            SWN [ksoftirqd/0]
    3 root            SW< [events/0]
    4 root            SW< [kblockd/0]
    5 root            SW  [pdflush]
    6 root            SW  [pdflush]
    7 root            SW  [kswapd0]
    8 root            SW< [aio/0]
    9 root            SW  [mtdblockd]
   17 root            SWN [jffs2_gcd_mtd2]
   39 root        536 S   /usr/sbin/dhcpcd -n -l 60
   44 root        444 S   /sbin/telnetd
   67 root        568 S   /usr/bin/mbwatch /home/mediasession
   68 root        536 S   /sbin/getty 115200 ttyS0 vt100
   69 root       4604 S   /home/mediasession
   70 root       4604 S   /home/mediasession
   71 root       4604 S   /home/mediasession
   72 root       4604 S   /home/mediasession
   73 root       4604 S   /home/mediasession
   74 root       4604 S   /home/mediasession
   75 root       4604 S   /home/mediasession
   76 root       4604 S   /home/mediasession
   77 root       4604 S   /home/mediasession
   78 root       4604 S   /home/mediasession
   79 root       4604 S   /home/mediasession
   80 root       4604 S   /home/mediasession
   81 root        852 S   -sh
  105 root        692 R   ps
~ #



PC-P1LAN に telnet
ハックの記録
PC-P1LAN をハックしよう

nxterm

Copyright (C) 2006 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市