File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 12
12
###
13
13
module Msf ::Payload ::Windows
14
14
15
+ # Provides the #prepends method
15
16
include Msf ::Payload ::Windows ::PrependMigrate
16
17
17
18
#
@@ -26,13 +27,6 @@ module Msf::Payload::Windows
26
27
}
27
28
28
29
29
- # @abstract Override to add additional stubs to prepend to the final
30
- # shellcode. Be sure to call super so other modules may add stubs.
31
- # @return [String] Stub to place at the begginning of generated shellcode
32
- def prepends
33
- ""
34
- end
35
-
36
30
def generate ( *args )
37
31
return prepends + super
38
32
end
Original file line number Diff line number Diff line change @@ -34,8 +34,6 @@ def prepend_migrate?
34
34
# Overload the generate() call to prefix our stubs
35
35
#
36
36
def prepends
37
- # Call the real generator to get the payload
38
- buf = super
39
37
pre = ''
40
38
41
39
test_arch = [ *( self . arch ) ]
@@ -51,7 +49,7 @@ def prepends
51
49
pre << Metasm ::Shellcode . assemble ( Metasm ::X64 . new , migrate_asm ) . encode_string
52
50
end
53
51
end
54
- return ( pre + buf )
52
+ return pre
55
53
end
56
54
57
55
#
You can’t perform that action at this time.
0 commit comments