Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions _gtfobins/last.md
Original file line number Diff line number Diff line change
@@ -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 changes: 13 additions & 0 deletions _gtfobins/lastb.md
Original file line number Diff line number Diff line change
@@ -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
---