No random names, but store in .msf4/logs

This commit is contained in:
Tod Beardsley 2015-02-09 16:46:02 -06:00
parent 79abb72589
commit 4014f1929f
No known key found for this signature in database
GPG Key ID: BD63D0A3EA19CAAC
1 changed files with 2 additions and 2 deletions

View File

@ -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)