From b6bde9dacee058ceb5245951843171b7caeff2e4 Mon Sep 17 00:00:00 2001 From: carlospolop Date: Sat, 8 Jun 2019 12:59:40 +0200 Subject: [PATCH] Asciinema updated --- README.md | 2 +- linpe.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 85a6c97..b2fe3ac 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # LinPE - Linux Privilege Escalation (one-liner) -[![asciicast](https://asciinema.org/a/249809.png)](https://asciinema.org/a/249809) +[![asciicast](https://asciinema.org/a/250532.png)](https://asciinema.org/a/250532) The goal of this script is to search for possible **Privilege Escalation vectors inside a linux machine**. diff --git a/linpe.sh b/linpe.sh index ba7a40e..fab15e5 100755 --- a/linpe.sh +++ b/linpe.sh @@ -575,7 +575,7 @@ if [ "$privatekeyfiles" ]; then privatekeyfilesgrep=`grep -L "\"\|'\|(" $privatekeyfiles` # Check there are not that symbols in the file fi if [ "$privatekeyfilesgrep" ]; then - echo "Private SSH keys found!:\n$privatekeyfilesgrep" | sed "s,.*,${C}[1;31m&${C}[0m," >> $file + printf "Private SSH keys found!:\n$privatekeyfilesgrep" | sed "s,.*,${C}[1;31m&${C}[0m," >> $file fi if [ "$ssh" ] || [ "$sshrootlogin" ] || [ "$privatekeyfiles" ]; then