Incorporating a few more cleanup items from jvazquez
parent
cbfef6ec7a
commit
c3113f796e
|
@ -55,7 +55,6 @@ class Metasploit3 < Msf::Auxiliary
|
|||
OptString.new('FILEPREFIX', [false, 'Add a custom prefix to the temporary files','']),
|
||||
OptInt.new('DELAY', [true, 'Wait this many seconds before reading output and cleaning up', 0]),
|
||||
OptInt.new('RETRY', [true, 'Retry this many times to check if the process is complete', 0]),
|
||||
OptPath.new('LOGDIR', [false, 'File to log output', nil]),
|
||||
], self.class)
|
||||
|
||||
deregister_options('RHOST')
|
||||
|
@ -126,9 +125,6 @@ class Metasploit3 < Msf::Auxiliary
|
|||
return
|
||||
end
|
||||
|
||||
log_dir = ::File.join(Msf::Config.log_directory,'scripts', 'psexec_command')
|
||||
::FileUtils.mkdir_p(log_dir)
|
||||
|
||||
# Report output
|
||||
print_good("#{peer} - Command completed successfuly!")
|
||||
if datastore['VERBOSE']
|
||||
|
@ -137,7 +133,8 @@ class Metasploit3 < Msf::Auxiliary
|
|||
end
|
||||
|
||||
report_note(
|
||||
:host => datastore['RHOSTS'],
|
||||
:rhost => datastore['RHOSTS'],
|
||||
:rport => datastore['RPORT'],
|
||||
:type => "psexec_command",
|
||||
:name => datastore['COMMAND'],
|
||||
:data => output
|
||||
|
|
Loading…
Reference in New Issue