summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-02-05 21:43:26 -0700
committermo khan <mo@mokhan.ca>2015-02-05 21:43:26 -0700
commit000634705950a849d2c7f6f90054185d9c85f5c5 (patch)
tree49ea1a7bed4e43bc4c8cdbdf63545e0b6f4b6a47 /lib/tasks
parent834bf9261ee0ac209201d7643594361e6308f8e4 (diff)
attempt to scan network traffic.
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/agent.rake6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tasks/agent.rake b/lib/tasks/agent.rake
index d00de1d..98aa2d5 100644
--- a/lib/tasks/agent.rake
+++ b/lib/tasks/agent.rake
@@ -12,4 +12,10 @@ namespace :agent do
agent = FakeAgent.new(Agent.first.id, 'http://localhost:3000')
agent.scan(Dir.pwd)
end
+
+ desc "scan network traffic"
+ task nfm: :environment do
+ agent = FakeAgent.new(Agent.first.id, 'http://localhost:3000')
+ agent.sniff('en1')
+ end
end