lib/yawast.rb in yawast-0.6.0.beta4 vs lib/yawast.rb in yawast-0.6.0.beta5
- old
+ new
@@ -23,11 +23,11 @@
require_all '/scanner'
require_all '/shared'
module Yawast
DESCRIPTION = 'The YAWAST Antecedent Web Application Security Toolkit'
- HTTP_UA = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Yawast/#{VERSION} Chrome/56.0.2924.28 Safari/537.36"
+ HTTP_UA = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) YAWAST/#{VERSION} Chrome/61.0.3163.100 Safari/537.36"
def self.header
puts '__ _____ _ _ ___ _____ _____ '
puts '\ \ / / _ \| | | |/ _ \ / ___|_ _|'
puts ' \ V / /_\ \ | | / /_\ \\\ `--. | | '
@@ -39,10 +39,10 @@
puts ' Copyright (c) 2013-2017 Adam Caudill <adam@adamcaudill.com>'
puts ' Support & Documentation: https://github.com/adamcaudill/yawast'
puts " Ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}; #{OpenSSL::OPENSSL_VERSION} (#{RUBY_PLATFORM})"
begin
- version = JSON.parse(Net::HTTP.get(URI('https://rubygems.org/api/v1/versions/yawast/latest.json')))['version']
+ version = Yawast::Shared::Http.get_json(URI('https://rubygems.org/api/v1/versions/yawast/latest.json'))['version']
if version != VERSION
puts " Latest Version: YAWAST v#{version} is the officially supported version, please update.".blue
end
rescue