Added red.md

Added support for red, the restricted version of ed.
More information on red can be found here: https://www.computerhope.com/unix/ued.htm
This commit is contained in:
George O 2018-08-20 00:17:55 +01:00 committed by GitHub
parent 0ba5df0cb9
commit 76c906d168
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
_gtfobins/red.md Normal file
View File

@ -0,0 +1,20 @@
---
description: Short for "restricted ed".
functions:
execute-interactive:
- code: |
red
!/bin/sh
file-write:
- code: |
red file_to_write
w
sudo-enabled:
- code: |
sudo red
!/bin/sh
suid-limited:
- code: |
./red
!/bin/sh
---