Update modules/exploits/multi/misc/consul_service_exec.rb
Co-Authored-By: QKaiser <QKaiser@users.noreply.github.com>
This commit is contained in:
parent
6ad40deac3
commit
5192c081ee
|
@ -114,7 +114,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
'X-Consul-Token' => datastore['ACL_TOKEN']
|
||||
}
|
||||
})
|
||||
if res and not res.code == 200
|
||||
if res && res.code != 200
|
||||
fail_with(Failure::Unknown,
|
||||
'An error occured when contacting the Consul API.'
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue