qube:~# mkdir /tmp/root qube:~# mount /dev/sdb2 /tmp/root qube:~# ls /tmp/root bin boot dev etc home initrd lib mnt proc root sbin sys tmp usr var www qube:~#
qube:~# cp /mnt/disk1/share/hackkit/busybox/busybox-telnetd_static /tmp/root/usr/local/sbin qube:~# ln -s /usr/local/sbin/busybox-telnetd_static /tmp/root/usr/sbin/telnetd qube:~# ls -l /tmp/root/usr/sbin/telnetd lrwxrwxrwx 1 root root 46 Oct 5 21:17 /tmp/root/usr/sbin/telnetd -> /usr/local/sbin/busybox-telnetd_static qube:~#
qube:~# tail /tmp/root/etc/init.d/rcS exec_sh bootcomplete.sh echo "** step final(after bootcomplete) **" for cmd in hdd_late_check.sh check_initialization.sh usb_late_check.sh do start-stop-daemon --background --start --exec /etc/init.d/$cmd -- start done start-stop-daemon --background --start --exec /usr/local/bin/share_delete.sh qube:~# echo >> !$ echo >> /tmp/root/etc/init.d/rcS qube:~# echo /usr/sbin/telnetd >> !$ echo /usr/sbin/telnetd >> /tmp/root/etc/init.d/rcS qube:~# !tail tail /tmp/root/etc/init.d/rcS echo "** step final(after bootcomplete) **" for cmd in hdd_late_check.sh check_initialization.sh usb_late_check.sh do start-stop-daemon --background --start --exec /etc/init.d/$cmd -- start done start-stop-daemon --background --start --exec /usr/local/bin/share_delete.sh /usr/sbin/telnetd qube:~#
qube:~# grep root /tmp/root/etc/shadow root:(暗号化されたパスワード):11009:0:99999:7::: qube:~# vi !$ : : qube:~# !grep grep root /tmp/root/etc/shadow root::11009:0:99999:7::: qube:~#
qube:~# cd / qube:/# umount /tmp/root/ qube:/#
sil:~# tail -f /var/log/daemon.log : : Oct 5 21:27:05 sil dhcpd: DHCPREQUEST for 192.168.11.2 from 4c:e6:76:1e:08:15 via eth0: ignored (not authoritative). Oct 5 21:27:05 sil dhcpd: DHCPDISCOVER from 4c:e6:76:1e:08:15 via eth0 Oct 5 21:27:06 sil dhcpd: DHCPOFFER on 192.168.2.204 to 4c:e6:76:1e:08:15 (LS-VL815) via eth0 Oct 5 21:27:06 sil dhcpd: Wrote 0 deleted host decls to leases file. Oct 5 21:27:06 sil dhcpd: Wrote 0 new dynamic host decls to leases file. Oct 5 21:27:06 sil dhcpd: Wrote 10 leases to leases file. Oct 5 21:27:06 sil dhcpd: DHCPREQUEST for 192.168.2.204 (192.168.2.39) from 4c:e6:76:1e:08:15 (LS-VL815) via eth0 Oct 5 21:27:06 sil dhcpd: DHCPACK on 192.168.2.204 to 4c:e6:76:1e:08:15 (LS-VL815) via eth0192.168.2.204 が割り当てられたようだ。
sil:~# telnet 192.168.2.204 Trying 192.168.2.204... telnet: Unable to connect to remote host: Connection refused sil:~#むむ。chmod +x するの忘れた。
qube:~# mkdir /tmp/root qube:~# mount /dev/sdb2 /tmp/root qube:~# ls -l /tmp/root/usr/local/sbin/busybox-telnetd_static -rw-r----- 1 root root 646596 Oct 5 21:17 /tmp/root/usr/local/sbin/busybox-telnetd_static qube:~# chmod +x !$ chmod +x /tmp/root/usr/local/sbin/busybox-telnetd_static qube:~# ls -l !$ ls -l /tmp/root/usr/local/sbin/busybox-telnetd_static -rwxr-x--x 1 root root 646596 Oct 5 21:17 /tmp/root/usr/local/sbin/busybox-telnetd_static qube:~# umount /tmp/root qube:~#HDD を LS-VL に接続して
sil:~# !tail tail -f /var/log/daemon.log : : Oct 5 21:34:21 sil dhcpd: DHCPREQUEST for 192.168.2.204 from 4c:e6:76:1e:08:15 (LS-VL815) via eth0 Oct 5 21:34:21 sil dhcpd: DHCPACK on 192.168.2.204 to 4c:e6:76:1e:08:15 (LS-VL815) via eth0 sil:~# !telnet telnet 192.168.2.204 Trying 192.168.2.204... Connected to 192.168.2.204. Escape character is '^]'. BUFFALO INC. LinkStation series sh-3.2#Good Going!
|
← HDD |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ LinkStationシリーズ ファームウェア アップデーター Ver.1.37 |