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