Mike Hunhoff
65179805a7
add a Ghidra entry script users can invoke to run capa against a loaded Ghidra database ( #1767 )
...
* enable use of Ghidra with show-features.py
* fix bug in is_supported_file_type
* fix bug in GhidraFeatureExtractor.get_function
* refactor get_insn_in_range
* add Ghidra entry script for users to more easily run capa against a loaded Ghidra database
* update CHANGELOG
* fixing lint
* fix fixtures import issue
* fix bug in is_supported_arch_type
* add check for supported arch type
* fix extract_embedded_pe performance
2023-08-25 18:35:59 -07:00
Willi Ballenthin
e6d64ef561
pydantic: remove use of deprecated routines
...
closes #1718
2023-08-15 08:41:56 +00:00
Aayush Goel
a383022cff
Update show-unused-features.py
2023-08-09 15:37:38 +05:30
Aayush Goel
57486733e7
Update scripts/show-unused-features.py
...
Co-authored-by: Willi Ballenthin <wballenthin@google.com >
2023-08-09 15:33:03 +05:30
Aayush Goel
d81f3a461e
Update show-unused-features.py
2023-08-09 14:20:53 +05:30
Aayush Goel
c497ad8253
Update show-unused-features.py
2023-08-08 18:36:25 +05:30
Aayush Goel
9c1aa2fc5d
Update show-unused-features.py
2023-08-08 18:35:04 +05:30
Aayush Goel
fb3ae0267e
Update scripts/show-unused-features.py
...
Co-authored-by: Moritz <mr-tz@users.noreply.github.com >
2023-08-08 17:04:23 +05:30
Aayush Goel
232c9ce35c
Add test for script & output rendered
2023-08-07 22:43:25 +05:30
Aayush Goel
b3a9763a32
Merge branch 'master' into Aayush-Goel-04/Issue#331
2023-08-07 21:02:42 +05:30
Aayush Goel
0fdc1dd3f5
Type Hints done , get_all_feature to Rule class
2023-08-07 21:00:29 +05:30
mr-tz
9660f1e5ab
add default backend
2023-08-07 14:00:30 +02:00
Willi Ballenthin
74d9b06835
Merge pull request #1679 from Aayush-Goel-04/Aayush-Goel-04/Issue#1582
...
bump pydantic to 2.1.1
2023-08-07 12:02:53 +02:00
Aayush Goel
17aad56800
Script to get unused features
...
Used show_features.py script
2023-08-06 22:53:50 +05:30
Aayush Goel
851da25560
Update bulk-process.py
2023-08-04 10:43:34 +05:30
Aayush Goel
a4b00b9064
remove exclude_none = True to not drop none fields
2023-08-04 10:26:56 +05:30
Aayush Goel
2bed3468f6
bump pydantic to 2.1.1
2023-08-03 17:21:46 +05:30
Willi Ballenthin
a538a7bbab
linter: skip native API check for more UEFI routines
2023-08-02 12:55:22 +00:00
Willi Ballenthin
ab5c8b1129
linter: skip native API check for NtEnumerateSystemEnvironmentValuesEx
2023-08-02 12:49:17 +00:00
Willi Ballenthin
04fbcbbbd3
linter: skip native API check for NtProtectVirtualMemory
...
closes #1675
2023-08-02 12:36:42 +00:00
Willi Ballenthin
6b81c77d22
profile-time: workaround for flake8-encodings bug
...
https://github.com/python-formate/flake8-encodings/issues/35
2023-07-13 11:45:53 +02:00
Willi Ballenthin
7898ac24d5
show-features: support showing pefile features
2023-07-13 10:31:28 +02:00
Willi Ballenthin
c86ab51210
fix copyright headers everywhere
2023-07-13 05:03:33 +02:00
Willi Ballenthin
65e8300145
introduce flake8-simplify
2023-07-12 11:40:44 +02:00
Aayush Goel
1baa7a5e4b
flake8 checks resolved
2023-07-11 02:30:09 +05:30
Aayush Goel
ef39bc3c3a
Merged Changes from PR #1591
2023-07-11 01:14:38 +05:30
Aayush Goel
8e346cb411
Merge branch 'Aayush-Goel-04/Issue#1534' of https://github.com/Aayush-Goel-04/capa into Aayush-Goel-04/Issue#1534
2023-07-11 00:59:21 +05:30
Willi Ballenthin
ae10a2ea34
introduce flake8-todos linter
2023-07-09 23:35:52 +02:00
Willi Ballenthin
7fe738e28f
introduce flake8-no-implicit-concat linter
2023-07-09 22:18:01 +02:00
Willi Ballenthin
54203f3be9
introduce flake8-logging-format linter
2023-07-09 22:11:46 +02:00
Aayush Goel
673af45c55
Update args.sample type to Path and str vs as_posix comparisons
2023-07-09 16:02:28 +05:30
Aayush Goel
e0ed8c6e04
Resolved the suggestions.
2023-07-08 13:51:41 +05:30
Aayush Goel
a8f1067f8a
Fixed Path issue in cache-ruleset.py
2023-07-07 12:39:18 +05:30
Aayush Goel
ef9b0737a8
Merge branch 'master' into Aayush-Goel-04/Issue#1534
2023-07-07 12:05:57 +05:30
Aayush Goel
14924174c5
convert str(path) usage to path.as_posix() to get str format of Path
...
Update fixtures.py
2023-07-07 12:03:05 +05:30
Aayush Goel
edeb458b33
some more changes
2023-07-07 12:03:05 +05:30
Willi Ballenthin
13a8e252f0
introduce flake8-comprehensions
2023-07-06 20:04:27 +02:00
Willi Ballenthin
ff47270681
add flake8-encoding plugin
2023-07-06 19:42:57 +02:00
Willi Ballenthin
982dc46623
add flake8-bugbear linter
2023-07-06 19:30:51 +02:00
Willi Ballenthin
90e607fe9a
flake8
2023-07-06 18:11:48 +02:00
Willi Ballenthin
9441da4887
isort
2023-07-06 17:50:34 +02:00
Willi Ballenthin
47074fd129
fix ruff issues
2023-07-06 17:49:40 +02:00
Willi Ballenthin
691ef1c72f
remove old linter configs
2023-07-06 17:12:00 +02:00
Willi Ballenthin
f9248262f5
Merge branch 'master' into fix/dont-leave-tqdm
2023-07-06 14:36:43 +02:00
Aayush Goel
62db346b49
Style , mypy checks
2023-07-06 05:28:13 +05:30
Aayush Goel
c0d712acea
Changes os.path to pathlib.Path usage
...
changed args.rules , args.signatures types in handle_common_args.
2023-07-06 05:12:50 +05:30
Willi Ballenthin
23ed0a5d9d
main: don't leave behind traces of the progress bar
2023-07-05 19:06:33 +02:00
Willi Ballenthin
694143ce6b
import-to-ida: use Metadata type not json document
2023-07-05 18:24:37 +02:00
Willi Ballenthin
19a5ef8a64
import-to-ida: use existing result document json parser
2023-07-05 18:21:03 +02:00
Willi Ballenthin
169b3d60a8
import-to-ida: update to use v5 JSON format
...
closes #1584
2023-07-05 18:04:15 +02:00