Fix missing stager_config functions, payload sizes
parent
3fad75641d
commit
bdc2e7c3cd
|
@ -57,12 +57,12 @@ module MetasploitModule
|
|||
jar.add_file(path.join("/"), data)
|
||||
end
|
||||
jar.build_manifest(:main_class => "metasploit.Payload")
|
||||
jar.add_file("metasploit.dat", config)
|
||||
jar.add_file("metasploit.dat", stager_config)
|
||||
|
||||
jar
|
||||
end
|
||||
|
||||
def config
|
||||
def stager_config
|
||||
c = ""
|
||||
c << "LHOST=#{datastore["LHOST"]}\n" if datastore["LHOST"]
|
||||
c << "LPORT=#{datastore["LPORT"]}\n" if datastore["LPORT"]
|
||||
|
|
|
@ -41,7 +41,7 @@ module MetasploitModule
|
|||
@class_files = [ ]
|
||||
end
|
||||
|
||||
def config
|
||||
def stager_config
|
||||
spawn = datastore["Spawn"] || 2
|
||||
c = ""
|
||||
c << "Spawn=#{spawn}\n"
|
||||
|
|
|
@ -9,7 +9,7 @@ require 'msf/core/payload/java/reverse_http'
|
|||
|
||||
module MetasploitModule
|
||||
|
||||
CachedSize = 5123
|
||||
CachedSize = :dynamic
|
||||
|
||||
include Msf::Payload::Stager
|
||||
include Msf::Payload::Java
|
||||
|
|
|
@ -10,7 +10,7 @@ require 'msf/core/payload/java/reverse_https'
|
|||
|
||||
module MetasploitModule
|
||||
|
||||
CachedSize = 5932
|
||||
CachedSize = :dynamic
|
||||
|
||||
include Msf::Payload::Stager
|
||||
include Msf::Payload::Java
|
||||
|
|
|
@ -9,7 +9,7 @@ require 'msf/core/payload/multi/reverse_http'
|
|||
|
||||
module MetasploitModule
|
||||
|
||||
CachedSize = :dynamic
|
||||
CachedSize = 0
|
||||
|
||||
include Msf::Payload::Stager
|
||||
include Msf::Payload::Multi
|
||||
|
|
|
@ -9,7 +9,7 @@ require 'msf/core/payload/multi/reverse_https'
|
|||
|
||||
module MetasploitModule
|
||||
|
||||
CachedSize = :dynamic
|
||||
CachedSize = 0
|
||||
|
||||
include Msf::Payload::Stager
|
||||
include Msf::Payload::Multi
|
||||
|
|
Loading…
Reference in New Issue