File tree Expand file tree Collapse file tree 4 files changed +502
-502
lines changed Expand file tree Collapse file tree 4 files changed +502
-502
lines changed Original file line number Diff line number Diff line change @@ -1242,15 +1242,6 @@ def handler_enabled?
1242
1242
not datastore [ 'DisablePayloadHandler' ]
1243
1243
end
1244
1244
1245
- #
1246
- # Returns the state of the PrependMigrate option
1247
- # See https://github.com/rapid7/metasploit-framework/pull/917
1248
- # for discussion.
1249
- #
1250
- def prepend_migrate?
1251
- !!( datastore [ 'PrependMigrate' ] && datastore [ 'PrependMigrate' ] . to_s . downcase == 'true' )
1252
- end
1253
-
1254
1245
##
1255
1246
#
1256
1247
# Handler interaction
Original file line number Diff line number Diff line change 1
1
# -*- coding: binary -*-
2
2
require 'msf/core'
3
- require 'msf/core/payload/windows/prependmigrate'
4
3
5
4
###
6
5
#
12
11
###
13
12
module Msf ::Payload ::Windows
14
13
15
- include Msf ::Payload ::PrependMigrate
14
+ require 'msf/core/payload/windows/prepend_migrate'
15
+ # Provides the #prepends method
16
+ include Msf ::Payload ::Windows ::PrependMigrate
16
17
17
18
#
18
19
# ROR hash associations for some of the exit technique routines.
@@ -25,6 +26,11 @@ module Msf::Payload::Windows
25
26
'none' => 0x5DE2C5AA , # GetLastError
26
27
}
27
28
29
+
30
+ def generate
31
+ return prepends ( super )
32
+ end
33
+
28
34
#
29
35
# This mixin is chained within payloads that target the Windows platform.
30
36
# It provides special variable substitution for things like EXITFUNC and
You can’t perform that action at this time.
0 commit comments