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:
commit
659af68b16
@ -5,7 +5,7 @@
|
||||
|
||||
require 'msf/core'
|
||||
|
||||
class Metasploit4 < Msf::Auxiliary
|
||||
class Metasploit < Msf::Auxiliary
|
||||
def initialize(info = {})
|
||||
super(
|
||||
update_info(
|
||||
|
@ -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 = {})
|
||||
|
@ -4,7 +4,7 @@
|
||||
##
|
||||
|
||||
|
||||
module Metasploit4
|
||||
module Metasploit
|
||||
def initialize(info = {})
|
||||
super(
|
||||
merge_info(
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user