Fix failing argument spec test

GSoC/Meterpreter_Web_Console
Kevin Kirsche 2018-08-13 22:20:23 -04:00
parent 4450d34fee
commit 3783347d73
1 changed files with 8 additions and 7 deletions

View File

@ -161,13 +161,14 @@ RSpec.describe Metasploit::Framework::LoginScanner::SSH do
it 'calls Net::SSH with the correct arguments' do
factory = Rex::Socket::SSHFactory.new(nil,nil,nil)
opt_hash = {
:auth_methods => ['publickey'],
:port => ssh_scanner.port,
:use_agent => false,
:key_data => key,
:config => false,
:verbose => ssh_scanner.verbosity,
:proxy => factory
:auth_methods => ['publickey'],
:port => ssh_scanner.port,
:use_agent => false,
:key_data => key,
:config => false,
:verbose => ssh_scanner.verbosity,
:proxy => factory,
:verify_host_key => :never
}
allow(Rex::Socket::SSHFactory).to receive(:new).and_return factory
expect(Net::SSH).to receive(:start).with(