1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-29 18:07:27 +01:00

Land #6388, update msftidy check for new preferred Metasploit module base class

This commit is contained in:
Brent Cook 2016-03-06 17:12:20 -06:00
commit 659af68b16
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
4 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
require 'msf/core'
class Metasploit4 < Msf::Auxiliary
class Metasploit < Msf::Auxiliary
def initialize(info = {})
super(
update_info(

View File

@ -6,7 +6,7 @@
require 'msf/core'
# XXX: invalid super class for an auxiliary module
class Metasploit4 < Msf::Exploit
class Metasploit < Msf::Exploit
# XXX: auxiliary modules don't use Rank
Rank = LowRanking
def initialize(info = {})

View File

@ -4,7 +4,7 @@
##
module Metasploit4
module Metasploit
def initialize(info = {})
super(
merge_info(

View File

@ -477,7 +477,7 @@ class Msftidy
return if @module_type == 'payloads'
# get the super class in an ugly way
unless (super_class = @source.scan(/class Metasploit\d\s+<\s+(\S+)/).flatten.first)
unless (super_class = @source.scan(/class Metasploit\d?\s+<\s+(\S+)/).flatten.first)
error('Unable to determine super class')
return
end