Skip to content

Commit 2259de3

Browse files
committed
Merge branch 'winamp_maki_bof' of https://github.com/jvazquez-r7/metasploit-framework into jvazquez-r7-winamp_maki_bof
2 parents 1c14c27 + 199fbaf commit 2259de3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

modules/exploits/windows/fileformat/winamp_maki_bof.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,10 @@ def initialize(info = {})
6767
'Privileged' => false,
6868
'DisclosureDate' => 'May 20 2009',
6969
'DefaultTarget' => 0))
70+
end
7071

71-
register_options(
72-
[
73-
OptString.new('FILENAME', [ false, 'The file name (do not change!)', 'mcvcore.maki']),
74-
], self.class)
75-
72+
def file_format_filename
73+
'mcvcore.maki'
7674
end
7775

7876
def exploit
@@ -100,7 +98,7 @@ def exploit
10098
maki << types
10199
maki << functions
102100

103-
print_status("Creating '#{datastore['FILENAME']}' file ...")
101+
print_status("Creating '#{file_format_filename}' file ...")
104102

105103
file_create(maki)
106104

0 commit comments

Comments
 (0)