From 45fdf3f615fbc6f18fba14711f6a85d5eabb5c91 Mon Sep 17 00:00:00 2001 From: well123cs <119821998+well123cs@users.noreply.github.com> Date: Sun, 2 Apr 2023 19:13:42 -0700 Subject: [PATCH] Create test.sh --- atomics/T1069.001/src/test.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 atomics/T1069.001/src/test.sh diff --git a/atomics/T1069.001/src/test.sh b/atomics/T1069.001/src/test.sh new file mode 100644 index 00000000..4eda8fef --- /dev/null +++ b/atomics/T1069.001/src/test.sh @@ -0,0 +1,5 @@ +#!/bin/sh +if [ -x "$(command -v groups)" ]; then groups; else echo "groups is missing from the machine. skipping..."; fi; +if [ -x "$(command -v id)" ]; then id; else echo "id is missing from the machine. skipping..."; fi; +if [ -x "$(command -v getent)" ]; then getent group; else echo "getent is missing from the machine. skipping..."; fi; +cat /etc/group