From a91f0881a84642d4ca785abeea5c832b5a482b0e Mon Sep 17 00:00:00 2001 From: jgstew Date: Tue, 4 Jun 2024 14:00:51 -0400 Subject: [PATCH] add KVRT download recipe --- ...yVirusRemovalTool-Win.download.recipe.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Kaspersky/KasperskyVirusRemovalTool-Win.download.recipe.yaml diff --git a/Kaspersky/KasperskyVirusRemovalTool-Win.download.recipe.yaml b/Kaspersky/KasperskyVirusRemovalTool-Win.download.recipe.yaml new file mode 100644 index 0000000..633e929 --- /dev/null +++ b/Kaspersky/KasperskyVirusRemovalTool-Win.download.recipe.yaml @@ -0,0 +1,25 @@ +--- +Description: Downloads the latest DataDog Agent for Windows +Identifier: com.github.jgstew.download.KasperskyVirusRemovalTool-Win +Input: + NAME: KasperskyVirusRemovalTool-Win + DisplayName: KasperskyVirusRemovalTool +MinimumVersion: "2.3" +Process: + - Processor: URLDownloaderPython + Arguments: + url: https://devbuilds.s.kaspersky-labs.com/devbuilds/KVRT/latest/full/KVRT.exe + filename: KVRT.exe + download_version: "" + COMPUTE_HASHES: True + + - Processor: EndOfCheckPhase + + # get FileVersion from EXE and save to `version` variable + - Processor: com.github.jgstew.SharedProcessors/FileExeGetInfoPE + + # verify version is set correctly, at least major.minor: + - Processor: com.github.jgstew.SharedProcessors/TextSearcher + Arguments: + input_string: "%version%" + re_pattern: '^\d+\.\d+'