Use constants for base_arch
parent
d201c5bccc
commit
a7485c4bba
|
@ -20,7 +20,7 @@ class Meterpreter_Java_Java < Msf::Sessions::Meterpreter
|
|||
def initialize(rstream, opts={})
|
||||
super
|
||||
self.base_platform = 'java'
|
||||
self.base_arch = 'java'
|
||||
self.base_arch = ARCH_JAVA
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ class Meterpreter_mipsbe_Linux < Msf::Sessions::Meterpreter
|
|||
def initialize(rstream, opts={})
|
||||
super
|
||||
self.base_platform = 'linux'
|
||||
self.base_arch = 'mipsbe'
|
||||
self.base_arch = ARCH_MIPSBE
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ class Meterpreter_Php_Php < Msf::Sessions::Meterpreter
|
|||
def initialize(rstream, opts={})
|
||||
super
|
||||
self.base_platform = 'php'
|
||||
self.base_arch = 'php'
|
||||
self.base_arch = ARCH_PHP
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ class Meterpreter_Python_Python < Msf::Sessions::Meterpreter
|
|||
def initialize(rstream, opts={})
|
||||
super
|
||||
self.base_platform = 'python'
|
||||
self.base_arch = 'python'
|
||||
self.base_arch = ARCH_PYTHON
|
||||
end
|
||||
|
||||
def lookup_error(error_code)
|
||||
|
|
|
@ -20,7 +20,7 @@ class Meterpreter_x64_Mettle_Linux < Msf::Sessions::Meterpreter
|
|||
def initialize(rstream, opts={})
|
||||
super
|
||||
self.base_platform = 'linux'
|
||||
self.base_arch = 'x64'
|
||||
self.base_arch = ARCH_X64
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ class Meterpreter_x64_Win < Msf::Sessions::Meterpreter
|
|||
def initialize(rstream, opts={})
|
||||
super
|
||||
self.base_platform = 'windows'
|
||||
self.base_arch = 'x64'
|
||||
self.base_arch = ARCH_X64
|
||||
end
|
||||
|
||||
def lookup_error(code)
|
||||
|
|
|
@ -14,7 +14,7 @@ class Meterpreter_x86_BSD < Msf::Sessions::Meterpreter
|
|||
def initialize(rstream, opts={})
|
||||
super
|
||||
self.base_platform = 'bsd'
|
||||
self.base_arch = 'x86'
|
||||
self.base_arch = ARCH_X86
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ class Meterpreter_x86_Linux < Msf::Sessions::Meterpreter
|
|||
def initialize(rstream, opts={})
|
||||
super
|
||||
self.base_platform = 'linux'
|
||||
self.base_arch = 'x86'
|
||||
self.base_arch = ARCH_X86
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ class Meterpreter_x86_Mettle_Linux < Msf::Sessions::Meterpreter
|
|||
def initialize(rstream, opts={})
|
||||
super
|
||||
self.base_platform = 'linux'
|
||||
self.base_arch = 'x86'
|
||||
self.base_arch = ARCH_X86
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ class Meterpreter_x86_Win < Msf::Sessions::Meterpreter
|
|||
def initialize(rstream,opts={})
|
||||
super
|
||||
self.base_platform = 'windows'
|
||||
self.base_arch = 'x86'
|
||||
self.base_arch = ARCH_X86
|
||||
end
|
||||
|
||||
def lookup_error(code)
|
||||
|
|
Loading…
Reference in New Issue