View Single Post
Old 05-17-2024, 03:23 PM   #1310
shyhermit
Connoisseur
shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.
 
Posts: 95
Karma: 3160
Join Date: Apr 2024
Device: none
I am trying to implement Telnet and FTP access using NickelMenu but am having trouble implementing both functions. Here are the codes I am using:

Code:
menu_item :main    :Telnet             :cmd_spawn          :quiet:/bin/mount -t devpts | /bin/grep -q /dev/pts || { /bin/mkdir -p /dev/pts && /bin/mount -t devpts devpts /dev/pts; }
chain_success                        :cmd_spawn          :quiet:/usr/bin/pkill -f "^/usr/bin/tcpsvd -E 0.0.0.0 1023" || true && exec /usr/bin/tcpsvd -E 0.0.0.0 1023 /usr/sbin/telnetd -i -l /bin/login
chain_success                        :dbg_toast          :Started Telnet server on port 1023.
menu_item :main    :FTP                :cmd_spawn          :quiet:/usr/bin/pkill -f "^/usr/bin/tcpsvd -E 0.0.0.0 1021" || true && exec /usr/bin/tcpsvd -E 0.0.0.0 1021 /usr/sbin/ftpd -w -t 30 /mnt/onboard
chain_success                        :dbg_toast          :Started FTP server for KOBOeReader partition on port 1021.
I see both Telnet and FTP appearing in the menu. But how do I actually use it? Do I just tap on it to "activate" it and then tap on it again to "deactivate" it? I am particularly concerned about FTP since it grants root access without any password protection. Do I need to "reboot" the Kobo after each use even if I "deactivate" the function?
shyhermit is offline   Reply With Quote