commit
5c4ec744cb
|
@ -0,0 +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"
|
||||
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"
|
||||
---
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
description: Outputs the first line of the file (until the first whitespace) inside an error message to stdandard error.
|
||||
functions:
|
||||
file-read:
|
||||
- code: |
|
||||
LFILE=file_to_read
|
||||
bridge -b "$LFILE"
|
||||
suid:
|
||||
- code: |
|
||||
LFILE=file_to_read
|
||||
./bridge -b "$LFILE"
|
||||
sudo:
|
||||
- code: |
|
||||
LFILE=file_to_read
|
||||
sudo bridge -b "$LFILE"
|
||||
---
|
Loading…
Reference in New Issue