-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathvirustotal-search.sls
43 lines (38 loc) · 1.54 KB
/
virustotal-search.sls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Name: virustotal-search
# Website: https://blog.didierstevens.com/programs/virustotal-tools/
# Description: Search VirusTotal for file hashes.
# Category: Gather and Analyze Data
# Author: Didier Stevens: https://twitter.com/DidierStevens
# License: Public Domain
# Notes: virustotal-search.py
{% set version = '0_1_8' %}
{% set hash = '16fa2f9748959a88be38b4a2ff006fc658fb4ff8932f3ec2e2568f48eb9fae85' %}
remnux-scripts-virustotal-search-source:
file.managed:
- name: /usr/local/src/remnux/files/virustotal-search_V{{ version }}.zip
- source: https://didierstevens.com/files/software/virustotal-search_V{{ version }}.zip
- source_hash: sha256={{ hash }}
- makedirs: True
remnux-scripts-virustotal-search-archive:
archive.extracted:
- name: /usr/local/src/remnux/virustotal-search_V{{ version }}
- source: /usr/local/src/remnux/files/virustotal-search_V{{ version }}.zip
- enforce_toplevel: False
- watch:
- file: remnux-scripts-virustotal-search-source
remnux-scripts-virustotal-search-binary:
file.managed:
- name: /usr/local/bin/virustotal-search.py
- source: /usr/local/src/remnux/virustotal-search_V{{ version }}/virustotal-search.py
- mode: 755
- watch:
- archive: remnux-scripts-virustotal-search-archive
remnux-scripts-virustotal-search-shebang:
file.replace:
- name: /usr/local/bin/virustotal-search.py
- pattern: '#!/usr/bin/env python\n'
- repl: '#!/usr/bin/env python3'
- backup: False
- count: 1
- require:
- file: remnux-scripts-virustotal-search-binary