Fix failing argument spec test
parent
4450d34fee
commit
3783347d73
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue