From 4014f1929fcbf88ce61c71748e0677ca9c3d49f9 Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Mon, 9 Feb 2015 16:46:02 -0600 Subject: [PATCH] No random names, but store in .msf4/logs --- plugins/socket_logger.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/socket_logger.rb b/plugins/socket_logger.rb index 9f95fdca15..d608e039cc 100644 --- a/plugins/socket_logger.rb +++ b/plugins/socket_logger.rb @@ -42,8 +42,8 @@ class Plugin::SocketLogger < Msf::Plugin def initialize(framework, opts) - log_path = opts['path'] || "/tmp" - log_prefix = opts['prefix'] || "socket_#{Rex::Text.rand_text_alphanumeric(8)}_" + log_path = opts['path'] || Msf::Config.log_directory + log_prefix = opts['prefix'] || "socket_" super @eh = MySocketEventHandler.new(log_path, log_prefix)