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