Skip to content

Commit 6aeec0f

Browse files
authored
Change capa-rules version in installation guide (#2965)
* Change capa-rules version in installation guide Updated the installation instructions to reflect the newest version of capa-rules. * add md files from /doc to bumpversion.toml * adjust rule installation command * bump to 9.4.0
1 parent 7a79f79 commit 6aeec0f

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

.bumpversion.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,18 @@ replace = "v{current_version}...{new_version}"
2525
filename = "CHANGELOG.md"
2626
search = "master (unreleased)"
2727
replace = "v{new_version}"
28+
29+
[[tool.bumpversion.files]]
30+
filename = "doc/installation.md"
31+
search = "v{current_version}.zip"
32+
replace = "v{new_version}.zip"
33+
34+
[[tool.bumpversion.files]]
35+
filename = "doc/installation.md"
36+
search = "capa-rules-{current_version}/"
37+
replace = "capa-rules-{new_version}/"
38+
39+
[[tool.bumpversion.files]]
40+
filename = "doc/rules.md"
41+
search = "capa {current_version}"
42+
replace = "capa {new_version}"

doc/installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ This method is appropriate for integrating capa in an existing project.
3030
This technique doesn't pull the default rule set. You can obtain rule releases from [capa-rules](https://github.com/mandiant/capa-rules/releases) and pass the directory to the entrypoint using `-r`. In the IDA Pro plugin you need to configure the rules directory path once.
3131

3232
```console
33-
$ wget https://github.com/mandiant/capa-rules/archive/refs/tags/v4.0.0.zip
34-
$ unzip v4.0.0.zip
35-
$ capa -r /path/to/capa-rules suspicious.exe
33+
$ wget https://github.com/mandiant/capa-rules/archive/refs/tags/v9.4.0.zip
34+
$ unzip v9.4.0.zip
35+
$ capa -r capa-rules-v9.4.0/ suspicious.exe
3636
```
3737

3838
This technique also doesn't set up the default library identification [signatures](https://github.com/mandiant/capa/tree/master/sigs). You can pass the signature directory using the `-s` argument.

doc/rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ You can check the version of capa you're currently using like this:
3939

4040
```console
4141
$ capa --version
42-
capa 3.0.3
42+
capa 9.4.0
4343
```

0 commit comments

Comments
 (0)