File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
lib/msf/core/payload/windows Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1
1
# -*- coding: binary -*-
2
2
3
3
require 'msf/core'
4
+ require 'msf/core/transport_config'
4
5
require 'msf/core/payload/windows/block_api'
5
6
require 'msf/core/payload/windows/exitfunk'
6
7
require 'msf/core/payload/uuid_options'
@@ -17,6 +18,7 @@ module Msf
17
18
18
19
module Payload ::Windows ::ReverseHttp
19
20
21
+ include Msf ::TransportConfig
20
22
include Msf ::Payload ::Windows
21
23
include Msf ::Payload ::Windows ::BlockApi
22
24
include Msf ::Payload ::Windows ::Exitfunk
@@ -85,6 +87,13 @@ def generate_reverse_http(opts={})
85
87
Metasm ::Shellcode . assemble ( Metasm ::X86 . new , combined_asm ) . encode_string
86
88
end
87
89
90
+ #
91
+ # Generate the transport-specific configuration
92
+ #
93
+ def transport_config ( opts = { } )
94
+ transport_config_reverse_https ( opts )
95
+ end
96
+
88
97
#
89
98
# Generate the URI for the initial stager
90
99
#
Original file line number Diff line number Diff line change @@ -64,6 +64,13 @@ def generate
64
64
generate_reverse_https ( conf )
65
65
end
66
66
67
+ #
68
+ # Generate the transport-specific configuration
69
+ #
70
+ def transport_config ( opts = { } )
71
+ transport_config_reverse_https ( opts )
72
+ end
73
+
67
74
end
68
75
69
76
end
You can’t perform that action at this time.
0 commit comments