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

View File

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

View File

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

View File

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

View File

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

View File

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