ファームウェア 1.64 でハックキットのインストール(2)

LS-VL

ファームウェア 1.64 でハックキットをインストールしようとしたら、 telnet できない「箱」ができてしまった。

楽し!

原因の推測

ping に反応があることから、 以前ハマった eth0/eth1 問題ではない。
それ以外は、、、全く心当たりがない

シリアルコンソールがなく動的に見られないので、
HDD を USB で LS-QL に接続して中を静的に見る

中身を見られるようにする

接続

May 11 17:20:19 qube kernel: usb 2-1: new high speed USB device using ehci_marvell and address 4
May 11 17:20:19 qube kernel: usb 2-1: configuration #1 chosen from 1 choice
May 11 17:20:19 qube kernel: scsi4 : SCSI emulation for USB Mass Storage devices
May 11 17:20:24 qube kernel: scsi 4:0:0:0: Direct-Access     ViPowER  VP-89118(SD1)    2.10 PQ: 0 ANSI: 4
May 11 17:20:24 qube kernel: sd 4:0:0:0: [sdd] 306350978 512-byte hardware sectors (156852 MB)
May 11 17:20:24 qube kernel: sd 4:0:0:0: [sdd] Write Protect is off
May 11 17:20:24 qube kernel: sd 4:0:0:0: [sdd] 306350978 512-byte hardware sectors (156852 MB)
May 11 17:20:24 qube kernel: sd 4:0:0:0: [sdd] Write Protect is off
May 11 17:20:24 qube kernel: sdd: sdd1 sdd2 sdd3 sdd4
May 11 17:20:24 qube kernel: sd 4:0:0:0: [sdd] Attached SCSI disk
May 11 17:20:24 qube kernel: sd 4:0:0:0: Attached scsi generic sg3 type 0

マウント

