From f27c56bd3c72c2706103c2040404b592b25dd9c4 Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Wed, 29 Dec 2021 21:22:16 +0000 Subject: [PATCH] Update README.md --- linPEAS/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linPEAS/README.md b/linPEAS/README.md index 1f469de..efbb806 100755 --- a/linPEAS/README.md +++ b/linPEAS/README.md @@ -17,7 +17,9 @@ Find the **latest versions of all the scripts and binaries in [the releases page ```bash # From github -curl -L https://github.com/carlospolop/PEASS-ng/releases/download/refs%2Fheads%2Fmaster/linpeas.sh | sh +LATEST_RELEASE=$(curl -L -s -H 'Accept: application/json' https://github.com/carlospolop/PEASS-ng/releases/latest) +LATEST_VERSION=$(echo $LATEST_RELEASE | sed -e 's/.*"tag_name":"\([^"]*\)".*/\1/') +curl -L https://github.com/carlospolop/PEASS-ng/releases/download/$LATEST_VERSION/linpeas.sh | sh ``` ```bash