From 41e08b8ca28ab052ddb0223030fccf62a19ba89f Mon Sep 17 00:00:00 2001 From: mindstormsecurity Date: Mon, 24 Mar 2025 13:23:11 +0100 Subject: [PATCH] adding last and lstb --- _gtfobins/last.md | 13 +++++++++++++ _gtfobins/lastb.md | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 _gtfobins/last.md create mode 100644 _gtfobins/lastb.md diff --git a/_gtfobins/last.md b/_gtfobins/last.md new file mode 100644 index 00000000..a60cbaec --- /dev/null +++ b/_gtfobins/last.md @@ -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 +--- diff --git a/_gtfobins/lastb.md b/_gtfobins/lastb.md new file mode 100644 index 00000000..a60cbaec --- /dev/null +++ b/_gtfobins/lastb.md @@ -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 +---