Fix missing stager_config functions, payload sizes

bug/bundler_fix
OJ 2016-11-30 16:11:51 +10:00
parent 3fad75641d
commit bdc2e7c3cd
No known key found for this signature in database
GPG Key ID: D5DC61FB93260597
6 changed files with 7 additions and 7 deletions

View File

@ -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"]

View File

@ -41,7 +41,7 @@ module MetasploitModule
@class_files = [ ]
end
def config
def stager_config
spawn = datastore["Spawn"] || 2
c = ""
c << "Spawn=#{spawn}\n"

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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