@@ -55,7 +55,6 @@ def initialize(info = {})
55
55
OptString . new ( 'FILEPREFIX' , [ false , 'Add a custom prefix to the temporary files' , '' ] ) ,
56
56
OptInt . new ( 'DELAY' , [ true , 'Wait this many seconds before reading output and cleaning up' , 0 ] ) ,
57
57
OptInt . new ( 'RETRY' , [ true , 'Retry this many times to check if the process is complete' , 0 ] ) ,
58
- OptPath . new ( 'LOGDIR' , [ false , 'File to log output' , nil ] ) ,
59
58
] , self . class )
60
59
61
60
deregister_options ( 'RHOST' )
@@ -126,9 +125,6 @@ def get_output(file)
126
125
return
127
126
end
128
127
129
- log_dir = ::File . join ( Msf ::Config . log_directory , 'scripts' , 'psexec_command' )
130
- ::FileUtils . mkdir_p ( log_dir )
131
-
132
128
# Report output
133
129
print_good ( "#{ peer } - Command completed successfuly!" )
134
130
if datastore [ 'VERBOSE' ]
@@ -137,7 +133,8 @@ def get_output(file)
137
133
end
138
134
139
135
report_note (
140
- :host => datastore [ 'RHOSTS' ] ,
136
+ :rhost => datastore [ 'RHOSTS' ] ,
137
+ :rport => datastore [ 'RPORT' ] ,
141
138
:type => "psexec_command" ,
142
139
:name => datastore [ 'COMMAND' ] ,
143
140
:data => output
0 commit comments