mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-10-31 08:48:54 +01:00 
			
		
		
		
	Improve tac and add sudo and suid
This commit is contained in:
		| @@ -1,8 +1,16 @@ | ||||
| --- | ||||
| description: Make sure that `RANDOM` does not appear into the file to read otherwise the content of the file is corrupted by reversing the order of `RANDOM`-separated chunks. | ||||
| functions: | ||||
|   file-read: | ||||
|     - description: It reads data from files, it may be used to do privileged reads or disclose files outside a restricted file system. | ||||
|       code: | | ||||
|     - code: | | ||||
|         LFILE=file_to_read | ||||
|         tac "$LFILE" | ||||
|         tac -s 'RANDOM' "$LFILE" | ||||
|   suid: | ||||
|     - code: | | ||||
|         LFILE=file_to_read | ||||
|         ./tac -s 'RANDOM' "$LFILE" | ||||
|   sudo: | ||||
|     - code: | | ||||
|         LFILE=file_to_read | ||||
|         sudo tac -s 'RANDOM' "$LFILE" | ||||
| --- | ||||
|   | ||||
		Reference in New Issue
	
	Block a user