mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-11-04 10:48:50 +01:00 
			
		
		
		
	Fix make compatibility issues
This commit is contained in:
		@@ -1,18 +1,8 @@
 | 
			
		||||
---
 | 
			
		||||
description: |
 | 
			
		||||
  All these examples only work with GNU `make` due to the lack of support of the
 | 
			
		||||
  `--eval` flag. The same can be achieved by using a proper `Makefile` of by
 | 
			
		||||
  passing the content via stdin, that is:
 | 
			
		||||
 | 
			
		||||
  ```
 | 
			
		||||
  make -s --eval=<commands>
 | 
			
		||||
  ```
 | 
			
		||||
 | 
			
		||||
  becomes:
 | 
			
		||||
 | 
			
		||||
  ```
 | 
			
		||||
  make -s -f <(echo <commands>)
 | 
			
		||||
  ```
 | 
			
		||||
  `--eval` flag. The same can be achieved by using a proper `Makefile` or by
 | 
			
		||||
  passing the content via stdin using `-f -`.
 | 
			
		||||
functions:
 | 
			
		||||
  execute-interactive:
 | 
			
		||||
    - code: |
 | 
			
		||||
@@ -27,7 +17,8 @@ functions:
 | 
			
		||||
        COMMAND='/bin/sh -p'
 | 
			
		||||
        ./make -s --eval=$'x:\n\t-'"$COMMAND"
 | 
			
		||||
  file-write:
 | 
			
		||||
    - code: |
 | 
			
		||||
    - description: Requires a newer GNU `make` version.
 | 
			
		||||
      code: |
 | 
			
		||||
        LFILE=file_to_write
 | 
			
		||||
        make -s --eval="\$(file >$LFILE,data)" .
 | 
			
		||||
---
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user