From dd2f26fe2be4fdb2a65a932f5901878c913c64a1 Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 14 Mar 2023 15:19:34 +0100 Subject: [PATCH] Add new and delete curl scripts --- delete.sh | 9 +++++++++ new.sh | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100755 delete.sh create mode 100755 new.sh diff --git a/delete.sh b/delete.sh new file mode 100755 index 0000000..c7907e4 --- /dev/null +++ b/delete.sh @@ -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 diff --git a/new.sh b/new.sh new file mode 100755 index 0000000..4f9f241 --- /dev/null +++ b/new.sh @@ -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