LS-GL:ps


ps

root@UDE:~# ps
  PID  Uid     VmSize Stat Command
    1 root        564 S   init
    2 root            SWN [ksoftirqd/0]
    3 root            SW< [events/0]
    4 root            SW< [khelper]
    5 root            SW< [kthread]
   11 root            SW< [kblockd/0]
   14 root            SW  [khubd]
   29 root            SW  [crypto]
   30 root            SW  [crypto_ret]
   51 root            SW  [pdflush]
   52 root            SW  [pdflush]
   54 root            SW< [aio/0]
   53 root            SW  [kswapd0]
   55 root            SW< [xfslogd/0]
   56 root            SW< [xfsdatad/0]
   57 root            SW  [xfsbufd]
  181 root            SW  [scsi_eh_0]
  182 root            SW  [scsi_eh_1]
  196 root            SW  [mtdblockd]
  266 root            SW  [xfssyncd]
  466 root            SW  [kjournald]
  495 root        496 S   /sbin/dhcpcd -L /etc/dhcpc -h UDE -t 30 eth0
  520 root        684 S   syslogd -m 0
  522 root        480 S   klogd
  526 root        764 S   /usr/sbin/inetd
  529 root        956 S   /bin/sh /usr/local/sbin/kernelmon
  535 root        500 S   /usr/local/sbin/miconmon -d
  548 root            SW  [xfssyncd]
  556 root        524 S   /usr/local/sbin/diskmon
  559 root        484 S   /usr/local/sbin/errormon
  563 root        508 S   cat /proc/driver/kernevnt
  579 root        524 S   /usr/sbin/telnetd
  630 root       1072 S   /usr/local/apache/bin/httpd
  638 root       1236 S   /usr/local/apache/bin/httpd
  639 root       1244 S   /usr/local/apache/bin/httpd
  640 root       1236 S   /usr/local/apache/bin/httpd
  641 root       1236 S   /usr/local/apache/bin/httpd
  642 root       1240 S   /usr/local/apache/bin/httpd
  650 root        516 S   /usr/local/sbin/clientUtil_server -i eth0
  652 root        844 S   /usr/local/sbin/lsprcvd
  655 root        508 S   /usr/local/sbin/daemonwatch -a /etc/daemonwatch.list
  658 root        736 S   /usr/sbin/crond
  662 root        484 S   /usr/local/sbin/logchkd
  673 root        616 S   /sbin/getty -L ttyS0 115200 vt100
 1364 root       1240 S   /usr/local/apache/bin/httpd
 1424 root       1240 S   /usr/local/apache/bin/httpd
 1740 root       2544 S   /usr/local/sbin/smbd -D
 1742 root       2532 S   /usr/local/sbin/smbd -D
 1749 root       1740 S   /usr/local/sbin/nmbd -D
 1852 root       1208 S   -sh
 1855 root        716 R   ps
root@UDE:~#

init

動いてるやん。

/usr/sbin/inetd

inetd も動いてる。
root@UDE:~# more /etc/inetd.conf
# /etc/inetd.conf:  see inetd(8) for further informations.
#
# Internet server configuration database
#
#
#rsync   stream  tcp     nowait  root    /usr/sbin/tcpd  /usr/local/bin/rsync --daemon
#8873    stream  tcp     nowait  nobody  /usr/sbin/tcpd  /usr/local/sbin/rsfwds
rsync   stream  tcp     nowait  root    /usr/local/bin/rsync    /usr/local/bin/rsync --daemon
8873    stream  tcp     nowait  nobody  /usr/local/sbin/rsfwds  /usr/local/sbin/rsfwds
root@UDE:~#
LinkStation どうしのバックアップとは、rsync のことか?。
/usr/local/sbin/rsfwds は何?

/bin/sh /usr/local/sbin/kernelmon

何やらスクリプトが動いている。カーネルモニタリングか?。

/usr/local/sbin/miconmon

root@UDE:~# file /usr/local/sbin/miconmon
/usr/local/sbin/miconmon: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.4.17, dynamically linked (uses shared libs), stripped
micon とは?AVR ?

/usr/local/sbin/diskmon

ディスクモニタか?

/usr/local/sbin/errormon

同じく、エラーモニタか?

cat /proc/driver/kernevnt

/usr/local/sbin/kernelmon から起動されている。

/usr/local/sbin/clientUtil_server -i eth0

文字通りクライアントユーティリティのお相手をするサーバか?

/usr/local/sbin/lsprcvd

???

/usr/local/sbin/daemonwatch -a /etc/daemonwatch.list

root@UDE:~# cat /etc/daemonwatch.list
/var/run/apache/httpd.pid       /etc/init.d/httpd.sh restart
/var/run/smbd.pid               /etc/init.d/smb.sh restart
/var/run/clientUtil_server-eth0.pid     /etc/init.d/clientUtil_servd.sh restart
root@UDE:~#
以前は ppc_uartd がやっていたプロセス監視

/usr/local/sbin/logchkd

ログチェック??

/sbin/getty -L ttyS0 115200 vt100

シリアルコンソール!やっぱり。
ちょっと模様替え




LS-GL:root のパスワードの変更
ハックの記録
LinkStation/玄箱 をハックしよう

LS-GL:起動音

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