Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.

Startup Script

牧瀬紅莉栖 edited this page Jul 21, 2015 · 1 revision

Yes, Minister

While it's good to have a root shell now, after you reboot the router, you have to repeat those steps again to gain the access. A good (or bad) way to keep this little backdoor is to write down the command in the startup script, which is /etc/rc in this case.

However by default the file system is read only, so we have to remount the partition as read write to make the permanent change.


In your root shell, run following commands:

  1. mount -o remount,rw /

  2. echo "mount -o remount,rw /" >> /etc/rc

  3. echo "telnetd -l sh -p 9999" >> /etc/rc

Next time when you reboot the router, the root shell will still be available, and for the bonus you can modify a lot more files now.

Clone this wiki locally