Add new and delete curl scripts
This commit is contained in:
		
							
								
								
									
										9
									
								
								delete.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								delete.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
curl --header "Content-Type: application/json" \
 | 
			
		||||
  --data '{"command": {
 | 
			
		||||
                       "Delete": {
 | 
			
		||||
                                "id": "67e55044-10b1-426f-9247-bb680e5fe0c8"
 | 
			
		||||
                              }
 | 
			
		||||
                     },
 | 
			
		||||
           "signature": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
 | 
			
		||||
         }' \
 | 
			
		||||
  http://localhost:3000/command
 | 
			
		||||
							
								
								
									
										12
									
								
								new.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								new.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
curl --header "Content-Type: application/json" \
 | 
			
		||||
  --data '{"command": {
 | 
			
		||||
                       "New": {
 | 
			
		||||
                                "incoming_port": 5555,
 | 
			
		||||
                                "destination_port": 8080,
 | 
			
		||||
                                "destination_ip": "127.0.0.1",
 | 
			
		||||
                                "id": "67e55044-10b1-426f-9247-bb680e5fe0c8"
 | 
			
		||||
                              }
 | 
			
		||||
                     },
 | 
			
		||||
           "signature": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
 | 
			
		||||
         }' \
 | 
			
		||||
  http://localhost:3000/command
 | 
			
		||||
		Reference in New Issue
	
	Block a user