Update ar

This commit is contained in:
Andrea Cardaci 2021-06-26 11:14:15 +02:00
parent fe7b3d797f
commit 23a082d1e3

View File

@ -3,20 +3,20 @@ description: The file appears amid the binary content of the archive.
functions:
file-read:
- code: |
OUTFILE=$(mktemp -u)
TF=$(mktemp -u)
LFILE=file_to_read
ar r "$OUTFILE" "$LFILE"
cat "$OUTFILE"
ar r "$TF" "$LFILE"
cat "$TF"
suid:
- code: |
OUTFILE=$(mktemp -u)
TF=$(mktemp -u)
LFILE=file_to_read
./ar r "$OUTFILE" "$LFILE"
cat "$OUTFILE"
./ar r "$TF" "$LFILE"
cat "$TF"
sudo:
- code: |
OUTFILE=$(mktemp -u)
TF=$(mktemp -u)
LFILE=file_to_read
sudo ar r "$OUTFILE" "$LFILE"
cat "$OUTFILE"
sudo ar r "$TF" "$LFILE"
cat "$TF"
---