diff options
| author | mo khan <mo@mokhan.ca> | 2015-02-07 08:33:02 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-02-07 08:33:02 -0700 |
| commit | d6af160515debb1de4144c632cc81e6039c3a1bf (patch) | |
| tree | e157164dc0b057b34a0ecb710b2f7649ae4d67b2 /app/workers | |
| parent | bbe1d5d27ac72a172d155249067206e85e3c013a (diff) | |
fetch report for file from virus total.
Diffstat (limited to 'app/workers')
| -rw-r--r-- | app/workers/cloud_queries.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/workers/cloud_queries.rb b/app/workers/cloud_queries.rb index 5592ed9..4e87649 100644 --- a/app/workers/cloud_queries.rb +++ b/app/workers/cloud_queries.rb @@ -18,11 +18,12 @@ class CloudQueries }), to_queue: "worker.events") if disposition.nil? - publish(JSON.generate({ - command: :request_analysis, - agent_id: attributes["agent_id"], - fingerprint: fingerprint, - }), routing_key: "malwer.agents.#{attributes["agent_id"]}") + #publish(JSON.generate({ + #command: :request_analysis, + #agent_id: attributes["agent_id"], + #fingerprint: fingerprint, + #}), routing_key: "malwer.commands") + FingerprintLookup.perform_later(fingerprint) end ack! |
