なんとか telnet できるようにする
root@LS-WSXLE75:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/md1 4920624 894784 3775884 19% / udev 10240 100 10140 1% /dev /dev/ram1 15360 152 15208 1% /mnt/ram /dev/md21 24237064 133896 24103168 1% /mnt/disk1 root@LS-WSXLE75:~# cat /proc/mdstat Personalities : [linear] [raid0] [raid1] [raid6] [raid5] [raid4] md21 : active raid1 sda6[0] 24248904 blocks super 1.2 [2/1] [U_] md1 : active raid1 sda2[0] 4999156 blocks super 1.2 [2/1] [U_] md10 : active raid1 sda5[0] 1000436 blocks super 1.2 [2/1] [U_] md124 : active raid1 sda1[0] 1000384 blocks [2/1] [U_] unused devices: <none> root@LS-WSXLE75:~# mount /dev/md124 /boot root@LS-WSXLE75:~#
root@LS-WSXLE75:/boot# mkdir /tmp/root root@LS-WSXLE75:/boot# mount -o loop initrd /tmp/root root@LS-WSXLE75:/boot# cd /tmp/root root@LS-WSXLE75:/tmp/root# ls bin/ etc/ lost+found/ root/ share/ usr/ debugtool/ lib/ mnt/ rootfs/ sys/ var/ dev/ linuxrc* proc/ sbin/ tmp/ www/ root@LS-WSXLE75:/tmp/root#さて、、、、
root@LS-WSXLE75:/tmp/root# cp /mnt/disk1/share/hackkit/busybox-telnetd_static usr/sbin/telnetd root@LS-WSXLE75:/tmp/root# chmod +x !$ chmod +x usr/sbin/telnetd root@LS-WSXLE75:/tmp/root#これでいいかな???
root@LS-WSXLE75:/tmp/root# cd / root@LS-WSXLE75:/# umount /tmp/root/ root@LS-WSXLE75:/#
root@LS-WSXLE75:/# cd /boot root@LS-WSXLE75:/boot# gzip initrd root@LS-WSXLE75:/boot# /mnt/disk1/share/hackkit/mkimage -A ARM -O Linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initrd -d initrd.gz initrd.buffalo Image Name: initrd Created: Sun Dec 8 13:59:02 2013 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9923382 Bytes = 9690.80 kB = 9.46 MB Load Address: 0x00000000 Entry Point: 0x00000000 root@LS-WSXLE75:/boot#さて、できたかな。。。
root@LS-WSXLE75:/boot# reboot root@LS-WSXLE75:/boot#
yasunari@sil:~$ telnet lswsxl Trying 192.168.2.58... Connected to lswsxl. Escape character is '^]'. BUFFALO INC. LinkStation series sh-3.2# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/root.old 31729 24704 7025 78% / devpts 10240 88 10152 1% /dev/pts udev 10240 88 10152 1% /dev /dev/ram1 15360 44 15316 0% /mnt/ram sh-3.2#Good Going!
|
← RAMDISK Root を見る |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ やり直し |
Copyright (C) 2003-2013 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市