Add expand, unexpand

This commit is contained in:
Dov Murik 2018-06-12 14:06:16 +00:00
parent 3b59c85656
commit 33a485b2b9
2 changed files with 32 additions and 0 deletions

17
_gtfobins/expand.md Normal file
View File

@ -0,0 +1,17 @@
---
description: |
The read file content is corrupted by replacing tabs with spaces; not binary-safe.
functions:
sudo-enabled:
- code: |
LFILE=file_to_read
sudo expand "$LFILE"
suid-enabled:
- code: |
LFILE=file_to_read
./expand "$LFILE"
file-read:
- code: |
LFILE=file_to_read
expand "$LFILE"
---

15
_gtfobins/unexpand.md Normal file
View File

@ -0,0 +1,15 @@
---
functions:
sudo-enabled:
- code: |
LFILE=file_to_read
sudo unexpand -t99999999 "$LFILE"
suid-enabled:
- code: |
LFILE=file_to_read
./unexpand -t99999999 "$LFILE"
file-read:
- code: |
LFILE=file_to_read
unexpand -t99999999 "$LFILE"
---