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 38a4c2a commit 4029dbdCopy full SHA for 4029dbd
spec/lib/msf/core/exploit/auto_target_spec.rb
@@ -48,7 +48,11 @@
48
49
describe '#auto_target?' do
50
it 'should return true if the automatic target is selected' do
51
+ host_addr = '192.168.1.5'
52
+ host_obj = FactoryGirl.create(:mdm_host, address: host_addr )
53
windows_exploit.datastore['TARGET'] = 0
54
+ windows_exploit.datastore['WORKSPACE'] = host_obj.workspace.name
55
+ windows_exploit.datastore['RHOST'] = host_addr
56
expect(windows_exploit.auto_target?).to be true
57
end
58
0 commit comments