DSL-500B Router - hacking
I recently acquired a DSL-500B Router. I have been over the last few weeks
trying to hack it and in hack I mean do things it was not originally suppose to do. Here are the router system properties..
total: used: free: shared: buffers:
Mem: 6108 5800 308 0 160
Swap: 0 0 0
Total: 6108 5800 308
system type : 96338L-2M-8M
processor : 0
cpu model : BCM6338 V1.0
BogoMIPS : 239.20
wait instruction : no
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : no
VCED exceptions : not available
VCEI exceptions : not available
Linux version 126.96.36.199 (gcc version 3.4.2) #2 Tue Apr 17 17:18:41 CST 2007
I have following tools..
I was also able to get at hidden busy-box commands through typing sh.
( took me a long time to find out )
. : break cd continue eval exec exit export help login newgrp
read readonly set shift times trap umask wait [ busybox cat chmod
date df dmesg echo expr false ftpget ifconfig init insmod kill
klogd linuxrc ln logger logread mkdir mount msh ping ps pwd reboot
rm rmmod route sendarp sh sysinfo syslogd test tftp tftpd top
true tty vconfig
I want to edit /webs directory , as would be great to set this as up a server .. not to mention would love to install couple small programs ( this possible ? )
However I can not edit the /webs directory because it is an embeded device / router they have decided that the /webs directory does not need
rw so as to save space they have squashfs it making it only ro . I think this is what has happened anyway. I have tried using chmod but i get read only error. Here is what baffles me , if it is a squashfs directory then surly in /etc/fstab and mount it would indicate /webs ?
As at every reboot the directory would have to re mounted ?
Here is mount command.
/dev/mtdblock0 on / type squashfs (ro)
/proc on /proc type proc (rw,nodiratime)
tmpfs on /var type tmpfs (rw)
here is /etc/fstab
proc /proc proc defaults 0 0
tmpfs /var tmpfs size=320k 0 0
/dev/sda1 /mnt vfat noauto 0 0
rootfs / rootfs rw 0 0
/dev/root / squashfs ro 0 0
/proc /proc proc rw,nodiratime 0 0
tmpfs /var tmpfs rw 0 0
If anyone could shed light on this phenomenon I would be eternity grateful.