Add head, tail

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

15
_gtfobins/head.md Normal file
View File

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

15
_gtfobins/tail.md Normal file
View File

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