Fix dumb inverted logic. Thanks, rspec!
parent
8b8ec5990a
commit
76bfaa6ce9
|
@ -119,7 +119,7 @@ module Msf::DBManager::ExploitAttempt
|
|||
username = opts[:username]
|
||||
mname = opts[:module]
|
||||
|
||||
if ! vuln.nil?
|
||||
if vuln.nil?
|
||||
ref_names = mrefs.map { |ref|
|
||||
if ref.respond_to?(:ctx_id) and ref.respond_to?(:ctx_val)
|
||||
"#{ref.ctx_id}-#{ref.ctx_val}"
|
||||
|
|
|
@ -44,6 +44,7 @@ shared_examples_for 'Msf::DBManager::ExploitAttempt' do
|
|||
|
||||
context 'without a vuln' do
|
||||
let(:vuln) { nil }
|
||||
|
||||
specify do
|
||||
expect {
|
||||
report_exploit_success
|
||||
|
|
Loading…
Reference in New Issue