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