This uses `cat` to actually read the file, but since permissions are not dropped, it's executed with the same privileges as `find`.
find /path/to/input-file -exec cat {} \;
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- sudo
- Native
- file-read
This uses `cat` to actually read the file, but since permissions are not dropped, it's executed with the same privileges as `find`.
find /path/to/input-file -exec cat {} \;
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- suid
- Native
- file-read
This uses `cat` to actually read the file, but since permissions are not dropped, it's executed with the same privileges as `find`.
find /path/to/input-file -exec cat {} \;
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- unprivileged
- Native
- file-read
`DATA` is a format string, it supports some escape sequences.
find / -fprintf /path/to/output-file DATA -quit
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- sudo
- Native
- file-write
`DATA` is a format string, it supports some escape sequences.
find / -fprintf /path/to/output-file DATA -quit
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- suid
- Native
- file-write
file-write
File WriteLinux
`DATA` is a format string, it supports some escape sequences.
find / -fprintf /path/to/output-file DATA -quit
- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Linux reference. macOS compatibility has not been checked for this command and execution context.
- Context
- unprivileged
- Native
- file-write