From 940b4bc791a978df930e3aa42d6709574baf8738 Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Fri, 30 Sep 2022 13:48:06 +0200 Subject: [PATCH] Update 2_container.sh --- linPEAS/builder/linpeas_parts/2_container.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linPEAS/builder/linpeas_parts/2_container.sh b/linPEAS/builder/linpeas_parts/2_container.sh index b8a53535..9f3b8825 100644 --- a/linPEAS/builder/linpeas_parts/2_container.sh +++ b/linPEAS/builder/linpeas_parts/2_container.sh @@ -77,7 +77,7 @@ enumerateDockerSockets() { dockerVersion="$(echo_not_found)" if ! [ "$SEARCHED_DOCKER_SOCKETS" ]; then SEARCHED_DOCKER_SOCKETS="1" - for int_sock in $(find / ! -path "/sys/*" -type s -name "docker.sock" -o -name "docker.socket" -o -name "dockershim.sock" -n -name "containerd.sock" -o -name "crio.sock" -o -name "frakti.sock" -o -name "rktlet.sock" 2>/dev/null); do + for int_sock in $(find / ! -path "/sys/*" -type s -name "docker.sock" -o -name "docker.socket" -o -name "dockershim.sock" -o -name "containerd.sock" -o -name "crio.sock" -o -name "frakti.sock" -o -name "rktlet.sock" 2>/dev/null); do if ! [ "$IAMROOT" ] && [ -w "$int_sock" ]; then if echo "$int_sock" | grep -Eq "docker"; then dock_sock="$int_sock"