Path: blob/master/test/thirdparty/msf/unit/ts_metasploit.rb
1875 views
#1# Copyright (c) 2006-2026 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#56# Common lib for BeEF tests7require '../../../common/ts_common'89begin10require 'msfrpc-client'11rescue LoadError12puts "The following instruction failed: require 'msfrpc-client'"13puts "Please run: sudo gem install msfrpc-client"14exit15end1617require './check_environment'18require './tc_metasploit'1920class TS_BeefTests21def self.suite2223suite = Test::Unit::TestSuite.new(name="BeEF Metasploit Test Suite")24suite << TC_CheckEnvironment.suite25suite << TC_Metasploit.suite2627return suite28end29end3031Test::Unit::UI::Console::TestRunner.run(TS_BeefTests)32333435