From 2383afd8dcb9d108d4004a998285ec0764d57ab6 Mon Sep 17 00:00:00 2001 From: Martin Pizala Date: Fri, 4 Aug 2017 23:42:44 +0200 Subject: [PATCH] Fix improved error handling --- modules/exploits/linux/http/docker_daemon_tcp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exploits/linux/http/docker_daemon_tcp.rb b/modules/exploits/linux/http/docker_daemon_tcp.rb index 0d3a046e59..c733b2440c 100644 --- a/modules/exploits/linux/http/docker_daemon_tcp.rb +++ b/modules/exploits/linux/http/docker_daemon_tcp.rb @@ -144,7 +144,7 @@ class MetasploitModule < Msf::Exploit::Remote def exploit # check if target is vulnerable - unless check == Exploit::CheckCode::Appears + unless check == Exploit::CheckCode::Vulnerable fail_with(Failure::Unknown, 'Failed to connect to the target') end