この違いは何??
LS-WSXL にもう一回 ファームウェア 1.68 をインストールしてみる。
root@ls410d:~# parted -s /dev/sdb print Model: ViPowER VP-89118(SD1) (scsi) Disk /dev/sdb: 40.0GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 1049kB 1026MB 1024MB ext3 primary 2 1026MB 6146MB 5120MB primary 3 6146MB 6147MB 1049kB primary 4 6147MB 6148MB 1049kB primary 5 6148MB 7172MB 1024MB primary 6 7172MB 32.0GB 24.8GB primary root@ls410d:~# parted -s /dev/sdb rm 1 root@ls410d:~# ^1^2 parted -s /dev/sdb rm 2 root@ls410d:~# ^2^3 parted -s /dev/sdb rm 3 root@ls410d:~# ^3^4 parted -s /dev/sdb rm 4 root@ls410d:~# ^4^5 parted -s /dev/sdb rm 5 root@ls410d:~# ^5^6 parted -s /dev/sdb rm 6 root@ls410d:~# parted -s /dev/sdb print Model: ViPowER VP-89118(SD1) (scsi) Disk /dev/sdb: 40.0GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags root@ls410d:~# fdisk /dev/sdb WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted. Command (m for help): p Disk /dev/sdb: 40.0 GB, 40020664320 bytes 255 heads, 63 sectors/track, 4865 cylinders, total 78165360 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1 1 78165359 39082679+ ee GPT Command (m for help): d Selected partition 1 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. root@ls410d:~#
yasunari@qube:~$ cd /srv/tftp/ yasunari@qube:/srv/tftp$ rm uImage.buffalo yasunari@qube:/srv/tftp$ rm initrd.buffalo yasunari@qube:/srv/tftp$ ls HS-DHGL_1.20 LS-HGL_1.07b LS-WSGL_1.06 ls400-111en LS-CHL_1.10 LS-LGL_2.01 LS-XHL_1.02 ls_series-156 LS-CHL_1.20 LS-QL_1.05+telnet LS-XHL_1.02+telnet ls_series-157 LS-CHL_1.21 LS-QL_1.07b LS-XHL_1.04b ls_series-160 LS-CL+HackKit LS-QL_1.10b LS-XHL_1.10 ls_series-160_88f5182 LS-CL_1.07 LS-SL_1.11 SheevaPlug_1.2 LS-CL_1.11 LS-SL_1.24 TS-WXL_1.06 LS-GL_1.15 LS-VL+X ls400-111 yasunari@qube:/srv/tftp$ ln ls_series-160/uImage.buffalo . yasunari@qube:/srv/tftp$ ln ls_series-160/initrd.buffalo . yasunari@qube:/srv/tftp$
Func ボタンを押す
yasunari@qube:/srv/tftp$ tail -f /var/log/daemon.log : : Nov 27 21:23:37 qube in.tftpd[1200]: connect from 192.168.11.150 (192.168.11.150) Nov 27 21:23:37 qube tftpd[1201]: tftpd: trying to get file: uImage.buffalo Nov 27 21:23:37 qube tftpd[1201]: tftpd: serving file from /srv/tftp Nov 27 21:23:39 qube in.tftpd[1202]: connect from 192.168.11.150 (192.168.11.150) Nov 27 21:23:39 qube tftpd[1203]: tftpd: trying to get file: initrd.buffalo Nov 27 21:23:39 qube tftpd[1203]: tftpd: serving file from /srv/tftp
LS-WSXL-EME75 が見つかるので「ファームウェア更新」
色々あって(略)インストール完了
「LinkStationのアップデートは完了しました」
root@ls410d:~# tail -f /var/log/messages : : Nov 26 09:05:58 ls410d kernel: usb 1-1: new high-speed USB device number 2 using ehci_marvell Nov 26 09:05:58 ls410d kernel: scsi2 : usb-storage 1-1:1.0 Nov 26 09:05:59 ls410d kernel: scsi 2:0:0:0: Direct-Access ViPowER VP-89118(SD1) 2.10 PQ: 0 ANSI: 4 Nov 26 09:05:59 ls410d kernel: sd 2:0:0:0: [sdb] 78165360 512-byte logical blocks: (40.0 GB/37.2 GiB) Nov 26 09:05:59 ls410d kernel: sd 2:0:0:0: [sdb] Write Protect is off Nov 26 09:05:59 ls410d kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0 Nov 26 09:05:59 ls410d kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0 Nov 26 09:05:59 ls410d kernel: sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6 Nov 26 09:05:59 ls410d kernel: sd 2:0:0:0: [sdb] Attached SCSI disk
root@ls410d:~# mdadm --assemble -scan mdadm: /dev/md/LS-WSXL-EME75:2 assembled from 1 drive - not enough to start the array. mdadm: /dev/md/LS-WSXL-EME75:10 has been started with 1 drive (out of 2). mdadm: /dev/md/LS-WSXL-EME75:1 has been started with 1 drive (out of 2). mdadm: /dev/md/LS-WSXL-EME75:2 assembled from 1 drive - not enough to start the array. root@ls410d:~# ls -l /dev/md* brw-rw---T 1 root disk 9, 125 11月 26 09:06 /dev/md125 brw-rw---T 1 root disk 9, 126 11月 26 09:06 /dev/md126 brw-rw---T 1 root disk 9, 127 11月 26 09:06 /dev/md127 /dev/md: 合計 0 lrwxrwxrwx 1 root root 8 11月 26 09:06 LS-WSXL-EME75:1 -> ../md126 lrwxrwxrwx 1 root root 8 11月 26 09:06 LS-WSXL-EME75:10 -> ../md127 root@ls410d:~#
root@ls410d:~# mount /dev/md126 /tmp/root root@ls410d:~# ls /tmp/root bin dev home lib mnt resources sbin tmp var boot etc initrd lost+found proc root sys usr www root@ls410d:~#
root@ls410d:~# cd /tmp/root/etc/ root@ls410d:/tmp/root/etc# grep root shadow root::11009:0:99999:7::: root@ls410d:/tmp/root/etc#やっぱりパスワードが付いていない!!
root@ls410d:/tmp/root/etc# mv sshd_config{,.orig} root@ls410d:/tmp/root/etc# cp sshd_config{.orig,} root@ls410d:/tmp/root/etc# patch < /mnt/share/sshd_config.diff patching file sshd_config root@ls410d:/tmp/root/etc# !cp:s/cp/diff -u/ diff -u sshd_config{.orig,} --- sshd_config.orig 2011-01-06 11:07:39.000000000 +0900 +++ sshd_config 2013-11-27 21:57:14.000000000 +0900 @@ -20,7 +20,7 @@ # HostKeys for protocol version 2 #HostKey /etc/ssh_host_rsa_key #HostKey /etc/ssh_host_dsa_key -HostKey /etc/apache/server.key +#HostKey /etc/apache/server.key # Lifetime and size of ephemeral version 1 server key #KeyRegenerationInterval 1h @@ -34,8 +34,8 @@ # Authentication: #LoginGraceTime 2m -#PermitRootLogin yes -PermitRootLogin no +PermitRootLogin yes +#PermitRootLogin no #StrictModes yes #RSAAuthentication yes @@ -55,6 +55,7 @@ # To disable tunneled clear text passwords, change to no here! #PasswordAuthentication yes #PermitEmptyPasswords no +PermitEmptyPasswords yes # Change to no to disable s/key passwords #ChallengeResponseAuthentication yes @@ -71,7 +72,8 @@ # Set this to 'yes' to enable PAM authentication (via challenge-response) # and session processing. Depending on your PAM configuration, this may # bypass the setting of 'PasswordAuthentication' -UsePAM yes +#UsePAM yes +UsePAM no #AllowTcpForwarding yes #GatewayPorts no root@ls410d:/tmp/root/etc#
root@ls410d:/tmp/root/etc# cd / root@ls410d:/# umount /tmp/root root@ls410d:/#
root@ls410d:/# ssh -l root lswsxl.yamasita.jp The authenticity of host 'lswsxl.yamasita.jp (192.168.2.58)' can't be established. RSA key fingerprint is b5:dc:1f:67:1f:da:58:de:a7:50:2c:b9:1e:18:35:d4. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'lswsxl.yamasita.jp,192.168.2.58' (RSA) to the list of known hosts. root@LS-WSXLE75:~#あれ?できるやん。
この前はなんでできなかった??謎
|
← ファームウェア Ver.1.68 のインストール |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ファームウェア Ver.1.68 の散歩 |
Copyright (C) 2003-2014 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市