Commit Graph

5110 Commits

Author SHA1 Message Date
Ana María Martínez Gómez 255d6ea176 Merge pull request #517 from Ana06/better-tag
ci: add capa release link to capa-rules tag
2021-04-08 10:49:07 +02:00
dependabot[bot] 628e2ef3f4 build(deps): bump ruamel-yaml from 0.17.0 to 0.17.4
Bumps [ruamel-yaml](https://sourceforge.net/p/ruamel-yaml/code/ci/default/tree) from 0.17.0 to 0.17.4.

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-08 08:49:03 +00:00
Ana María Martínez Gómez 64465a7a31 Merge pull request #480 from Ana06/py3-only 2021-04-08 10:48:15 +02:00
Ana Maria Martinez Gomez 9d79baa96a ci: add capa release link to capa-rules tag
GitHub displays the commit's message of the tag if no description is
given, which is ugly. Use annotated tags which include a message. Use
the release link as message, as this is useful information.
2021-04-07 18:46:51 +02:00
Ana Maria Martinez Gomez 3013269a1c changelog: Update changelog
Add `drop Python 2 support` entry.
2021-04-07 18:24:52 +02:00
Ana Maria Martinez Gomez bbff3016fe doc: Update Python 2 related documentation
Update documentation and code comments which mention Python 2.
2021-04-07 18:20:08 +02:00
Ana Maria Martinez Gomez e9d190799e py3: use Python 3.6 to publish capa 2021-04-07 18:20:08 +02:00
Ana Maria Martinez Gomez 0465333aa4 py3: Python 3 knows about cp65001
Python 2 doesn't know about `cp65001`. But Python 3 does. Since Python
3.8 `cp65001` is an alias to `utf_8`. But not before Python 3.8 and it
used to cause some problems:
https://bugs.python.org/issue36778
Keep this code to ensure same behavior for all Python versions.
2021-04-07 18:20:08 +02:00
Ana Maria Martinez Gomez 28406dafa1 py3: codecs.decode doesn't raise TypeError
`codecs.decode` doesn't raise `TypeError` in Python 3. Just obey the
comment!
2021-04-07 18:20:08 +02:00
Ana Maria Martinez Gomez 73a49c6a1f py3: remove rstrip("L") needed in Python 2
In Python 3, long integers are not formatted with a trailing `L`, so
this code is not longer needed.
2021-04-07 18:20:08 +02:00
Ana Maria Martinez Gomez 4028171f59 py3: use python3 in shebang 2021-04-07 18:20:08 +02:00
Ana Maria Martinez Gomez 5d341ba078 py3: remove six
As we are not supporting Python 2 any longer, we can stop using six and
use the equivalent Python 3 method instead.
2021-04-07 18:20:07 +02:00
Ana Maria Martinez Gomez dfb7cf4888 py3: set and document env
Document how to use env now that we are Python3 only. Adapt
`scripts/ci.sh`.
2021-04-07 18:20:07 +02:00
Ana Maria Martinez Gomez d640c57e29 py3: Update setup.py
Require Python 3.6+ in setup.py
2021-04-07 18:20:07 +02:00
Ana Maria Martinez Gomez c0d6468347 py3: Remove Python 2 tests
Tests don't need to support Python 2 any longer. Do not run tests with
Python 2.
2021-04-07 18:20:07 +02:00
Ana Maria Martinez Gomez 058b61b10c py3: prevent that capa is run with Python2
Raise an exception from main if capa is run with Python < 3.6 to avoid
any silly issues reported to GitHub.
2021-04-07 18:20:07 +02:00
Ana Maria Martinez Gomez aa4d6305af py3: remove py2/3 branches
Remove `if-else`s with a condition like `sys.version_info >= (3, 0)`.
2021-04-07 18:20:06 +02:00
Ana María Martínez Gómez 407ecab162 Merge pull request #515 from Ana06/v1-6-1 v1.6.1 2021-04-07 18:03:56 +02:00
Ana Maria Martinez Gomez cbc1f57b21 changelog: add master (unreleased) to CHANGELOG
Add placeholder for master (unreleased changes) in CHANGELOG. Document
this in the release checklist.
2021-04-07 17:50:19 +02:00
Ana Maria Martinez Gomez 374a9e4337 changelog: v1.6.1
This release includes several bug fixes, such as a vivisect fix for a bug, which caused that capa didn't work on Windows with Python 3. It also adds 17 new rules and a bunch of improvements in the rules and IDA rule generator. We appreciate everyone who opened issues, provided feedback, and contributed code and rules.

This is the very last capa release that supports Python 2.
2021-04-07 17:50:16 +02:00
Capa Bot 83e2f80d10 Sync capa-testfiles submodule 2021-04-07 13:53:32 +00:00
Ana Maria Martinez Gomez 576211c4ef version: bump to v1.6.1 2021-04-07 11:11:43 +02:00
Ana María Martínez Gómez 31fc5a31d6 Merge pull request #513 from Ana06/ping-dependencies
setup: pin dependencies
2021-04-07 10:19:04 +02:00
Ana Maria Martinez Gomez eb08943d4f setup: pin dependencies
Pin all dependencies in setup to the currently used version to avoid
that a new release breaks capa without being noticed.

Closes https://github.com/fireeye/capa/issues/498
2021-04-07 09:40:13 +02:00
Ana María Martínez Gómez c36ed71353 Merge pull request #470 from fireeye/ci/test-windows 2021-04-07 09:38:34 +02:00
Ana Maria Martinez Gomez fa52dbcf84 ci: skip smda tests in win32
Due to a bug, two `test_smda_features` tests are failing:
https://github.com/danielplohmann/smda/issues/20

Disable them until the bug is fixed.
2021-04-06 21:53:22 +02:00
Ana Maria Martinez Gomez d412e66cea ci: do not test Python 2.7 with Windows
The Python 2.7 tests fail in Windows with vivisect because the Windows
filesystem encoding is not UTF-8. This shouldn't be a problem when using
capa as the given filename most likely uses the same encoding, but we
force UTF-8 in our tests. As we are planing to remove Python 2 support
is not wortwhile to invest time in making this test working. Instead,
test Python 2.7 only in Ubuntu.
2021-04-06 21:39:01 +02:00
Moritz Raabe efe50d3313 ci: test on Windows and macOS
Run the tests on Windows and macOS to avoid failures OS related.

closes #460
2021-04-06 21:38:07 +02:00
Ana María Martínez Gómez 1062ba995e doc: add milestones link to release checklist
This makes it a bit easier to check if all milestoned issues/PRs are addressed, or reassign to a new milestone.

I am committing directly to master as this is a minor change which doesn't need review.
2021-04-06 10:21:43 +02:00
Ana María Martínez Gómez 7f93bd5b59 Merge pull request #512 from fireeye/williballenthin-patch-2
setup: bump viv to v1.0.1
2021-04-06 10:17:44 +02:00
Willi Ballenthin 275d170680 setup: bump viv to v1.0.1 2021-04-05 21:22:17 -06:00
Moritz 6d7e10b804 Merge pull request #511 from fireeye/ci/fix-typos
fix submodule typos
2021-04-05 13:13:41 +02:00
Moritz Raabe 25944864f7 fix submodule typos 2021-04-05 12:52:08 +02:00
Capa Bot 5e84a16eba Sync capa rules submodule 2021-04-01 16:44:59 +00:00
Capa Bot 244ec163a3 Sync capa-testfiles submodule 2021-04-01 16:44:11 +00:00
Capa Bot dabd2174d4 Sync capa rules submodule 2021-03-29 16:25:18 +00:00
Moritz f8d2b41a86 Merge pull request #495 from fireeye/gh/add-pr-template
add PR template
2021-03-29 17:31:05 +02:00
Capa Bot 902972a1ee Sync capa-testfiles submodule 2021-03-29 12:49:24 +00:00
Capa Bot bddb5fbd2f Sync capa rules submodule 2021-03-26 11:17:46 +00:00
Capa Bot adfd769963 Sync capa-testfiles submodule 2021-03-26 11:00:35 +00:00
Capa Bot c75e70ec74 Sync capa-testfiles submodule 2021-03-26 11:00:15 +00:00
Moritz 6118183105 Merge pull request #504 from fireeye/mr-tz-patch-1
Update setup.py
2021-03-26 11:58:52 +01:00
Moritz da755d8411 Update setup.py 2021-03-26 11:44:04 +01:00
mike-hunhoff 742e03d90f Merge pull request #503 from fireeye/explorer/update-readme
updating capa explorer README
2021-03-25 14:51:21 -06:00
Capa Bot 744228a03e Sync capa rules submodule 2021-03-25 20:48:41 +00:00
Michael Hunhoff 5d1c6f54cd updating capa explorer README 2021-03-25 14:30:28 -06:00
mike-hunhoff 0a3dd4600b Merge pull request #468 from fireeye/features/support-string-values-special-chars
add support for string features with special characters e.g. '\n'
2021-03-25 12:58:00 -06:00
Michael Hunhoff 0289891d07 merging upstream 2021-03-25 12:43:59 -06:00
Michael Hunhoff 87cdf837e6 merging upstream 2021-03-25 12:42:36 -06:00
Capa Bot ea4c7d6403 Sync capa rules submodule 2021-03-25 18:37:22 +00:00