Attachment 0001
Attachment 0001
Attachment 0001
09-04:56+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. / # ls -als 1 drwxr-xr-x 1 drwxr-xr-x 61 -rwxr-xr-x 1 drwxr-xr-x 0 drwxr-xr-x 1 drwxr-xr-x 1 drwxr-xr-x 0 lrwxrwxrwx box 12 drwx-----1 drwxr-xr-x 0 dr-xr-xr-x 1 drwxr-xr-x 0 drwxr-xr-x 0 drwxr-xr-x 1 drwxr-xr-x 1 drwxr-xr-x 0 lrwxrwxrwx 4857 -rwxr-xr-x
14 14 1 2 1 3 3 1 2 7 73 2 11 13 10 6
root root 500 500 root 500 500 500 root 500 root 500 root root 500 500
root root default default root default default default root default root default root root default default default default
1024 1024 61440 1024 0 1024 1024 11 12288 1024 0 1024 0 0 1024 1024
Feb Feb Apr Feb Jan Feb Feb Feb Feb Feb May Feb May May Feb Feb
11 11 9 11 1 11 11 11 11 11 5 11 5 5 11 11
17:41 17:41 2008 17:38 1970 17:38 17:38 17:38 17:36 17:38 16:59 17:38 16:59 17:03 17:38 17:38
. .. Test.fat bin dev etc lib linuxrc -> bin/busy lost+found mnt proc sbin sys tmp tmp_orig usr
1 500 1 500
/ # cd /bin /bin # ls -als 1 drwxr-xr-x 1 drwxr-xr-x 0 lrwxrwxrwx 0 lrwxrwxrwx 0 lrwxrwxrwx 968 -rwxr-xr-x 0 lrwxrwxrwx 0 lrwxrwxrwx 0 lrwxrwxrwx 0 lrwxrwxrwx 0 lrwxrwxrwx
2 14 1 1 1 1 1 1 1 1 1
500 root 500 500 500 500 500 500 500 500 500
default root default default default default default default default default default
Feb Feb Feb Feb Feb Apr Feb Feb Feb Feb Feb
11 11 11 11 11 17 11 11 11 11 11
17:38 17:41 17:38 17:37 17:38 2008 17:38 17:38 17:38 17:38 17:37
. .. addgroup -> busybox adduser -> busybox ash -> busybox busybox cat -> busybox chmod -> busybox chown -> busybox cp -> busybox date -> busybox
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 /bin
lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx lrwxrwxrwx #
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500
default default default default default default default default default default default default default default default default default default default default default default default default default default default default default default default default default default default default default default default default default
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb
11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11
17:38 17:37 17:38 17:38 17:38 17:38 17:38 17:37 17:38 17:37 17:38 17:38 17:38 17:38 17:38 17:38 17:38 17:38 17:38 17:37 17:38 17:38 17:38 17:38 17:38 17:38 17:38 17:37 17:38 17:38 17:38 17:38 17:38 17:38 17:38 17:38 17:37 17:38 17:38 17:38 17:38
dd -> busybox delgroup -> busybox deluser -> busybox df -> busybox dmesg -> busybox echo -> busybox egrep -> busybox false -> busybox fgrep -> busybox getopt -> busybox grep -> busybox hostname -> busybox kill -> busybox ln -> busybox login -> busybox ls -> busybox mkdir -> busybox mknod -> busybox mktemp -> busybox more -> busybox mount -> busybox mv -> busybox nice -> busybox pidof -> busybox ping -> busybox ps -> busybox pwd -> busybox rm -> busybox rmdir -> busybox sed -> busybox sh -> busybox sleep -> busybox stty -> busybox sync -> busybox tar -> busybox touch -> busybox true -> busybox umount -> busybox uname -> busybox usleep -> busybox vi -> busybox
/bin # busybox BusyBox v1.1.3 (2008.04.09-04:56+0000) multi-call binary Usage: busybox [function] [arguments]... or: [function] [arguments]... BusyBox is a multi-call binary that combines many common Unix utilities into a single executable. Most people will create a link to busybox for each function they wish to use and BusyBox will act like whatever it was invoked as! Currently defined functions: [, [[, addgroup, adduser, ash, basename, busybox, cat, chmod, chown, chroot, clear, cp, cut, date, dd, delgroup, deluser, devfsd, df, dirname, dmesg, du, e2fsck, echo, egrep, eject, expr, false, fdisk, fgrep, find, free, fsck, fsck.ext2, fsck.ext3, ftpget, ftpput, getopt, grep, halt, head, hexdump, hostname, httpd, hwclock, id, ifconfig, inetd, init, insmod, ipcrm, ipcs, kill, killall, klogd, linuxrc, ln, logger, login, losetup, ls, lsmod, lzmacat, mkdir, mke2fs, mkfs.ext2, mkfs.ext3, mkfs.extk, mknod, mkswap, mktemp, modprobe, more, mount, mv, nice, passwd, pidof, ping, pivot_root, poweroff, printf, ps, pwd, readlink, reboot, rm, rmdir, rmmod, route, sed, sh, sleep, sort, stty, swapoff, swapon, sync, syslogd, tail, tar, tee, telnetd, test, tftp, time, touch, tr, true, tune2fs, udhcpc, udhcpd, umount, uname, unlzma, unzip, uptime, usleep, vi, wc, wget, which, yes /bin #
/bin /etc 1 1 6 1 1 1 1 1 1 1 4 1 0 1
3 14 1 1 1 1 1 1 1 3 1 1 1 1
500 root 500 500 500 500 500 500 500 500 500 500 500 500
default root default default default default default default default default default default default default
1024 1024 5368 335 107 6 20 385 460 1024 3349 5 14 463
Feb Feb Apr Apr Apr Apr Apr Apr Apr Feb Apr Apr Feb Apr
11 11 9 9 9 9 9 9 9 11 9 9 11 9
17:38 17:41 2008 2008 2008 2008 2008 2008 2008 17:38 2008 2008 17:38 2008
. .. devfsd.conf fstab group hostname hosts httpd.conf inetd.conf init.d inittab.old ld.so.conf mtab -> ../proc/mounts passwd
0 2 0 21 1 1 /etc
1 1 1 1 1 1
Feb 11 17:38 profile -> ../usr/local/etc/profile Apr 9 2008 protocols.old Feb 11 17:38 resolv.conf -> /usr/local/etc/dvdplayer/resolv.conf Apr 9 2008 services Apr 9 2008 system_svn_version Apr 9 2008 udhcpc.script
/etc # cat /etc/passwd root::0:0:root::/bin/sh daemon:x:1:1:daemon:/usr/sbin:/bin/sh bin:x:2:2:bin:/bin:/bin/sh sys:x:3:3:sys:/dev:/bin/sh sync:x:4:100:sync:/bin:/bin/sync mail:x:8:8:mail:/var/spool/mail:/bin/sh proxy:x:13:13:proxy:/bin:/bin/sh www-data:x:0:0:www-data:/var/www:/bin/sh backup:x:34:34:backup:/var/backups:/bin/sh operator:x:37:37:Operator:/var:/bin/sh sshd:x:103:99:Operator:/var:/bin/sh nobody::99:99:nobody:/:/bin/sh default::1000:1000:Default non-root user:/:/bin/sh /etc # /etc #
/proc # cd /dev /dev # ls auth cdrom0 console discs dvd dvdvr full hda /dev #
/proc # cat cpuinfo system type processor cpu model BogoMIPS wait instruction microsecond timers tlb_entries extra interrupt vector hardware watchpoint ASEs implemented VCED exceptions VCEI exceptions
: : : : : : : : : : : :
Realtek Venus 0 MIPS 4KEc V6.12 202.34 yes yes 32 yes yes not available not available
/proc # cat partitions major minor #blocks name 3 3 3 3 3 3 3 3 3 31 0 1 2 3 4 5 6 7 8 0 732574584 8032 514080 1 128520 257040 8032 438574500 293025600 2048 hda hda1 hda2 hda3 hda4 hda5 hda6 hda7 hda8 mtdblock0
# cat version version 2.6.12.6-VENUS (parden@realtek) (gcc version 3.4.4 mipssde-6.02.03-20050629) #2 Sat Apr 12 12:50:32 CST # #
Cached: SwapCached: Active: Inactive: HighTotal: HighFree: LowTotal: LowFree: SwapTotal: SwapFree: Dirty: Writeback: Mapped: Slab: CommitLimit: Committed_AS: PageTables: VmallocTotal: VmallocUsed: VmallocChunk: /proc #
15728 220 10976 8476 0 0 57664 2408 257064 255444 0 0 5908 5660 285896 11568 560 1048560 872 1047628
kB kB kB kB kB kB kB kB kB kB kB kB kB kB kB kB kB kB kB kB
/ # dmesg | grep "hd[a-z]" hda: generic_ide_resume for JM-SATA long delay ide_dma_speed: hda: mode 0x04, speed 0x44 / #
/ # fdisk -l Disk /dev/hda: 750.1 GB, 750156374016 bytes 255 heads, 63 sectors/track, 91201 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System
83 83 5 83 82 83 b 7
Linux Linux Extended Linux Linux swap Linux Win95 FAT32 HPFS/NTFS
/ # cat /proc/mounts rootfs / rootfs rw 0 0 /dev/root / ext3 ro 0 0 none /dev devfs rw 0 0 none /proc proc rw,nodiratime 0 0 devpts /dev/pts devpts rw 0 0 none /sys sysfs rw 0 0 none /tmp ramfs rw 0 0 /dev/ide/host0/bus0/target0/lun0/part4 /usr/local/etc/dvdplayer ext3 rw 0 0 /dev/ide/host0/bus0/target0/lun0/part7 /usr/local/etc/dvdplayer/hdd/volumes/HDD1 vfat rw,nodiratime,fmask=0000,dmask=0000,codepage=cp437,iocharset=iso8859-1,sho rtname=winnt,utf8 0 0 /dev/ide/host0/bus0/target0/lun0/part8 /usr/local/etc/dvdplayer/hdd/volumes/HDD2 ntfs ro,uid=0,gid=0,umask=00,nls=utf8,errors=continue,mft_zone_multiplier=1 0 0 /dev/ide/host0/bus0/target0/lun0/part1 /usr/local/etc/hdd/dvdvr udf rw,recovery 0 0 /dev/rd/0 /mnt/rd vfat rw,nodiratime,fmask=0022,dmask=0022,codepage=cp437,iochar set=iso8859-1 0 0 /dev/ide/host0/bus0/target0/lun0/part6 /usr/local/etc/hdd/livepause udf rw 0 0 / #
/ # df -h Filesystem Size Used Available Use% Mounted on /dev/hda2 486.2M 87.9M 373.2M 19% / /dev/ide/host0/bus0/target0/lun0/part4 121.5M 65.1M 50.1M /dev/ide/host0/bus0/target0/lun0/part7 418.2G 65.5G 352.6G
279.5G 6.8M
/ # cat /etc/fstab # /etc/fstab: static file system information. # # <file system> <mount pt> <type> <options> #/dev/root / ext3 rw,noauto none /proc proc defaults devpts /dev/pts devpts defaults,gid=5,mode=620 none /sys sysfs defaults none /tmp ramfs defaults #192.168.0.1:/nfs/rootfs /mnt nfs nolock / #
<dump> 0 0 0 0 0 0
<pass> 1 0 0 0 0 0
/ # cd /dev /dev # ls -als hd* 0 lr-xr-xr-x 0 lr-xr-xr-x 0 lr-xr-xr-x 0 lr-xr-xr-x 0 lr-xr-xr-x 0 lr-xr-xr-x 0 lr-xr-xr-x 0 lr-xr-xr-x 0 lr-xr-xr-x /dev #
1 1 1 1 1 1 1 1 1
32 33 33 33 33 33 33 33 33
1 1 1 1 1 1 1 1 1
hda -> ide/host0/bus0/target0/lun0/disc hda1 -> ide/host0/bus0/target0/lun0/part1 hda2 -> ide/host0/bus0/target0/lun0/part2 hda3 -> ide/host0/bus0/target0/lun0/part3 hda4 -> ide/host0/bus0/target0/lun0/part4 hda5 -> ide/host0/bus0/target0/lun0/part5 hda6 -> ide/host0/bus0/target0/lun0/part6 hda7 -> ide/host0/bus0/target0/lun0/part7 hda8 -> ide/host0/bus0/target0/lun0/part8
/ # cd /dev/ide/host0/bus0/target0/lun0/ /dev/ide/host0/bus0/target0/lun0 # ls -als 0 drwxr-xr-x 1 root root 0 drwxr-xr-x 1 root root 0 brw------1 root root 3, 0 brw------1 root root 3,
0 0 0 1
1 1 1 1
. .. disc part1
0 brw------1 root root 0 brw------1 root root 0 brw------1 root root 0 brw------1 root root 0 brw------1 root root 0 brw------1 root root 0 brw------1 root root /dev/ide/host0/bus0/target0/lun0 #
3, 3, 3, 3, 3, 3, 3,
2 3 4 5 6 7 8
1 1 1 1 1 1 1
/usr/local/etc/dvdplayer/hdd/volumes # ls HDD1 HDD2 /usr/local/etc/dvdplayer/hdd/volumes # ls -als 1 drwxr-xr-x 4 root root 1024 Feb 11 17:43 . 1 drwxr-xr-x 4 root root 1024 Feb 11 17:41 .. 32 drwxrwxrwx 11 root root 32768 Jan 1 1970 HDD1 4 dr-xr-xr-x 1 root root 4096 Jan 7 2009 HDD2 /usr/local/etc/dvdplayer/hdd/volumes #