DisWarden/lib/virus_scanner.rb
2024-02-11 11:16:38 -07:00

17 lines
461 B
Ruby

# frozen_string_literal: true
require 'net/http'
require_relative 'api_clients/virus_total/virus_total_client'
require_relative 'api_clients/opswat/opswat_client'
# Main class for sending files/links to the security vendors, and getting the response.
class VirusScanner
def self.scan_file_with_virustotal(file_path)
VirusTotalClient.scan_file(file_path)
end
def self.scan_file_with_opswat(file_path)
OpswatClient.scan_file(file_path)
end
end