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 ab94bb9 commit 45ee595Copy full SHA for 45ee595
modules/exploits/linux/local/docker_daemon_privilege_escalation.rb
@@ -35,11 +35,11 @@ def initialize(info={})
35
end
36
37
def check
38
- if cmd_exec('docker ps && echo true') == 'true'
+ if cmd_exec('docker ps && echo true') =~ /true$/
39
+ Exploit::CheckCode::Vulnerable
40
+ else
41
print_error("Failed to access Docker daemon.")
42
Exploit::CheckCode::Safe
- else
- Exploit::CheckCode::Vulnerable
43
44
45
0 commit comments