Skip to content

Commit 5f382e5

Browse files
author
HD Moore
committed
Updated required_space to count all 256 bytes of the URL
1 parent dedf372 commit 5f382e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def required_space
102102
# Add 100 bytes for the encoder to have some room
103103
space += 100
104104

105-
# Add 251 bytes for large URI support (technically a little less, but lets go with it)
106-
space += 251
105+
# Make room for the maximum possible URL length
106+
space += 256
107107

108108
# EXITFUNK processing adds 31 bytes at most (for ExitThread, only ~16 for others)
109109
space += 31

0 commit comments

Comments
 (0)