14 lines
350 B
Ruby
14 lines
350 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'httparty'
|
|
require_relative 'api_clients/virus_total_client'
|
|
|
|
# Main class for sending files/links to the security vendors, and getting the response.
|
|
class VirusScanner
|
|
def self.scan_file(url)
|
|
response = VirusTotalClient.scan_url(url)
|
|
# TODO: Implement proper return
|
|
response['is_safe']
|
|
end
|
|
end
|