Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Dont store files in /tmp with predictable names

  • Loading branch information...
commit 428a98c1d1d5341d32ffe0ed380d06a327ed2740 1 parent 8fef147
@hmoore-r7 hmoore-r7 authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 plugins/pcap_log.rb
View
8 plugins/pcap_log.rb
@@ -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

Please sign in to comment.
Something went wrong with that request. Please try again.