Permalink
Browse files

Dont store files in /tmp with predictable names

  • Loading branch information...
1 parent 8fef147 commit 428a98c1d1d5341d32ffe0ed380d06a327ed2740 HD Moore committed Jul 16, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 plugins/pcap_log.rb
View
@@ -63,6 +63,12 @@ def cmd_pcap_iface(*args)
end
def cmd_pcap_start(*args)
+
+ unless @pcaprub_loaded
+ print_error("Pcap module not available")
+ return false
+ end
+
if @capture_thread && @capture_thread.alive?
print_error "Capture already started."
return false
@@ -154,7 +160,7 @@ def datastore
def initialize(*args)
super
- @dir = "/tmp"
+ @dir = File.join(Msf::Config.config_directory, 'logs')
@prefix = "msf3-session"
@filter = nil
@pcaprub_loaded = false

1 comment on commit 428a98c

Contributor

0a2940 commented on 428a98c Jul 16, 2012

Please sign in to comment.