File tree Expand file tree Collapse file tree 3 files changed +2
-21
lines changed
modules/payloads/stagers/android Expand file tree Collapse file tree 3 files changed +2
-21
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def generate_config(opts={})
51
51
arch : opts [ :uuid ] . arch ,
52
52
expiration : ds [ 'SessionExpirationTimeout' ] . to_i ,
53
53
uuid : opts [ :uuid ] ,
54
- transports : [ transport_config ( opts ) ]
54
+ transports : opts [ :transport_config ] || [ transport_config ( opts ) ]
55
55
}
56
56
57
57
config = Rex ::Payloads ::Meterpreter ::Config . new ( config_opts )
Original file line number Diff line number Diff line change @@ -51,25 +51,6 @@ def stage_meterpreter(opts={})
51
51
( blocks + [ blocks . length ] ) . pack ( 'A*' * blocks . length + 'N' )
52
52
end
53
53
54
- def generate_config ( opts = { } )
55
- opts [ :uuid ] ||= generate_payload_uuid
56
- ds = opts [ :datastore ] || datastore
57
-
58
- # create the configuration block, which for staged connections is really simple.
59
- config_opts = {
60
- ascii_str : true ,
61
- arch : opts [ :uuid ] . arch ,
62
- expiration : ds [ 'SessionExpirationTimeout' ] . to_i ,
63
- uuid : opts [ :uuid ] ,
64
- transports : opts [ :transport_config ] || [ transport_config ( opts ) ]
65
- }
66
-
67
- # create the configuration instance based off the parameters
68
- config = Rex ::Payloads ::Meterpreter ::Config . new ( config_opts )
69
-
70
- # return the XML version of it
71
- config . to_b
72
- end
73
54
end
74
55
end
75
56
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ module MetasploitModule
14
14
15
15
include Msf ::Payload ::Stager
16
16
include Msf ::Payload ::Android
17
- include Msf ::Payload ::Android ::ReverseHttp
17
+ include Msf ::Payload ::Android ::ReverseHttps
18
18
19
19
def initialize ( info = { } )
20
20
super ( merge_info ( info ,
You can’t perform that action at this time.
0 commit comments