Skip to content

Commit bdc2e7c

Browse files
committed
Fix missing stager_config functions, payload sizes
1 parent 3fad756 commit bdc2e7c

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

modules/payloads/singles/java/shell_reverse_tcp.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ def generate_jar(opts={})
5757
jar.add_file(path.join("/"), data)
5858
end
5959
jar.build_manifest(:main_class => "metasploit.Payload")
60-
jar.add_file("metasploit.dat", config)
60+
jar.add_file("metasploit.dat", stager_config)
6161

6262
jar
6363
end
6464

65-
def config
65+
def stager_config
6666
c = ""
6767
c << "LHOST=#{datastore["LHOST"]}\n" if datastore["LHOST"]
6868
c << "LPORT=#{datastore["LPORT"]}\n" if datastore["LPORT"]

modules/payloads/stagers/java/bind_tcp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def initialize(info = {})
4141
@class_files = [ ]
4242
end
4343

44-
def config
44+
def stager_config
4545
spawn = datastore["Spawn"] || 2
4646
c = ""
4747
c << "Spawn=#{spawn}\n"

modules/payloads/stagers/java/reverse_http.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
module MetasploitModule
1111

12-
CachedSize = 5123
12+
CachedSize = :dynamic
1313

1414
include Msf::Payload::Stager
1515
include Msf::Payload::Java

modules/payloads/stagers/java/reverse_https.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
module MetasploitModule
1212

13-
CachedSize = 5932
13+
CachedSize = :dynamic
1414

1515
include Msf::Payload::Stager
1616
include Msf::Payload::Java

modules/payloads/stagers/multi/reverse_http.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
module MetasploitModule
1111

12-
CachedSize = :dynamic
12+
CachedSize = 0
1313

1414
include Msf::Payload::Stager
1515
include Msf::Payload::Multi

modules/payloads/stagers/multi/reverse_https.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
module MetasploitModule
1111

12-
CachedSize = :dynamic
12+
CachedSize = 0
1313

1414
include Msf::Payload::Stager
1515
include Msf::Payload::Multi

0 commit comments

Comments
 (0)