This repository has been archived by the owner on Apr 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Startup Script
牧瀬紅莉栖 edited this page Jul 21, 2015
·
1 revision
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:
-
mount -o remount,rw /
-
echo "mount -o remount,rw /" >> /etc/rc
-
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.