Skip to content

Commit 79abb72

Browse files
author
Tod Beardsley
committed
Add some randomness to the /tmp filename
1 parent 2d129f9 commit 79abb72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/socket_logger.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def on_socket_created(comm, sock, param)
4343

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

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

0 commit comments

Comments
 (0)