Commit Graph

524 Commits

Author SHA1 Message Date
Ana María Martínez Gómez
6d00ae26ae hooks: do not repeat #!/usr/bin/env bash
The comment claims that:
> doesn't matter if `#!/usr/bin/env bash` gets repeated later on in a hooks file

However it is a convetion that there is only one comment like that and
the `setup-hooks.sh` script already takes care of adding it if the file
didn't exist.

Alternatively, we could leave the extra comment and remove the related
code in `setup-hooks.sh`. Currently two comments are added even if the
file didn't exist.
2020-07-29 20:16:56 +02:00
Ana María Martínez Gómez
22fd52ccb9 hooks: do not render git stash output
The `-q` options hides most of the output, but not everything.
2020-07-29 20:16:55 +02:00
Ana María Martínez Gómez
70dda980e8 hooks: update style checkers in hooks
Run `isort` and `black` in the hooks. Run them with the `--check` option
to not modify files which could be committed by accident.

Note that the changes in `.gitignore` are not needed as `.log` is
already excluded in the Django's section. We add those file to this
section in case `.log` is removed in the future.
2020-07-29 20:16:52 +02:00
Capa Bot
863df5ad1f Sync capa rules submodule 2020-07-28 12:06:51 +00:00
Capa Bot
a735f29ea9 Sync capa rules submodule 2020-07-27 21:06:34 +00:00
Capa Bot
261713d0d1 Sync capa-testfiles submodule 2020-07-27 21:05:14 +00:00
Capa Bot
f27cee010a Sync capa rules submodule 2020-07-27 18:15:34 +00:00
Willi Ballenthin
ce83ff352c Merge pull request #208 from fireeye/fix-197
support negative offset features (and add IDA tests)
2020-07-27 11:41:04 -06:00
Ana María Martínez Gómez
3e3fb18deb black: Fix typo in import-to-bn.py
Tests are broken in master
2020-07-27 18:41:15 +02:00
Capa Bot
bfdd68c60a Sync capa rules submodule 2020-07-27 16:02:34 +00:00
Willi Ballenthin
14463de5e7 Merge pull request #207 from psifertex/master
adding BN script
2020-07-27 09:19:31 -06:00
Capa Bot
e44dc73ec2 Sync capa rules submodule 2020-07-27 13:16:02 +00:00
Jordan Wiens
f547ca0fae updates for pull 205 2020-07-25 22:45:51 -04:00
Willi Ballenthin
2c48a8a5fa Merge pull request #204 from psifertex/patch-1
submodule update requires --init the first time
2020-07-25 18:39:17 -06:00
Willi Ballenthin
a901f2e7ac license: fill in org name
closes #206
2020-07-25 18:37:36 -06:00
Jordan
508ebb47e0 submodule update requires --init the first time 2020-07-25 17:50:15 -04:00
Jordan Wiens
82b9514230 initial commit of BinaryNinja import script 2020-07-25 17:45:25 -04:00
William Ballenthin
7236283b2f tests: ida: address comments 2020-07-25 11:40:04 -06:00
William Ballenthin
b6c9540469 pep8 2020-07-25 10:29:21 -06:00
William Ballenthin
605ee00f0a scripts: bn: remove extra character 2020-07-25 10:28:11 -06:00
William Ballenthin
2fa2a98ae1 pep8 2020-07-25 10:26:57 -06:00
William Ballenthin
bf4d12e5b6 Merge branch 'master' into fix-197 2020-07-25 10:24:25 -06:00
William Ballenthin
352d6f26fc tests: ida: ensure they all pass
closes #202
2020-07-25 10:10:25 -06:00
William Ballenthin
554f5dfe46 ida: insn: don't ignore offset 0x0 2020-07-25 01:41:31 -06:00
William Ballenthin
1a1caf76fa add test_ida_features 2020-07-25 01:41:23 -06:00
William Ballenthin
308c78844d show-features: fix error when piping features to less 2020-07-25 00:59:32 -06:00
William Ballenthin
c91f9a375e ida: parse offsets as signed numbers
closes #197
2020-07-25 00:58:44 -06:00
Capa Bot
25ae7e9dda Sync capa rules submodule 2020-07-24 21:51:31 +00:00
William Ballenthin
e93e4efd6d submodule: rules update 2020-07-24 15:50:18 -06:00
William Ballenthin
21a918b005 Merge branch 'master' of github.com:fireeye/capa 2020-07-24 15:23:40 -06:00
William Ballenthin
682bb14b99 submodule: testfiles update 2020-07-24 15:23:34 -06:00
Capa Bot
872aa51796 Sync capa-testfiles submodule 2020-07-24 21:22:27 +00:00
mike-hunhoff
297ab66565 Merge pull request #192 from fireeye/bugfix-191
fixes 191
2020-07-24 08:59:14 -06:00
Ana María Martínez Gómez
e566095a85 Merge pull request #195 from fireeye/fix/no-progress-on-quiet
fix: disable progress when run in quiet mode
2020-07-24 11:38:59 +02:00
Michael Hunhoff
174263dc6c rollback black format changes 2020-07-24 11:12:53 +02:00
Michael Hunhoff
4c5a104055 fixes 191 2020-07-24 11:12:52 +02:00
Moritz Raabe
909639c629 fix: disable progress when run in quiet mode 2020-07-24 10:50:50 +02:00
Ana María Martínez Gómez
41a8199770 Merge pull request #187 from Ana06/documentation 2020-07-24 10:32:32 +02:00
Ana María Martínez Gómez
f3e2abf467 doc: Improve issue templates
Add some useful information, correct small mistakes and simplify the
templates. Make also both templates consistent.
2020-07-24 10:24:35 +02:00
Ana María Martínez Gómez
0665873b00 doc: Improve cloning capa source code documentation
Move the cloning all submodule option to the beginning as when using
capa in development this is the most common option. Test files are
needed to run the tests locally. Simplify the rest of the submodules
documentation, as it is easier for people to look the submodule
documentation than for us to maintain a copy. The submodule init step
shouldn't be needed to clone the rules directory.
2020-07-24 10:24:34 +02:00
Ana María Martínez Gómez
aa2eb7771c doc: Document supported Linux distributions
Document for which Linux distributions the standalone Linux binary
works.
2020-07-24 10:24:31 +02:00
William Ballenthin
0f80058686 Merge branch 'master' of github.com:fireeye/capa 2020-07-23 17:31:43 -06:00
Capa Bot
fe40cddda6 Sync capa rules submodule 2020-07-23 23:32:20 +00:00
William Ballenthin
ab363b4205 submodule: rules update 2020-07-23 17:31:40 -06:00
William Ballenthin
e822a8a4d5 linter: warn on nursery rules with no changes needed 2020-07-23 17:31:27 -06:00
William Ballenthin
12594552e8 Merge branch 'master' of github.com:fireeye/capa 2020-07-23 17:20:29 -06:00
Capa Bot
2abf9f9e62 Sync capa-testfiles submodule 2020-07-23 23:21:05 +00:00
William Ballenthin
12cff3599a submodule: testfiles update 2020-07-23 17:20:16 -06:00
Capa Bot
2b1e0d8e78 Sync capa-testfiles submodule 2020-07-23 23:19:55 +00:00
Willi Ballenthin
82b2a8c8fe Merge pull request #185 from fireeye/fix-168
main: don't crash when the .viv cannot be saved
2020-07-23 17:13:57 -06:00