1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-01-07 08:11:34 +01:00

Merge 41e08b8ca28ab052ddb0223030fccf62a19ba89f into b29f2cfde1c72e4ea5191e49604e923bbda98461

This commit is contained in:
Matteo Mandolini 2025-10-17 10:37:44 +02:00 committed by GitHub
commit fc1512d211
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 26 additions and 0 deletions

13
_gtfobins/last.md Normal file

@ -0,0 +1,13 @@
---
functions:
file-read:
- description: It reads data from files, it may be used to do privileged reads or disclose files outside a restricted file system. The output might be corrupted or incomplete if the file does not follow the expected database format. Available in util-linux on CentOS, RHEL, Fedora.
code: |
LFILE=file_to_read
last -f $LFILE -a
sudo:
- description: If the binary is allowed to run as superuser by sudo, it does not drop the elevated privileges and may be used to access the file system, escalate or maintain privileged access.
code: |
LFILE=file_to_read
last -f $LFILE -a
---

13
_gtfobins/lastb.md Normal file

@ -0,0 +1,13 @@
---
functions:
file-read:
- description: It reads data from files, it may be used to do privileged reads or disclose files outside a restricted file system. The output might be corrupted or incomplete if the file does not follow the expected database format. Available in util-linux on CentOS, RHEL, Fedora.
code: |
LFILE=file_to_read
last -f $LFILE -a
sudo:
- description: If the binary is allowed to run as superuser by sudo, it does not drop the elevated privileges and may be used to access the file system, escalate or maintain privileged access.
code: |
LFILE=file_to_read
last -f $LFILE -a
---