fixed bug with default logdir

bug/bundler_fix
Rich Lundeen 2013-07-20 10:35:25 -07:00
parent 183cd7337d
commit 5fd8d53378
1 changed files with 3 additions and 0 deletions

View File

@ -126,6 +126,9 @@ class Metasploit3 < Msf::Auxiliary
return
end
log_dir = ::File.join(Msf::Config.log_directory,'scripts', 'psexec_command')
::FileUtils.mkdir_p(log_dir)
# Define log filename
timestamp = ::Time.now.strftime('%Y%m%d:%H%M%S')
filename = "#{datastore['RHOSTS']}_#{timestamp}"