Skip to content

Commit 4014f19

Browse files
author
Tod Beardsley
committed
No random names, but store in .msf4/logs
1 parent 79abb72 commit 4014f19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/socket_logger.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def on_socket_created(comm, sock, param)
4242

4343

4444
def initialize(framework, opts)
45-
log_path = opts['path'] || "/tmp"
46-
log_prefix = opts['prefix'] || "socket_#{Rex::Text.rand_text_alphanumeric(8)}_"
45+
log_path = opts['path'] || Msf::Config.log_directory
46+
log_prefix = opts['prefix'] || "socket_"
4747

4848
super
4949
@eh = MySocketEventHandler.new(log_path, log_prefix)

0 commit comments

Comments
 (0)