Skip to content

Commit ba32668

Browse files
committed
Add transport configuration to reverse_http/s
1 parent 5111abd commit ba32668

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# -*- coding: binary -*-
22

33
require 'msf/core'
4+
require 'msf/core/transport_config'
45
require 'msf/core/payload/windows/block_api'
56
require 'msf/core/payload/windows/exitfunk'
67
require 'msf/core/payload/uuid_options'
@@ -17,6 +18,7 @@ module Msf
1718

1819
module Payload::Windows::ReverseHttp
1920

21+
include Msf::TransportConfig
2022
include Msf::Payload::Windows
2123
include Msf::Payload::Windows::BlockApi
2224
include Msf::Payload::Windows::Exitfunk
@@ -85,6 +87,13 @@ def generate_reverse_http(opts={})
8587
Metasm::Shellcode.assemble(Metasm::X86.new, combined_asm).encode_string
8688
end
8789

90+
#
91+
# Generate the transport-specific configuration
92+
#
93+
def transport_config(opts={})
94+
transport_config_reverse_https(opts)
95+
end
96+
8897
#
8998
# Generate the URI for the initial stager
9099
#

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ def generate
6464
generate_reverse_https(conf)
6565
end
6666

67+
#
68+
# Generate the transport-specific configuration
69+
#
70+
def transport_config(opts={})
71+
transport_config_reverse_https(opts)
72+
end
73+
6774
end
6875

6976
end

0 commit comments

Comments
 (0)