uirusu 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/uirusu.rb +2 -2
- data/lib/uirusu/cli/application.rb +1 -1
- data/lib/uirusu/vtcomment.rb +1 -1
- data/lib/uirusu/vtfile.rb +3 -3
- data/lib/uirusu/vturl.rb +2 -2
- data/uirusu.gemspec +1 -1
- metadata +14 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a381ecec1569130fd34f3b2a530678e72eccd81e
|
4
|
+
data.tar.gz: 33c79e19e656f316f6f487cac9f24e73e1e07ffd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0563ddc09dfea1e06640f58a84fd8dee25339fd866e5a0212b9304c76cb8b39093e8e92df011207ad2165275fbd13a8a01be38317010b3f918aa8409deca9809
|
7
|
+
data.tar.gz: a3abfa1fae0c2b7de6f8d22e02628dff0a4f96783d85e346f0c474edd903af86f1be5a2676112c805a5a8418e5e3b53ba9c2326f19a506914aa7857033088e53
|
data/Rakefile
CHANGED
data/lib/uirusu.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2012-
|
1
|
+
# Copyright (c) 2012-2015 Arxopia LLC.
|
2
2
|
# All rights reserved.
|
3
3
|
#
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
module Uirusu
|
30
30
|
APP_NAME = "uirusu"
|
31
|
-
VERSION = "0.0.
|
31
|
+
VERSION = "0.0.7"
|
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]
|
@@ -67,7 +67,7 @@ module Uirusu
|
|
67
67
|
@hashes.push(hash)
|
68
68
|
end
|
69
69
|
|
70
|
-
opt.on('-f FILE', '--search-hash-file FILE', 'Searches
|
70
|
+
opt.on('-f FILE', '--search-hash-file FILE', 'Searches each hash in a file of hashes on virustotal.com') do |file|
|
71
71
|
if File.exists?(file)
|
72
72
|
puts "[+] Adding file #{file}" if @options['verbose']
|
73
73
|
@files_of_hashes.push(file)
|
data/lib/uirusu/vtcomment.rb
CHANGED
@@ -55,7 +55,7 @@ module Uirusu
|
|
55
55
|
response = RestClient.post POST_URL, :apikey => api_key, :resource => resource, :comment => comment
|
56
56
|
|
57
57
|
case response.code
|
58
|
-
when 429
|
58
|
+
when 429, 204
|
59
59
|
raise "Virustotal limit reached. Try again later."
|
60
60
|
when 403
|
61
61
|
raise "Invalid privileges, please check your API key."
|
data/lib/uirusu/vtfile.rb
CHANGED
@@ -53,7 +53,7 @@ module Uirusu
|
|
53
53
|
response = RestClient.post REPORT_URL, :apikey => api_key, :resource => resource
|
54
54
|
|
55
55
|
case response.code
|
56
|
-
when 429
|
56
|
+
when 429, 204
|
57
57
|
raise "Virustotal limit reached. Try again later."
|
58
58
|
when 403
|
59
59
|
raise "Invalid privileges, please check your API key."
|
@@ -84,7 +84,7 @@ module Uirusu
|
|
84
84
|
response = RestClient.post SCAN_URL, :apikey => api_key, :filename=> path_to_file, :file => File.new(path_to_file, 'rb')
|
85
85
|
|
86
86
|
case response.code
|
87
|
-
when 429
|
87
|
+
when 429, 204
|
88
88
|
raise "Virustotal limit reached. Try again later."
|
89
89
|
when 403
|
90
90
|
raise "Invalid privileges, please check your API key."
|
@@ -113,7 +113,7 @@ module Uirusu
|
|
113
113
|
response = RestClient.post RESCAN_URL, :apikey => api_key, :resource => resource
|
114
114
|
|
115
115
|
case response.code
|
116
|
-
when 429
|
116
|
+
when 429, 204
|
117
117
|
raise "Virustotal limit reached. Try again later."
|
118
118
|
when 403
|
119
119
|
raise "Invalid privileges, please check your API key."
|
data/lib/uirusu/vturl.rb
CHANGED
@@ -51,7 +51,7 @@ module Uirusu
|
|
51
51
|
response = RestClient.post SCAN_URL, :apikey => api_key, :url => resource
|
52
52
|
|
53
53
|
case response.code
|
54
|
-
when 429
|
54
|
+
when 429, 204
|
55
55
|
raise "Virustotal limit reached. Try again later."
|
56
56
|
when 403
|
57
57
|
raise "Invalid privileges, please check your API key."
|
@@ -80,7 +80,7 @@ module Uirusu
|
|
80
80
|
response = RestClient.post REPORT_URL, :apikey => api_key, :resource => resource
|
81
81
|
|
82
82
|
case response.code
|
83
|
-
when 429
|
83
|
+
when 429, 204
|
84
84
|
raise "Virustotal limit reached. Try again later."
|
85
85
|
when 403
|
86
86
|
raise "Invalid privileges, please check your API key."
|
data/uirusu.gemspec
CHANGED
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacob Hammack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 1.5.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.5.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rest-client
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 1.6.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.6.1
|
41
41
|
description: uirusu is library for interacting with Virustotal.org
|
@@ -49,20 +49,20 @@ extra_rdoc_files:
|
|
49
49
|
- NEWS.markdown
|
50
50
|
- TODO.markdown
|
51
51
|
files:
|
52
|
-
-
|
53
|
-
- Rakefile
|
52
|
+
- LICENSE
|
54
53
|
- NEWS.markdown
|
55
54
|
- README.markdown
|
56
|
-
-
|
55
|
+
- Rakefile
|
56
|
+
- TODO.markdown
|
57
|
+
- bin/uirusu
|
57
58
|
- lib/uirusu.rb
|
58
59
|
- lib/uirusu/cli/application.rb
|
59
|
-
- lib/uirusu/vtresult.rb
|
60
60
|
- lib/uirusu/scanner.rb
|
61
61
|
- lib/uirusu/vtcomment.rb
|
62
62
|
- lib/uirusu/vtfile.rb
|
63
|
+
- lib/uirusu/vtresult.rb
|
63
64
|
- lib/uirusu/vturl.rb
|
64
65
|
- uirusu.gemspec
|
65
|
-
- bin/uirusu
|
66
66
|
homepage: http://github.com/arxopia/uirusu/
|
67
67
|
licenses:
|
68
68
|
- BSD
|
@@ -73,19 +73,18 @@ require_paths:
|
|
73
73
|
- lib
|
74
74
|
required_ruby_version: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
|
-
- -
|
76
|
+
- - ">="
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: 1.9.3
|
79
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: 1.8.16
|
84
84
|
requirements: []
|
85
85
|
rubyforge_project:
|
86
|
-
rubygems_version: 2.
|
86
|
+
rubygems_version: 2.2.2
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: uirusu
|
90
90
|
test_files: []
|
91
|
-
has_rdoc: yard
|