Linux-2.6.5 (Buffalo PC-PLAN1) PC-P1LAN login: root Password: BusyBox v1.00-pre10 (2005.09.03-02:53+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. ~ # date Thu Jan 1 09:02:40 JST 1970 ~ #気持ち悪い。
~ # which ntpdate /usr/sbin/ntpdate ~ # ls -l /usr/sbin/ntpdate -rwxr-xr-x 1 pc-lan1 pc-lan1 60484 Sep 21 2005 /usr/sbin/ntpdate ~ #早速実行してみる
~ # ntpdate gawa 8 Feb 00:06:27 ntpdate[88]: step time server 192.168.1.37 offset 1138460437.569085 sec ~ # date Wed Feb 8 00:06:51 JST 2006 ~ #動いているみたい
[root@gawa pc-p1lan]# !mount mount -o loop initrd /tmp/root [root@gawa pc-p1lan]# pushd /tmp/root/etc/init.d/ /tmp/root/etc/init.d /mnt/pc-p1lan [root@gawa init.d]# mv rcS rcS.orig [root@gawa init.d]# cp rcS.orig rcS [root@gawa init.d]# vi rcS : : [root@gawa init.d]# diff -c rcS.orig rcS *** rcS.orig 2006-02-05 21:48:02.000000000 +0900 --- rcS 2006-02-08 00:12:04.000000000 +0900 *************** *** 22,27 **** --- 22,28 ---- hostname PC-P1LAN #/sbin/inetd + /usr/sbin/ntpdate gawa /sbin/telnetd /sbin/modprobe mpeg2 [root@gawa init.d]# popd /mnt/pc-p1lan [root@gawa pc-p1lan]# !umount umount /tmp/root [root@gawa pc-p1lan]# sh mkinitrd.boot.sh Image Name: RAM Disk Created: Sun Jan 29 00:14:14 2006 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 16777216 Bytes = 16384.00 kB = 16.00 MB Load Address: 0x00000000 Entry Point: 0x00000000 合計 17292 -rw-r--r-- 1 root root 16777280 Feb 8 00:14 initrd.boot -rw-r--r-- 1 root root 898316 Oct 17 22:05 uImage [root@gawa pc-p1lan]# !?stop? /etc/rc.d/init.d/ltbootd stop Stop services: rarpd/sbin/start-stop-daemon: warning: failed to kill 23399: No such process /sbin/start-stop-daemon: warning: failed to kill 23396: No such process tftpd rarpcfgd fwupdated. [root@gawa pc-p1lan]# /etc/rc.d/init.d/ltbootd start Starting services: rarpd tftpd rarpcfgd fwupdated. [root@gawa pc-p1lan]#
Linux-2.6.5 (Buffalo PC-PLAN1) PC-P1LAN login: root Password: BusyBox v1.00-pre10 (2005.09.03-02:53+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. ~ # date Wed Feb 8 00:17:36 JST 2006 ~ #Good!
← nxterm |
ハックの記録 PC-P1LAN をハックしよう |
→ remocon |