-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 950 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 950 Bytes
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
all: build artifact artifact_zip
build:
go build -o reghunter ./bin/
# Convert the RECMD batch files to Registry Hunter yaml files. Note
# really used any more as we do not directly use RECmd batch files any
# more.
recmd_convert: build
./reghunter convert --output Rules/RECmdBatch.yaml RECmd_Batch/*.reb
verify_recmd: build
./reghunter verify recmd --recmddir RECmd_Batch/ --mapping RECmd_Batch/Mapping.yaml Rules/*.yaml
# Build the YAML artifact
artifact: build
./reghunter compile --output output/Windows.Registry.Hunter.yaml --meta output/Windows.Registry.Hunter.Meta.yaml Rules/*.yaml
# Build the ZIP file for importing
artifact_zip:
./reghunter compile --make_zip --output output/Windows.Registry.Hunter.zip --index docs/content/docs/rules/index.json Rules/*.yaml
test:
cd tests && make test
verify: build verify_recmd artifact
./tests/velociraptor artifacts verify -v ./output/*.yaml
test_update:
cd tests && make test_update