Added adiff, ar, bridge file_read

This commit is contained in:
Michalis Papadopoullos 2021-01-11 13:59:30 +02:00
parent bb4050810e
commit 513909c38c
3 changed files with 28 additions and 0 deletions

11
_gtfobins/adiff.md Normal file
View File

@ -0,0 +1,11 @@
---
functions:
file-read:
- description: Read files from archives when utils like "tar" are missing.
code: |
OUTFILE=$(mktemp -u)
LFILE=file_to_read
ar r "${OUTFILE}" "${LFILE}"
adiff "${OUTFILE}" /dev/null
ls -la Unpack*
---

9
_gtfobins/ar.md Normal file
View File

@ -0,0 +1,9 @@
---
functions:
file-read:
code: |
OUTFILE=$(mktemp -u)
LFILE=file_to_read
ar r "${OUTFILE}" "${LFILE}"
cat "${OUTFILE}"
---

8
_gtfobins/bridge.md Normal file
View File

@ -0,0 +1,8 @@
---
functions:
file-read:
- description: Outputs the first line of the file, until the first whitespace, to stderr.
code: |
LFILE=file_to_read
bridge -b "${LFILE}"
---