BUFFALO INC. LinkStation series LS-XHLA1F login: root No mail. root@LS-XHLA1F:~#
root@LS-XHLA1F:~# which ftp /usr/local/bin/ftp root@LS-XHLA1F:~#LS-XHL にも ftp コマンドがあった。
root@LS-XHLA1F:~# cd /boot root@LS-XHLA1F:/boot# ftp ude.yamasita.jp Connected to ude.yamasita.jp. 220 ude FTP server (GNU inetutils 1.5) ready. 500 'AUTH GSSAPI': command not understood. 500 'AUTH KERBEROS_V4': command not understood. KERBEROS_V4 rejected as an authentication type Name (ude.yamasita.jp:root): yasunari 331 Password required for yasunari. Password: 230- Linux ude 2.6.16.16-arm1 #37 Tue May 20 10:01:57 JST 2008 armv5tejl 230- 230- The programs included with the Debian GNU/Linux system are free software; 230- the exact distribution terms for each program are described in the 230- individual files in /usr/share/doc/*/copyright. 230- 230- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent 230- permitted by applicable law. 230 User yasunari logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> cd /srv/tftp 250 CWD command successful. ftp> ls 200 PORT command sucessful. 150 Opening ASCII mode data connection for '/bin/ls'. total 8952 drwxr-s--- 2 root 48 Mar 22 10:12 HS-DHGL_1.20 drwxrwxr-x 2 root 48 Jan 24 09:31 LS-CL+HackKit drwxr-sr-x 2 root 48 Mar 23 17:44 LS-CL_1.07 drwxrwxr-x 2 root 48 Mar 20 14:32 LS-GL_1.15 drwxr-sr-x 2 root 48 Mar 23 14:22 LS-HGL_1.07b drwxr-sr-x 2 root 48 Mar 23 13:31 LS-LGL_2.01 drwxrwxr-x 2 root 48 Feb 20 12:00 LS-QL_1.05+telnet drwxr-s--- 2 root 48 Mar 27 15:25 LS-QL_1.07b drwxr-sr-x 2 root 48 Mar 25 21:04 LS-WSGL_1.06 drwxrwxr-x 2 root 48 Jan 24 18:00 LS-XHL_1.02 drwxrwxr-x 2 root 64 Jan 24 22:17 LS-XHL_1.02+telnet -rw-rw-r-- 2 root 7048407 Mar 27 15:24 initrd.buffalo -rw-rw-r-- 2 root 2115640 Mar 27 15:25 uImage.buffalo 226 Transfer complete. ftp> mkdir LS-XHL_1.04b 257 (unknown absolute name) new directory created. ftp> cd LS-XHL_1.04b 250 CWD command successful. ftp> !ls conf_save.tgz u-boot.buffalo hddrootfs.buffalo.updated.done uImage.buffalo initrd.buffalo ftp> bin 200 Type set to I. ftp> hash Hash mark printing on (1024 bytes/hash mark). ftp> put uImage.buffalo local: uImage.buffalo remote: uImage.buffalo 200 PORT command sucessful. 150 Opening BINARY mode data connection for 'uImage.buffalo'. ############################################(略) 226 Transfer complete. 2087876 bytes sent in 0.14 seconds (1.4e+04 Kbytes/s) ftp> put initrd.buffalo local: initrd.buffalo remote: initrd.buffalo 200 PORT command sucessful. 150 Opening BINARY mode data connection for 'initrd.buffalo'. ############################################(略) 226 Transfer complete. 8511467 bytes sent in 0.59 seconds (1.4e+04 Kbytes/s) ftp> bye 221 Goodbye. root@LS-XHLA1F:/boot#
ude:/srv/tftp# cd LS-XHL_1.04b/ ude:/srv/tftp/LS-XHL_1.04b# ls -l total 10352 -rw-r----- 1 yasunari root 8511467 Mar 27 16:11 initrd.buffalo -rw-r----- 1 yasunari root 2087876 Mar 27 16:11 uImage.buffalo ude:/srv/tftp/LS-XHL_1.04b#モードを変更する。
ude:/srv/tftp/LS-XHL_1.04b# chmod 664 * ude:/srv/tftp/LS-XHL_1.04b#
ude:/srv/tftp/LS-XHL_1.04b# cd .. ude:/srv/tftp# ls -l total 8952 drwxr-s--- 2 yasunari root 48 Mar 22 10:12 HS-DHGL_1.20 drwxrwxr-x 2 root root 48 Jan 24 09:31 LS-CL+HackKit drwxr-sr-x 2 root root 48 Mar 23 17:44 LS-CL_1.07 drwxrwxr-x 2 yasunari root 48 Mar 20 14:32 LS-GL_1.15 drwxr-sr-x 2 root root 48 Mar 23 14:22 LS-HGL_1.07b drwxr-sr-x 2 root root 48 Mar 23 13:31 LS-LGL_2.01 drwxrwxr-x 2 root root 48 Feb 20 12:00 LS-QL_1.05+telnet drwxr-s--- 2 yasunari root 48 Mar 27 15:25 LS-QL_1.07b drwxr-sr-x 2 yasunari root 48 Mar 25 21:04 LS-WSGL_1.06 drwxrwxr-x 2 root root 48 Jan 24 18:00 LS-XHL_1.02 drwxrwxr-x 2 root root 64 Jan 24 22:17 LS-XHL_1.02+telnet drwxr-s--- 2 yasunari root 48 Mar 27 16:11 LS-XHL_1.04b -rw-rw-r-- 2 yasunari root 7048407 Mar 27 15:24 initrd.buffalo -rw-rw-r-- 2 yasunari root 2115640 Mar 27 15:25 uImage.buffalo ude:/srv/tftp# rm initrd.buffalo uImage.buffalo ude:/srv/tftp# ln LS-XHL_1.04b/* . ude:/srv/tftp# ls -l total 10352 drwxr-s--- 2 yasunari root 48 Mar 22 10:12 HS-DHGL_1.20 drwxrwxr-x 2 root root 48 Jan 24 09:31 LS-CL+HackKit drwxr-sr-x 2 root root 48 Mar 23 17:44 LS-CL_1.07 drwxrwxr-x 2 yasunari root 48 Mar 20 14:32 LS-GL_1.15 drwxr-sr-x 2 root root 48 Mar 23 14:22 LS-HGL_1.07b drwxr-sr-x 2 root root 48 Mar 23 13:31 LS-LGL_2.01 drwxrwxr-x 2 root root 48 Feb 20 12:00 LS-QL_1.05+telnet drwxr-s--- 2 yasunari root 48 Mar 27 15:25 LS-QL_1.07b drwxr-sr-x 2 yasunari root 48 Mar 25 21:04 LS-WSGL_1.06 drwxrwxr-x 2 root root 48 Jan 24 18:00 LS-XHL_1.02 drwxrwxr-x 2 root root 64 Jan 24 22:17 LS-XHL_1.02+telnet drwxr-s--- 2 yasunari root 48 Mar 27 16:11 LS-XHL_1.04b -rw-rw-r-- 2 yasunari root 8511467 Mar 27 16:11 initrd.buffalo -rw-rw-r-- 2 yasunari root 2087876 Mar 27 16:11 uImage.buffalo ude:/srv/tftp#
LED が赤く E06 を示し始めた。
func SW を押す。
tftp サーバである旧型 LS-GL のログを見ていると、、、
ude:/srv/tftp# tail -f /var/log/daemon.log : : Mar 27 16:22:12 ude in.tftpd[864]: connect from 192.168.11.150 (192.168.11.150) Mar 27 16:22:12 ude tftpd[865]: tftpd: trying to get file: uImage.buffalo Mar 27 16:22:12 ude tftpd[865]: tftpd: serving file from /srv/tftp Mar 27 16:22:13 ude in.tftpd[866]: connect from 192.168.11.150 (192.168.11.150) Mar 27 16:22:13 ude tftpd[867]: tftpd: trying to get file: initrd.buffalo Mar 27 16:22:13 ude tftpd[867]: tftpd: serving file from /srv/tftp : :192.168.11.150 が uImage.buffalo と initrd.buffalo とを もって行った。
しばらくしてLED が正常(青点灯)になった。正常でええの?
DHCP サーバの HS-DHGL のログを見ると、、、
yasunari@sil:~$ tail -f /var/log/daemon.log : : Mar 27 16:22:37 sil dhcpd: DHCPDISCOVER from 00:50:43:c1:a6:ec via eth0 Mar 27 16:22:38 sil dhcpd: DHCPOFFER on 192.168.2.200 to 00:50:43:c1:a6:ec via eth0 Mar 27 16:22:38 sil dhcpd: DHCPREQUEST for 192.168.2.200 from 00:50:43:c1:a6:ec via eth0 Mar 27 16:22:39 sil dhcpd: DHCPACK on 192.168.2.200 to 00:50:43:c1:a6:ec via eth0 : :192.168.2.200 が付いたようだ。また MAC アドレスが変わった。
DHCP サーバには、
Mar 27 16:35:16 sil dhcpd: DHCPDISCOVER from 00:50:43:a2:2c:2f via eth0 Mar 27 16:35:17 sil dhcpd: DHCPREQUEST for 192.168.2.219 from 00:50:43:a2:2c:2f via eth0というログが残った。 ブラウザで http://192.168.2.219 をアクセスして見たら、 ログイン画面が出たので、もうアップデートは終わっているのだろう。
'09/5/5 追記
LS-XHL ファームウェア 1.04β には
セキュリティホールが存在します。
|
← まっさらにする |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ハードディスクドライブ(HDD)交換屋 |