uirusu 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uirusu.rb +1 -1
- data/lib/uirusu/cli/application.rb +1 -4
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5019d6413d29610639494c12e52d57b6cbbdaeb8
|
4
|
+
data.tar.gz: 859ba7710e42ece4a2e411bbb8336c93b45e8c72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b34202d8a6c71e86dd0c9d449b4972a9324768fec60c5be2ca7cc55fcde4e29d1b6753dd074e188db57faf2bc8caebad4cdcf375deba15c4bdadc3c3ad3ffe2
|
7
|
+
data.tar.gz: 8546e40f55b8af407b86243d1cfc236c510375329590801778694499c199522b12f5407e257480c8008a1412db91e72b85dc0cc565b1e42bae7cdcd110992622
|
data/lib/uirusu.rb
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
module Uirusu
|
30
30
|
APP_NAME = "uirusu"
|
31
|
-
VERSION = "0.0.
|
31
|
+
VERSION = "0.0.8"
|
32
32
|
CONFIG_FILE = Dir.home + "/.uirusu"
|
33
33
|
VT_API = "https://www.virustotal.com/vtapi/v2"
|
34
34
|
RESULT_FIELDS = [ :hash, :scanner, :version, :detected, :result, :md5, :sha1, :sha256, :update, :permalink]
|
@@ -219,19 +219,17 @@ module Uirusu
|
|
219
219
|
# rescan_file returns an array of results if more than one hash
|
220
220
|
# is requested to be rescanned.
|
221
221
|
result_array = result.is_a?(Array) ? result : [ result ]
|
222
|
-
|
223
222
|
result_array.collect do |result|
|
224
223
|
if result['response_code'] == 1
|
225
224
|
STDERR.puts "[*] Attempting to parse the results for: #{result['resource']}" if @options['verbose']
|
226
225
|
results = mod.query_report(@config['virustotal']['api-key'], result['resource'])
|
227
|
-
|
228
226
|
while results['response_code'] != 1
|
229
227
|
STDERR.puts "[*] File has not been analyized yet, waiting 60 seconds to try again" if @options['verbose']
|
230
228
|
sleep 60
|
231
229
|
results = mod.query_report(@config['virustotal']['api-key'], result['resource'])
|
232
230
|
end
|
233
231
|
|
234
|
-
|
232
|
+
return result['resource'], results
|
235
233
|
#return [result['resource'], results]
|
236
234
|
|
237
235
|
elsif result['response_code'] == 0 and @options['rescan']
|
@@ -333,4 +331,3 @@ module Uirusu
|
|
333
331
|
end
|
334
332
|
end
|
335
333
|
end
|
336
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uirusu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacob Hammack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -88,3 +88,4 @@ signing_key:
|
|
88
88
|
specification_version: 4
|
89
89
|
summary: uirusu
|
90
90
|
test_files: []
|
91
|
+
has_rdoc: yard
|