Sha256: 1902f1f6caa320608a977c705d1378b1aa41aa47a147e0d9f425925ca05215dd
Contents?: true
Size: 1.44 KB
Versions: 1
Compression:
Stored size: 1.44 KB
Contents
module Falconz module APIs module Submission # submit a local file for analysis # https://www.hybrid-analysis.com/docs/api/v2#/Submission/post_submit_file def submit_file(**options) options[:file] = File.open(options[:file], "r") response = post_request("/submit/file", options) options[:file].close return response end # submit a file by url for analysis # https://www.hybrid-analysis.com/docs/api/v2#/Submission/post_submit_url_to_file def submit_file_by_url(**options) post_request("/submit/url-to-file", options) end # submit a url for analysis # https://www.hybrid-analysis.com/docs/api/v2#/Submission/post_submit_url_for_analysis def submit_url(**options) post_request("/submit/url-for-analysis", options) end # determine a SHA256 that an online file or URL submission will # have when being processed by the system. Note: this is useful when looking up URL analysis # https://www.hybrid-analysis.com/docs/api/v2#/Submission/post_submit_hash_for_url def hash_for_url(url) post_request("/submit/hash-for-url", url: url) end # submit dropped file for analysis # https://www.hybrid-analysis.com/docs/api/v2#/Submission/post_submit_dropped_file def submit_dropped_file(**options) post_request("/submit/dropped-file", options) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
falconz-1.0.1 | lib/falconz/apis/submission.rb |