Add some randomness to the /tmp filename

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

View File

@ -43,7 +43,7 @@ class Plugin::SocketLogger < Msf::Plugin
def initialize(framework, opts)
log_path = opts['path'] || "/tmp"
log_prefix = opts['prefix'] || "socket_"
log_prefix = opts['prefix'] || "socket_#{Rex::Text.rand_text_alphanumeric(8)}_"
super
@eh = MySocketEventHandler.new(log_path, log_prefix)