Cesura / nxsh

BusyBox-like remote shell for the Nintendo Switch over telnet [UNMAINTAINED]
BSD 3-Clause "New" or "Revised" License
79 stars 7 forks source link

Feature request: File transfers in the style of `adb push` #17

Open Celti opened 5 years ago

Celti commented 5 years ago

With Android devices, you can use adb to push files to the device. A similar feature for nxsh could be an interesting and useful alternative to a full ftpd.

If nxsh's cat implementation supported reading from standard input to files, you could potentially script this as something like the following:

$ (echo "cat - > file_on_switch.txt"; cat file_on_pc.txt) | nc 192.168.1.2 5050

Unfortunately, it doesn't seem like nxsh cat supports this yet, nor did I spot an obvious way to read input from a duktape script.