ackw 發表於 2010-4-12 12:43:07

ZIN-5005HD 說明書上沒寫的東西..

因為更新ZIN-5005HD韌體後出了點"意外"可能是因為個人關係所以並沒有讓我很滿意
故..努力了幾個小時,打開了 韌體更新檔 查了一下相關的內容 意外的發現了幾個小秘密 [或許是公開的秘密吧!!]
[ 1 ] 執行 telnet / ssh / ftp 應該是可行的!!
# more inetd.conf
#ftp    streamtcp   nowaitroot    /usr/sbin/ftpdftpd -u 100
telnetstreamtcp   nowaitroot    /usr/sbin/telnetdtelnetd
#auth   streamtcp   nowaitnobody/usr/sbin/nullidentd nullidentd
www   streamtcp   nowaitwww-data      /usr/sbin/httpd httpd -h /var/www
...
# ls -al ../usr/sbin/ftpd
ls: cannot access ../usr/sbin/ftpd: No such file or directory[印象中 busybox 好像有支援 ftpd]
# ls -al ../usr/sbin/telnetd
lrwxrwxrwx. 1 root root 17 Apr 12 18:56 ../usr/sbin/telnetd -> ../../bin/busybox
# ls ../bin/busybox../bin/busybox
# ls -al ../bin/busybox
-rwxr-xr-x. 1 root root 993544 Apr 12 18:56 ../bin/busybox
http://5005HD ip/webtorrent.cgi ??
# pwd
/root/test/install_img/package2/yaffs2_1/tmp_orig/www
# ls -al
total 20
drwxr-xr-x. 4 root root 4096 Apr 12 18:56 .
drwxr-xr-x. 9 root root 4096 Apr 12 18:56 ..
drwxr-xr-x. 2 root root 4096 Apr 12 18:56 adm <- 又一個被閹掉的地方!!
drwxr-xr-x. 2 root root 4096 Apr 12 18:56 cgi-bin
-rwxr-xr-x. 1 root root339 Apr 12 18:56 index.html
# ls -al adm/
total 8
drwxr-xr-x. 2 root root 4096 Apr 12 18:56 .
drwxr-xr-x. 4 root root 4096 Apr 12 18:56 ..
# ls -al cgi-bin/
total 76
drwxr-xr-x. 2 root root4096 Apr 12 18:56 .
drwxr-xr-x. 4 root root4096 Apr 12 18:56 ..
-rwxr-xr-x. 1 root root   336 Apr 12 18:56 sum.cgi [就是用瀏覽器直接看ZIN-5005HD port 80 時出現的小程式]
-rwxr-xr-x. 1 root root 63724 Apr 12 18:56 webtorrent.cgi
緊接著查了 httpd.conf 的內容
# more httpd.conf
#Allow address from 172.20.*.*
#A:172.20.#Deny from other IP connections
#D:*#No need account to access cgi/cgi-bin::
#You need root account to access "adm" pages. See here: http://www.uclibc.org/lists/busybox/2004-November/013053.html
#If you need to store password here, enable "CONFIG_FEATURE_HTTPD_AUTH_MD5"
#/adm:root:
#The second account to access "adm" pages
#/adm:nobody:
以上..個人小小的發現!希望 ZIN-5005HD 會出現像 友站 ZP-600t 補完計劃 將效能榨乾乾..

[ 本帖最後由 ackw 於 2010-4-15 23:11 編輯 ]

ackw 發表於 2010-4-12 12:56:16

解開 韌體更新檔 網路資料

1. http://minimodding.com/CustomFirmware
   - MiniModding
2. http://oplayware.some.randomhash.net/hacked
   - OPlayWare
3. http://ycpapa-tw.blogspot.com/2008/11/yaffs2.html
   - YCPAPA's Penguin Ranch
4. http://esslab.tw/wiki/index.php/%E5%88%86%E9%A1%9E:Linux-MTD_SOP
   - Linux MTD SOP - 讓 Linux Kernel 支援 yaffs/yaffs2 檔案格式
5. http://code.google.com/p/unyaffs/downloads/list - Google Code
   - 可以找到 linux環境 用 gcc 編譯的 unyaffs 執行檔

[ 本帖最後由 ackw 於 2010-4-15 23:14 編輯 ]
頁: [1]
查看完整版本: ZIN-5005HD 說明書上沒寫的東西..