Skip to content

Commit

Permalink
No random names, but store in .msf4/logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tod Beardsley committed Feb 9, 2015
1 parent 79abb72 commit 4014f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/socket_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def on_socket_created(comm, sock, param)


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)
Expand Down

0 comments on commit 4014f19

Please sign in to comment.