略
ude:/tmp/root# ls -l /tmp/root/usr/sbin/telnetd lrwxrwxrwx 1 root root 17 Oct 15 17:17 /tmp/root/usr/sbin/telnetd -> ../../bin/busybox ude:/tmp/root#あるある
ude:/tmp/root# cd /tmp/root/etc/init.d ude:/tmp/root/etc/init.d# mv rcS rcS.orig ude:/tmp/root/etc/init.d# cp rcS.orig rcS ude:/tmp/root/etc/init.d# ls -l !* ls -l rcS.orig rcS -rwxr-xr-x 1 root root 2217 Nov 13 22:08 rcS -rwxr-xr-x 1 root root 2217 Aug 11 22:36 rcS.orig ude:/tmp/root/etc/init.d# vi rcS : : ude:/tmp/root/etc/init.d# diff -c rcS.orig rcS *** rcS.orig Mon Aug 11 22:36:23 2008 --- rcS Thu Nov 13 22:09:17 2008 *************** *** 119,121 **** --- 119,122 ---- done /usr/local/bin/share_delete.sh & + /usr/sbin/telnetd ude:/tmp/root/etc/init.d#ちなみに !* は、直前のコマンドの全ての引数を表す。
ude:/tmp/root/etc/init.d# cd /tmp/root/etc/ ude:/tmp/root/etc# mv shadow shadow.orig ude:/tmp/root/etc# cp shadow.orig shadow ude:/tmp/root/etc# ls -l shadow* -rw-r--r-- 1 root root 370 Nov 13 22:10 shadow -rw-r--r-- 1 root root 370 May 16 20:54 shadow.orig ude:/tmp/root/etc# vi shadow : : ude:/tmp/root/etc# diff -c shadow.orig shadow *** shadow.orig Fri May 16 20:54:12 2008 --- shadow Thu Nov 13 22:10:23 2008 *************** *** 1,4 **** ! root:(暗号化されたパスワード):11009:0:99999:7::: bin:*:11009:0:99999:7::: daemon:*:11009:0:99999:7::: halt:*:11009:0:99999:7::: --- 1,4 ---- ! root::11009:0:99999:7::: bin:*:11009:0:99999:7::: daemon:*:11009:0:99999:7::: halt:*:11009:0:99999:7::: ude:/tmp/root/etc#
sil:~# telnet 192.168.2.205 Trying 192.168.2.205... Connected to 192.168.2.205. Escape character is '^]'. BUFFALO INC. LinkStation series LS-CL701 login: root No mail. root@LS-CL701:~#I got it!
|
← バックアップ / Backup |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 修理 |