Add skeleton for VNC lgoinscanner

Add skeleton and specs for the VNC Loginscanner

MSP-9686
bug/bundler_fix
David Maloney 2014-05-09 11:55:15 -05:00
parent 8b937b7c35
commit 4e76330643
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,21 @@
require 'metasploit/framework/tcp/client'
require 'metasploit/framework/login_scanner/base'
require 'metasploit/framework/login_scanner/rex_socket'
module Metasploit
module Framework
module LoginScanner
# This is the LoginScanner class for dealing with the VNC RFB protocol.
# It is responsible for taking a single target, and a list of credentials
# and attempting them. It then saves the results.
class VNC
include Metasploit::Framework::LoginScanner::Base
include Metasploit::Framework::LoginScanner::RexSocket
include Metasploit::Framework::Tcp::Client
end
end
end
end

View File

@ -0,0 +1,11 @@
require 'spec_helper'
require 'metasploit/framework/login_scanner/vnc'
describe Metasploit::Framework::LoginScanner::VNC do
subject(:login_scanner) { described_class.new }
it_behaves_like 'Metasploit::Framework::LoginScanner::Base'
it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'
end