mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2024-09-07 20:50:38 +02: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