nyx/tests/dynamic_fixtures/java/cmdi_unsupported.java
2026-06-05 10:16:30 -05:00

11 lines
314 B
Java

// Command injection — unsupported fixture.
// Entry is an instance method; test sets confidence = Low.
// Expected verdict: Unsupported
import java.io.*;
public class Entry {
public void execute(String cmd) throws Exception {
Runtime.getRuntime().exec(new String[]{"/bin/sh", "-c", cmd});
}
}