Skip to content

Commit 800ab11

Browse files
committed
Payload size adjustment, typo fix
Woot, this somehow reduces the payload sizes by 2 bytes... woot.. or something.
1 parent cbf06fc commit 800ab11

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def initialize(*args)
4343
#
4444
def generate(opts={})
4545
conf = {
46-
:ssl => opts[ssl] || false,
46+
:ssl => opts[:ssl] || false,
4747
:host => datastore['LHOST'],
4848
:port => datastore['LPORT'],
4949
:url => generate_small_uri,

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ def asm_reverse_winhttp(opts={})
155155
0x00002000 | # SECURITY_FLAG_IGNORE_CERT_DATE_INVALID
156156
0x00001000 | # SECURITY_FLAG_IGNORE_CERT_CN_INVALID
157157
0x00000200 | # SECURITY_FLAG_IGNORE_WRONG_USAGE
158-
0x00000100 | # SECURITY_FLAG_IGNORE_UNKNOWN_CA
159-
0x00000080 ) # SECURITY_FLAG_IGNORE_REVOCATION
158+
0x00000100 ) # SECURITY_FLAG_IGNORE_UNKNOWN_CA
160159
else
161160
http_open_flags = (
162161
0x00000100 ) # WINHTTP_FLAG_BYPASS_PROXY_CACHE

modules/payloads/stagers/windows/reverse_winhttp.rb

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

1212
module Metasploit3
1313

14-
CachedSize = 329
14+
CachedSize = 327
1515

1616
include Msf::Payload::Stager
1717
include Msf::Payload::Windows

modules/payloads/stagers/windows/reverse_winhttps.rb

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

1212
module Metasploit3
1313

14-
CachedSize = 349
14+
CachedSize = 347
1515

1616
include Msf::Payload::Stager
1717
include Msf::Payload::Windows

0 commit comments

Comments
 (0)