Skip to content

Commit 0b6e41d

Browse files
committed
Attempting to fix cached size errors.
1 parent 0f5ff6e commit 0b6e41d

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

lib/msf/core/payload/windows/reverse_tcp.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ def required_space
8787
# Start with our cached default generated size
8888
space = cached_size
8989

90-
# Bind port bytes, adds 35 bytes.
91-
space += 50
92-
9390
# EXITFUNK 'thread' is the biggest by far, adds 29 bytes.
9491
space += 29
9592

modules/payloads/stagers/windows/reverse_tcp.rb

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

99
module MetasploitModule
1010

11-
CachedSize = 281
11+
CachedSize = 293
1212

1313
include Msf::Payload::Stager
1414
include Msf::Payload::Windows::ReverseTcp

modules/payloads/stagers/windows/reverse_tcp_rc4.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 = 398
13+
CachedSize = 410
1414

1515
include Msf::Payload::Stager
1616
include Msf::Payload::Windows::ReverseTcpRc4

0 commit comments

Comments
 (0)