File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed 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/prepend_migrate'
4
3
5
4
###
6
5
#
12
11
###
13
12
module Msf ::Payload ::Windows
14
13
14
+ require 'msf/core/payload/windows/prepend_migrate'
15
15
# Provides the #prepends method
16
16
include Msf ::Payload ::Windows ::PrependMigrate
17
17
@@ -27,8 +27,8 @@ module Msf::Payload::Windows
27
27
}
28
28
29
29
30
- def generate ( * args )
31
- return prepends + super
30
+ def generate
31
+ return prepends ( super )
32
32
end
33
33
34
34
#
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def prepend_migrate?
33
33
#
34
34
# Overload the generate() call to prefix our stubs
35
35
#
36
- def prepends
36
+ def prepends ( buf )
37
37
pre = ''
38
38
39
39
test_arch = [ *( self . arch ) ]
@@ -49,7 +49,7 @@ def prepends
49
49
pre << Metasm ::Shellcode . assemble ( Metasm ::X64 . new , migrate_asm ) . encode_string
50
50
end
51
51
end
52
- return pre
52
+ return pre + buf
53
53
end
54
54
55
55
#
You can’t perform that action at this time.
0 commit comments