Skip to content

Commit 5a81f80

Browse files
author
Austin
authored
change some options for somethinf for sensible
1 parent 335cc13 commit 5a81f80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/exploits/windows/fileformat/office_dde_delivery.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def initialize(info = {})
4545
}
4646
))
4747
register_options([
48-
OptString.new("FILENAME", [true, "Filename to save as, or inject", "msf.rtf"]),
49-
OptString.new("FOLDER_PATH", [false, "Path to file to inject", nil])
48+
OptString.new("FILENAME", [true, "Filename to save as", "msf.rtf"]),
49+
OptPath.new("INJECT_PATH", [false, "Path to file to inject", nil])
5050
])
5151
end
5252

@@ -112,8 +112,8 @@ def gen_sct_file(command)
112112
end
113113

114114
def retrieve_header(filename)
115-
if (not datastore['FOLDER_PATH'].nil?)
116-
path = "#{datastore['FOLDER_PATH']}/#{datastore['FILENAME']}"
115+
if (not datastore['INJECT_PATH'].nil?)
116+
path = "#{datastore['INJECT_PATH']}"
117117
else
118118
path = nil
119119
end

0 commit comments

Comments
 (0)