From 390c49394a972fac96ed3475d0fe36bf52eaa266 Mon Sep 17 00:00:00 2001 From: Jacco van Buuren Date: Fri, 18 Jun 2021 14:21:03 +0200 Subject: [PATCH] Added timedatectl and loginctl --- _gtfobins/loginctl.md | 15 +++++++++++++++ _gtfobins/timedatectl.md | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 _gtfobins/loginctl.md create mode 100644 _gtfobins/timedatectl.md diff --git a/_gtfobins/loginctl.md b/_gtfobins/loginctl.md new file mode 100644 index 0000000..b5979fe --- /dev/null +++ b/_gtfobins/loginctl.md @@ -0,0 +1,15 @@ +--- +description: | + This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply. + + This might not work if run by unprivileged users depending on the system configuration. +functions: + shell: + - code: | + loginctl user-status + !/bin/sh + sudo: + - code: | + sudo loginctl user-status + !/bin/sh +--- diff --git a/_gtfobins/timedatectl.md b/_gtfobins/timedatectl.md new file mode 100644 index 0000000..a5327c0 --- /dev/null +++ b/_gtfobins/timedatectl.md @@ -0,0 +1,15 @@ +--- +description: | + This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply. + + This might not work if run by unprivileged users depending on the system configuration. +functions: + shell: + - code: | + timedatectl list-timezones + !/bin/sh + sudo: + - code: | + sudo timedatectl list-timezones + !/bin/sh +---