Skip to content

Commit 5fd8d53

Browse files
fixed bug with default logdir
1 parent 183cd73 commit 5fd8d53

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/auxiliary/admin/smb/psexec_command.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ def get_output(file)
126126
return
127127
end
128128

129+
log_dir = ::File.join(Msf::Config.log_directory,'scripts', 'psexec_command')
130+
::FileUtils.mkdir_p(log_dir)
131+
129132
# Define log filename
130133
timestamp = ::Time.now.strftime('%Y%m%d:%H%M%S')
131134
filename = "#{datastore['RHOSTS']}_#{timestamp}"

0 commit comments

Comments
 (0)