Distribute requires to where they are needed

MSP-11124

Push requires down to the Msf::DBManager mixins that actually need them.
bug/bundler_fix
Luke Imhoff 2014-10-13 15:24:56 -05:00
parent 4371254dd2
commit c6ea3a3880
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
4 changed files with 47 additions and 42 deletions

View File

@ -1,51 +1,9 @@
# -*- coding: binary -*- # -*- coding: binary -*-
#
# Standard Library
#
require 'csv'
require 'fileutils'
require 'shellwords'
require 'tmpdir'
require 'uri'
#
# #
# Gems # Gems
# #
#
#
# PacketFu
#
require 'packetfu'
#
# Rex
#
require 'rex/parser/acunetix_nokogiri'
require 'rex/parser/appscan_nokogiri'
require 'rex/parser/burp_session_nokogiri'
require 'rex/parser/ci_nokogiri'
require 'rex/parser/foundstone_nokogiri'
require 'rex/parser/fusionvm_nokogiri'
require 'rex/parser/ip360_aspl_xml'
require 'rex/parser/ip360_xml'
require 'rex/parser/mbsa_nokogiri'
require 'rex/parser/nessus_xml'
require 'rex/parser/netsparker_xml'
require 'rex/parser/nexpose_raw_nokogiri'
require 'rex/parser/nexpose_simple_nokogiri'
require 'rex/parser/nexpose_xml'
require 'rex/parser/nmap_nokogiri'
require 'rex/parser/nmap_xml'
require 'rex/parser/openvas_nokogiri'
require 'rex/parser/outpost24_nokogiri'
require 'rex/parser/retina_xml'
require 'rex/parser/wapiti_nokogiri'
require 'rex/socket' require 'rex/socket'
# #

View File

@ -1,3 +1,38 @@
#
# Standard library
#
require 'csv'
require 'fileutils'
require 'tmpdir'
require 'uri'
#
# Gems
#
require 'packetfu'
require 'rex/parser/acunetix_nokogiri'
require 'rex/parser/appscan_nokogiri'
require 'rex/parser/burp_session_nokogiri'
require 'rex/parser/ci_nokogiri'
require 'rex/parser/foundstone_nokogiri'
require 'rex/parser/fusionvm_nokogiri'
require 'rex/parser/ip360_aspl_xml'
require 'rex/parser/ip360_xml'
require 'rex/parser/mbsa_nokogiri'
require 'rex/parser/nessus_xml'
require 'rex/parser/netsparker_xml'
require 'rex/parser/nexpose_raw_nokogiri'
require 'rex/parser/nexpose_simple_nokogiri'
require 'rex/parser/nexpose_xml'
require 'rex/parser/nmap_nokogiri'
require 'rex/parser/nmap_xml'
require 'rex/parser/openvas_nokogiri'
require 'rex/parser/outpost24_nokogiri'
require 'rex/parser/retina_xml'
require 'rex/parser/wapiti_nokogiri'
module Msf::DBManager::Import module Msf::DBManager::Import
# If hex notation is present, turn them into a character. # If hex notation is present, turn them into a character.
def dehex(str) def dehex(str)

View File

@ -1,3 +1,9 @@
#
# Standard library
#
require 'shellwords'
module Msf::DBManager::ModuleCache module Msf::DBManager::ModuleCache
# #
# Attributes # Attributes

View File

@ -1,3 +1,9 @@
#
# Standard library
#
require 'fileutils'
module Msf::DBManager::Report module Msf::DBManager::Report
# TODO This method does not attempt to find. It just creates # TODO This method does not attempt to find. It just creates
# a report based on the passed params. # a report based on the passed params.