telnet傳送檔案 - Linux

Table of Contents


目前在用一個embedded linux的裝置有點卡關~~

這裝置可透過putty然後telnet連進到系統

這系統裡有個bin檔是控置裝置外接的東西

有source code改了些東西並已在開發環境build好成bin檔

但要怎麼傳送至這系統裡面,透過telnet不知怎麼傳?

我知道ssh可以用pscp的樣子~~


還有個問題~

在source code中有埋些debug 例:fprintf(stderr, "debug message")

我有透過ps看到我要改得bin檔已在執行,

但要去哪看這debug的訊息??

感謝各位高手了!!


--

All Comments

Faithe avatarFaithe2019-03-09
tftp? serial console?
Zora avatarZora2019-03-09
用 nc 直接傳?
Wallis avatarWallis2019-03-14
看 busybox 有沒有 built-in netcat
Hamiltion avatarHamiltion2019-03-15
uuencode and uudecode
Elvira avatarElvira2019-03-19
telnet <<EOF
Hazel avatarHazel2019-03-23
base64 -d > new_binary
$(base64 new_binary)
Puput avatarPuput2019-03-27
好像不對
Dorothy avatarDorothy2019-03-27
( echo "base64 -d >new_binary <<EOF"
Valerie avatarValerie2019-03-30
base64 new_binary; echo EOF ) | telnet $ip
Doris avatarDoris2019-04-01
如果傳多個檔案可以改成 base64 -d <<EOF | tar xf -
Kristin avatarKristin2019-04-05
如果是 init.d 的 log 是在 /var/log/syslog
Doris avatarDoris2019-04-07
busybox 好像沒有 base64 ……
Kumar avatarKumar2019-04-10
(echo "cat >new_binary"; cat new_binary)| telnet ip
Wallis avatarWallis2019-04-15
Alpine 的 busybox 有 base64 耶
Agnes avatarAgnes2019-04-18
(BusyBox v1.29.3 (2019-01-24 07:45:07 UTC) )
Brianna avatarBrianna2019-04-19
我發現 android 的 toybox 也有 base64
Eartha avatarEartha2019-04-24
已可用tftp傳送~感謝!!我也有看到base64但這要怎用??
Sierra Rose avatarSierra Rose2019-04-25
就把你要傳的檔案編成 base64 ,複製到剪貼簿,
登入 embed 後 base64 -d >file ,然後貼上再按 ctrl-d