uirusu 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49e3532797b72c0f145b1f5f36a80acad2db42cc
4
- data.tar.gz: 48a2b8320da1bef6327f98257f77103742aeff91
3
+ metadata.gz: 7ab64167723d07269f89b4b4c43fce4ae73a6683
4
+ data.tar.gz: 6292e4118f27a801bb720a39fc17678a150ec263
5
5
  SHA512:
6
- metadata.gz: 96599069413f823972277e52f97c2fa8f68f2ed90f84d7242f7751b8836d994c35d9b25cc7ee1f11732b6b72d8107b189a50b99aefa99a8d0e4696a2134123fd
7
- data.tar.gz: b70a141bc7d943865d18f97e56b930efe000a178a0ddb4f171920d0123e7e29cb9a8482d53ba7e58c15c89bd9b2aedf17781ea501015dfb21b46dc9bbe5c6fd5
6
+ metadata.gz: '0421708fcf7a0217f2a4388390d6faf5b6b011dd3b6ec11128f7d8aadad3dea144549b237a7fe0396480cd40b9c8268445bbbba9ee5d7ae1f4687af8867def5d'
7
+ data.tar.gz: 6c38e8055e9b33502ebe202ca664f08b24e603afbd1f99a76caa321ad10ef2c51e80a321eed7d3ec17b5f979f7976d663669f3c9f5eb19111ec65f2007d365fa
@@ -1,4 +1,6 @@
1
- # uirusu [![Gem Version](https://badge.fury.io/rb/uirusu.png)](http://badge.fury.io/rb/uirusu) [![Build Status](https://travis-ci.org/hammackj/uirusu.svg)](https://travis-ci.org/hammackj/uirusu) [![Code Climate](https://codeclimate.com/github/hammackj/uirusu/badges/gpa.svg)](https://codeclimate.com/github/hammackj/uirusu) [![Inline docs](http://inch-ci.org/github/hammackj/uirusu.svg?branch=master)](http://inch-ci.org/github/hammackj/uirusu)
1
+ # uirusu
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/uirusu.png)](http://badge.fury.io/rb/uirusu) [![Build Status](https://travis-ci.org/hammackj/uirusu.svg)](https://travis-ci.org/hammackj/uirusu) [![Code Climate](https://codeclimate.com/github/hammackj/uirusu/badges/gpa.svg)](https://codeclimate.com/github/hammackj/uirusu) [![Inline docs](http://inch-ci.org/github/hammackj/uirusu.svg?branch=master)](http://inch-ci.org/github/hammackj/uirusu)
2
4
 
3
5
  uirusu is an [Virustotal](http://www.virustotal.com) automation and convenience tool for hash, file and URL submission.
4
6
 
data/Rakefile CHANGED
@@ -49,6 +49,14 @@ task :clean do
49
49
  system "rm -rf coverage"
50
50
  end
51
51
 
52
+ task :console do
53
+ require 'irb'
54
+ require 'irb/completion'
55
+ require 'uirusu' # You know what to do.
56
+ ARGV.clear
57
+ IRB.start
58
+ end
59
+
52
60
  task :default => [:test]
53
61
 
54
62
  Rake::TestTask.new("test") do |t|
@@ -1,6 +1,10 @@
1
1
  # News
2
2
 
3
- # 1.1.0 (March 1, 2017)
3
+ # 1.1.1 (November 6, 2017)
4
+ - Fixed File.exist? deprecations [@ninoseki]
5
+ - Fixed Fix issue with RestClient GET requests #16 [@joshporter1]
6
+
7
+ # 1.1.0 (February 11, 2017)
4
8
  - **Moved Github repository from http://github.com/arxopia/uirusu to http://github.com/hammackj/uirusu**
5
9
  - Fixed File query report
6
10
  - Fixed Url API
@@ -46,7 +46,7 @@ module Uirusu
46
46
  response = resource.post(params)
47
47
  else
48
48
  #response = RestClient.get url, params: params
49
- response = resource.get(params)
49
+ response = resource.get(params: params)
50
50
  end
51
51
  rescue => e
52
52
  response = e.response
@@ -62,7 +62,7 @@ module Uirusu
62
62
  end
63
63
 
64
64
  opt.on('-f FILE', '--search-hash-file FILE', 'Searches each hash in a file of hashes on virustotal.com') do |file|
65
- if File.exists?(file)
65
+ if File.exist?(file)
66
66
  puts "[+] Adding file #{file}" if @options['verbose']
67
67
  @files_of_hashes.push(file)
68
68
  else
@@ -71,7 +71,7 @@ module Uirusu
71
71
  end
72
72
 
73
73
  opt.on('-u FILE', '--upload-file FILE', 'Uploads a file to virustotal.com for analysis') do |file|
74
- if File.exists?(file)
74
+ if File.exist?(file)
75
75
  puts "[+] Adding file #{file}" if @options['verbose']
76
76
  @uploads.push(file)
77
77
  else
@@ -156,7 +156,7 @@ module Uirusu
156
156
  def create_config file=CONFIG_FILE
157
157
  f = File.expand_path(file)
158
158
 
159
- if File.exists?(f) == false
159
+ if File.exist?(f) == false
160
160
  File.open(f, 'w+') do |of|
161
161
  of.write("virustotal: \n api-key: \n timeout: 25\n\n")
162
162
  end
@@ -174,7 +174,7 @@ module Uirusu
174
174
 
175
175
  f = File.expand_path(file)
176
176
 
177
- if File.exists?(f)
177
+ if File.exist?(f)
178
178
  @config = YAML.load_file f
179
179
  else
180
180
  if ENV['UIRUSU_VT_API_KEY']
@@ -20,7 +20,7 @@
20
20
 
21
21
  module Uirusu
22
22
  APP_NAME = "uirusu"
23
- VERSION = "1.1.0"
23
+ VERSION = "1.1.1"
24
24
  HOME_PAGE = "http://hammackj.github.io/uirusu"
25
25
  AUTHOR = "Jacob Hammack"
26
26
  EMAIL = "jacob.hammack@hammackj.com"
@@ -64,7 +64,7 @@ module Uirusu
64
64
  #
65
65
  # @return [JSON] Parsed response
66
66
  def self.scan_file(api_key, path_to_file, **args)
67
- if !File.exists?(path_to_file)
67
+ if !File.exist?(path_to_file)
68
68
  raise Errno::ENOENT
69
69
  end
70
70
 
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: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Hammack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-11 00:00:00.000000000 Z
11
+ date: 2017-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake