bash - Copy binary file on Linux -


i have restricted environment, chrooted environment or vm, has following basic utilities available: bash, hostname, ls, mkdir, ping, rm, getent, id. /proc filesystem available.

all others utilities cp/cat unavailable, . possible copy file these utilities ?

to copy inputfile outputfile using bash:

echo "$(<inputfile)" >outputfile 

(limitation: nuls , trailing newlines omitted.)


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -