how do i upload a file over ssh to a server that runs qemu

essentially title - but ill be more precise about the problem. this isnt an ssh server on qemu, but a ssh server that once a connection is established, runs qemu, and connects it to the ssh terminal. the qemu machine itself doesnt have any sort of compiler or internet access.

im trying the kcrc challenge on pwnable.kr, and i want to upload a binary i compiled to the remote ssh.

what can i do? i tried writing a python script that slowly writes commands that write the file using base64, but the binary is too large and this fails with pretty high probability, some lines just get cut off and stuff like that. there might be a very standard and easy solution that im missing, help with this is very appreciated!

submitted by /u/yuvalid
[link] [comments]

from hacking: security in practice https://ift.tt/CwQKiT3

Comments