mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Added timedatectl and loginctl
This commit is contained in:
parent
3466212c5d
commit
390c49394a
15
_gtfobins/loginctl.md
Normal file
15
_gtfobins/loginctl.md
Normal file
@ -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
|
||||||
|
---
|
15
_gtfobins/timedatectl.md
Normal file
15
_gtfobins/timedatectl.md
Normal file
@ -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
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user