root@qube:~# mkdir /tmp/root
mkdir: cannot create directory `/tmp/root': File exists
root@qube:~# mount /dev/sdd2 /tmp/root
root@qube:~#

ログを見る

root@qube:~# cd /tmp/root/var/log/
root@qube:/tmp/root/var/log#

daemon.log

telnetd が動いていないということは、 inetd が動いていないということ?
daemon.log を見る
root@qube:/tmp/root/var/log# less daemon.log
May 11 14:02:47 vl inetd[951]: telnet/tcp: bind: Address family not supported by protocol
May 11 14:12:47 vl inetd[951]: telnet/tcp: bind: Address family not supported by protocol
May 11 14:22:47 vl inetd[951]: telnet/tcp: bind: Address family not supported by protocol
May 11 14:32:47 vl inetd[951]: telnet/tcp: bind: Address family not supported by protocol
May 11 14:42:47 vl inetd[951]: telnet/tcp: bind: Address family not supported by protocol
May 11 14:52:47 vl inetd[951]: telnet/tcp: bind: Address family not supported by protocol
May 11 15:02:47 vl inetd[951]: telnet/tcp: bind: Address family not supported by protocol
May 11 15:12:47 vl inetd[951]: telnet/tcp: bind: Address family not supported by protocol
May 11 15:22:47 vl inetd[951]: telnet/tcp: bind: Address family not supported by protocol
May 11 15:30:57 vl init: Switching to runlevel: 0
daemon.log (END)
Address family not supported by protocol ってなに??

sshd をインストールしてみる

標準ファームには ssh でログインできているので、 sshd をインストールしてみる
root@qube:/tmp/root/etc# cd
root@qube:~# chroot /tmp/root
root@qube:/# apt-get update
Get:1 http://ftp.jp.debian.org squeeze Release.gpg [1672 B]
Ign http://ftp.jp.debian.org/debian/ squeeze/main Translation-en
Get:2 http://ftp.jp.debian.org squeeze Release [99.8 kB]
Get:3 http://ftp.jp.debian.org squeeze/main Sources [5769 kB]
Get:4 http://security.debian.org squeeze/updates Release.gpg [836 B]
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Get:5 http://security.debian.org squeeze/updates Release [87.0 kB]
Get:6 http://ftp.jp.debian.org squeeze/main armel Packages [8441 kB]
Get:7 http://security.debian.org squeeze/updates/main Sources [128 kB]
Get:8 http://security.debian.org squeeze/updates/main armel Packages [378 kB]
Fetched 14.9 MB in 29s (513 kB/s)
Reading package lists... Done
root@qube:/# apt-get install openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libbsd0 libedit2 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6
  libxmuu1 openssh-blacklist openssh-blacklist-extra openssh-client xauth
Suggested packages:
  ssh-askpass libpam-ssh keychain rssh molly-guard ufw
The following NEW packages will be installed:
  libbsd0 libedit2 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6
  libxmuu1 openssh-blacklist openssh-blacklist-extra openssh-client
  openssh-server xauth
0 upgraded, 14 newly installed, 0 to remove and 59 not upgraded.
Need to get 6761 kB of archives.
After this operation, 15.8 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org/debian/ squeeze/main openssh-blacklist all 0.4.1 [2125 kB]
Get:2 http://ftp.jp.debian.org/debian/ squeeze/main openssh-blacklist-extra all 0.4.1 [2127 kB]
Get:3 http://ftp.jp.debian.org/debian/ squeeze/main libbsd0 armel 0.2.0-1 [41.4 kB]
Get:4 http://ftp.jp.debian.org/debian/ squeeze/main libedit2 armel 2.11-20080614-2 [60.2 kB]
Get:5 http://ftp.jp.debian.org/debian/ squeeze/main openssh-client armel 1:5.5p1-6+squeeze3 [940 kB]
Get:6 http://ftp.jp.debian.org/debian/ squeeze/main libxau6 armel 1:1.0.6-1 [15.9 kB]
Get:7 http://ftp.jp.debian.org/debian/ squeeze/main libxdmcp6 armel 1:1.0.3-2 [17.9 kB]
Get:8 http://ftp.jp.debian.org/debian/ squeeze/main libxcb1 armel 1.6-1 [40.1 kB]
Get:9 http://ftp.jp.debian.org/debian/ squeeze/main libx11-data all 2:1.3.3-4 [190 kB]
Get:10 http://ftp.jp.debian.org/debian/ squeeze/main libx11-6 armel 2:1.3.3-4 [796 kB]
Get:11 http://ftp.jp.debian.org/debian/ squeeze/main libxext6 armel 2:1.1.2-1 [41.1 kB]
Get:12 http://ftp.jp.debian.org/debian/ squeeze/main libxmuu1 armel 2:1.0.5-2 [15.2 kB]
Get:13 http://ftp.jp.debian.org/debian/ squeeze/main openssh-server armel 1:5.5p1-6+squeeze3 [319 kB]
Get:14 http://ftp.jp.debian.org/debian/ squeeze/main xauth armel 1:1.0.4-1 [31.5 kB]
Fetched 6761 kB in 3s (1917 kB/s)
Preconfiguring packages ...
Selecting previously deselected package openssh-blacklist.
(Reading database ... 10758 files and directories currently installed.)
Unpacking openssh-blacklist (from .../openssh-blacklist_0.4.1_all.deb) ...
Selecting previously deselected package openssh-blacklist-extra.
Unpacking openssh-blacklist-extra (from .../openssh-blacklist-extra_0.4.1_all.deb) ...
Selecting previously deselected package libbsd0.
Unpacking libbsd0 (from .../libbsd0_0.2.0-1_armel.deb) ...
Selecting previously deselected package libedit2.
Unpacking libedit2 (from .../libedit2_2.11-20080614-2_armel.deb) ...
Selecting previously deselected package openssh-client.
Unpacking openssh-client (from .../openssh-client_1%3a5.5p1-6+squeeze3_armel.deb) ...
Selecting previously deselected package libxau6.
Unpacking libxau6 (from .../libxau6_1%3a1.0.6-1_armel.deb) ...
Selecting previously deselected package libxdmcp6.
Unpacking libxdmcp6 (from .../libxdmcp6_1%3a1.0.3-2_armel.deb) ...
Selecting previously deselected package libxcb1.
Unpacking libxcb1 (from .../libxcb1_1.6-1_armel.deb) ...
Selecting previously deselected package libx11-data.
Unpacking libx11-data (from .../libx11-data_2%3a1.3.3-4_all.deb) ...
Selecting previously deselected package libx11-6.
Unpacking libx11-6 (from .../libx11-6_2%3a1.3.3-4_armel.deb) ...
Selecting previously deselected package libxext6.
Unpacking libxext6 (from .../libxext6_2%3a1.1.2-1_armel.deb) ...
Selecting previously deselected package libxmuu1.
Unpacking libxmuu1 (from .../libxmuu1_2%3a1.0.5-2_armel.deb) ...
Selecting previously deselected package openssh-server.
Unpacking openssh-server (from .../openssh-server_1%3a5.5p1-6+squeeze3_armel.deb) ...
Selecting previously deselected package xauth.
Unpacking xauth (from .../xauth_1%3a1.0.4-1_armel.deb) ...
Processing triggers for man-db ...
Setting up openssh-blacklist (0.4.1) ...
Setting up openssh-blacklist-extra (0.4.1) ...
Setting up libbsd0 (0.2.0-1) ...
Setting up libedit2 (2.11-20080614-2) ...
Setting up openssh-client (1:5.5p1-6+squeeze3) ...
Setting up libxau6 (1:1.0.6-1) ...
Setting up libxdmcp6 (1:1.0.3-2) ...
Setting up libxcb1 (1.6-1) ...
Setting up libx11-data (2:1.3.3-4) ...
Setting up libx11-6 (2:1.3.3-4) ...
Setting up libxext6 (2:1.1.2-1) ...
Setting up libxmuu1 (2:1.0.5-2) ...
Setting up openssh-server (1:5.5p1-6+squeeze3) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Cannot find /proc/version - is /proc mounted?
invoke-rc.d: -----------------------------------------------------
invoke-rc.d: WARNING: 'invoke-rc.d ssh restart' called
invoke-rc.d: during shutdown sequence.
invoke-rc.d: enabling safe mode: initscript policy layer disabled
invoke-rc.d: -----------------------------------------------------
Restarting OpenBSD Secure Shell server: sshd.
Setting up xauth (1:1.0.4-1) ...
!root@qube:/#
root@qube:/# exit
exit
root@qube:~# umount /tmp/root
root@qube:~#

再起動

HDD を LS-VL に戻して起動
root@qube:~# telnet vl
Trying 192.168.2.55...
telnet: Unable to connect to remote host: Connection refused
root@qube:~# ssh vl
The authenticity of host 'vl (192.168.2.55)' can't be established.
RSA key fingerprint is f9:25:c2:1d:00:9f:d8:d9:45:1a:57:21:b1:d2:56:07.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'vl,192.168.2.55' (RSA) to the list of known hosts.
root@vl's password:
Linux vl 3.3.4-88f6281 #2 Mon Dec 10 17:31:41 JST 2012 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@vl:~#
ssh だとログインできるのに、
telnet だと Connection refused になる謎。。。

LS-VL

楽天市場
Amazon
livedoor デパート
バッファローダイレクト
Yahoo!ショッピング


ファームウェア 1.64 でハックキットのインストール
ハックの記録
LinkStation/玄箱 をハックしよう

ファームウェア 1.64 でハックキットのインストール(3)

ツイート Tweet to @yasunari_y @yasunari_yをフォロー

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