Skip to content

Commit 9cd9f0c

Browse files
Update packerid for 24 (#150)
1 parent 772df57 commit 9cd9f0c

File tree

1 file changed

+38
-16
lines changed

1 file changed

+38
-16
lines changed

sift/scripts/packerid.sls

Lines changed: 38 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,52 @@
1-
# source=https://github.com/sooshie/packerid
2-
# license=Unknown
1+
# Name: packerid
2+
# Website: https://github.com/sooshie/packerid
3+
# Description: Script to identify packed files
4+
# Category:
5+
# Author: Jim Clausing
6+
# License: Unknown
7+
# Notes: packerid
38

4-
{% set commit = "7b2ee6ef57db903bf356fd342c8ca998abdb68cd" -%}
5-
{% set hash = "sha256=be589d4cbe70ecdc3424a6da48d8fc24630d51a6ebf92e5328b36e39423eb038" -%}
9+
{% set commit = "bc54e6d5204ebe83db8d87125d677035d9f456a7" -%}
10+
{% set hash = "sha256=417830ccbf357e8e2b7d9cf47ee4a63a481151fc8cdf03c40b5538aecf96d15d" -%}
611

712
include:
8-
- sift.packages.python2
9-
- sift.python-packages.pefile
10-
- sift.python-packages.capstone
13+
- sift.packages.python3-virtualenv
1114

12-
sift-scripts-packerid:
15+
sift-python3-package-packerid-venv:
16+
virtualenv.managed:
17+
- name: /opt/packerid
18+
- venv_bin: /usr/bin/virtualenv
19+
- pip_pkgs:
20+
- pip>=24.1.3
21+
- setuptools>=70.0.0
22+
- wheel>=0.38.4
23+
- pefile
24+
- capstone
25+
- require:
26+
- sls: sift.packages.python3-virtualenv
27+
28+
sift-python3-package-packerid:
1329
file.managed:
14-
- name: /usr/local/bin/packerid.py
30+
- name: /opt/packerid/bin/packerid.py
1531
- source: https://raw.githubusercontent.com/sooshie/packerid/{{ commit }}/packerid.py
1632
- source_hash: {{ hash }}
1733
- mode: 755
1834
- require:
19-
- sls: sift.packages.python2
20-
- sls: sift.python-packages.pefile
21-
- sls: sift.python-packages.capstone
35+
- virtualenv: sift-python3-package-packerid-venv
2236

23-
sift-scripts-packerid-shebang:
37+
sift-python3-package-packerid-shebang:
2438
file.replace:
25-
- name: /usr/local/bin/packerid.py
39+
- name: /opt/packerid/bin/packerid.py
2640
- pattern: '#!/usr/local/bin/python'
27-
- repl: '#!/usr/bin/env python2'
41+
- repl: '#!/opt/packerid/bin/python3'
2842
- count: 1
2943
- watch:
30-
- file: sift-scripts-packerid
44+
- file: sift-python3-package-packerid
45+
46+
sift-python3-package-packerid-symlink:
47+
file.symlink:
48+
- name: /usr/local/bin/packerid.py
49+
- target: /opt/packerid/bin/packerid.py
50+
- makedirs: False
51+
- require:
52+
- file: sift-python3-package-packerid

0 commit comments

Comments
 (0)