mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
16 lines
470 B
Java
16 lines
470 B
Java
package security.library.dataflow;
|
|
|
|
public class RmiFlowImpl implements RmiFlow {
|
|
public String listDirectory(String path) throws java.io.IOException {
|
|
String command = "ls " + path;
|
|
Runtime.getRuntime().exec(command);
|
|
return "pretend there are some results here";
|
|
}
|
|
|
|
public String notRemotable(String path) throws java.io.IOException {
|
|
String command = "ls " + path;
|
|
Runtime.getRuntime().exec(command);
|
|
return "pretend there are some results here";
|
|
}
|
|
}
|