mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
11 lines
314 B
Java
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});
|
|
}
|
|
}
|