Willi Ballenthin
5fc705856d
Merge branch 'master' into feature-571
2021-05-20 16:40:37 -06:00
William Ballenthin
0a1adb99e0
lint: cleanup handling of nursery rules further
2021-05-19 16:13:45 -06:00
William Ballenthin
3eef034a94
lint: better handling of nursery rule summary
2021-05-19 16:06:07 -06:00
Moritz Raabe
586726fb13
lint statements for single child statements
2021-05-19 18:25:14 +02:00
Arnim Rupp
7b62b589f7
Create capa2yara.py ( #561 )
...
* Create capa2yara.py
* Update capa2yara.py
isort --profile black --length-sort --line-width 120
black -l 120
* Update scripts/capa2yara.py
Co-authored-by: Willi Ballenthin <willi.ballenthin@gmail.com >
Co-authored-by: Arnim Rupp <46819580+2d4d@users.noreply.github.com >
Co-authored-by: Moritz <mr-tz@users.noreply.github.com >
Co-authored-by: Willi Ballenthin <willi.ballenthin@gmail.com >
2021-05-19 18:01:04 +02:00
William Ballenthin
ff88393248
linter: summarize status at end
...
closes #571
2021-05-18 15:19:34 -06:00
William Ballenthin
14abb7d4f6
pep8
2021-04-27 13:41:59 -06:00
William Ballenthin
bd92933030
show-features: accept signatures or use default
2021-04-27 13:27:59 -06:00
William Ballenthin
249332a9dd
lint: load default sigs
2021-04-27 13:22:45 -06:00
William Ballenthin
9ca1a7ebb6
extractors: do cast-to-int correctly
2021-04-27 13:07:27 -06:00
William Ballenthin
c79f461e39
Merge branch 'master' into function-id-flirt
2021-04-26 09:47:42 -06:00
Moritz Raabe
d1cd4ef259
move auto format check
2021-04-09 11:59:30 +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
Michael Hunhoff
e51c79c241
adding lint for incorrect rule string format, refined rendering for strings
2021-03-23 15:55:48 -06:00
Michael Hunhoff
7bf8c6e3a1
merging upstream
2021-03-22 10:33:36 -06:00
Moritz Raabe
8719a23de4
dos2unix
2021-03-19 09:40:44 +01:00
Moritz Raabe
7e0b5236af
better deal with CRLF/LF issues
2021-03-19 09:40:43 +01:00
Moritz Raabe
c7798b3254
ensure LF end of line
2021-03-19 09:40:43 +01:00
William Ballenthin
1ee7b7b856
merge master
2021-03-05 15:23:47 -07:00
William Ballenthin
063e1229bc
pep8
2021-03-05 11:10:12 -07:00
William Ballenthin
eacd70329a
merge from master, sorry
2021-03-05 11:06:40 -07:00
William Ballenthin
3a1d5d068c
scripts: use common argument handler
...
closes #449
2021-03-05 10:58:40 -07:00
William Ballenthin
bdea61f93b
scripts: remove old migration script
2021-03-05 10:57:14 -07:00
William Ballenthin
6006e87c5e
pep8
2021-03-05 09:40:43 -07:00
William Ballenthin
a3e6d1b611
scripts: add helper to show function id matches
2021-03-05 08:38:02 -07:00
William Ballenthin
d3caecc551
pep8
2021-03-04 18:06:06 -07:00
William Ballenthin
c2a4629c62
scripts: add cli arguments to specify signatures
2021-03-04 15:04:33 -07:00
Ana Maria Martinez Gomez
40ed2f39a4
Make backend a required parameter in get_extractor
...
Make the `backend` argument required in the `get_extractor` internal
routine. Specify a backend in the scripts which call this function. Add
a CLI backend option in capa/features/freeze.py as well.
2021-03-03 17:36:50 +01:00
Ana Maria Martinez Gomez
2da2f498a2
Add script to compare vivisect Python 2 vs 3
...
Compare the performance of vivisect Python 2 vs 3 by counting the number
of feature of each type extracted for every binary in `tests/data`.
Render the ones that perform bad (under a threshold - 98) and the total
performance. Render also the running time per binary for both Python 2 and 3.
From this result, it seems that vivisect behaves properly with Python3.
2021-03-03 17:36:50 +01:00
Ana Maria Martinez Gomez
d28ba3c628
Make backend a required parameter in get_extractor
...
Make the `backend` argument required in the `get_extractor` internal
routine. Specify a backend in the scripts which call this function. Add
a CLI backend option in capa/features/freeze.py as well.
2021-02-25 10:04:19 +01:00
Ana Maria Martinez Gomez
adcb683458
Add script to compare vivisect Python 2 vs 3
...
Compare the performance of vivisect Python 2 vs 3 by counting the number
of feature of each type extracted for every binary in `tests/data`.
Render the ones that perform bad (under a threshold - 98) and the total
performance. Render also the running time per binary for both Python 2 and 3.
From this result, it seems that vivisect behaves properly with Python3.
2021-02-25 09:35:40 +01:00
Michael Hunhoff
cc0aaa301f
update to support running in IDA w/ Python 3
2021-02-19 14:28:20 -07:00
Moritz
7783543153
Merge pull request #429 from fireeye/scripts/multiple-backends-show-features
...
mirror show-capabilities-by-function to enable multiple backends
2021-02-18 09:33:36 +01:00
Michael Hunhoff
47b3ef29be
removing viv dep from show-capabilities-by-function.py
2021-02-17 14:49:52 -07:00
Michael Hunhoff
1eb615f97c
mirror show-capabilities-by-function to enable multiple backends
2021-02-17 14:40:33 -07:00
Michael Hunhoff
2d34458d10
linter: adding ntoskrnl, ntdll overlap lint
2021-02-17 13:29:36 -07:00
Moritz Raabe
0eb8d3e47c
fix time debug output
2021-01-28 11:09:25 +01:00
Moritz Raabe
072e30498b
adjust negative hex numbers in to_yaml
2021-01-28 10:54:17 +01:00
Moritz Raabe
a81f98be8e
manual adjust negative numbers
2021-01-28 10:54:17 +01:00
Moritz Raabe
0980e35c29
simplify string comparison
2021-01-28 10:54:17 +01:00
Moritz Raabe
336c2a3aff
add option to only check reformat status
2021-01-28 10:54:17 +01:00
Moritz Raabe
e3055bc740
check rule format consistency
2021-01-28 10:54:17 +01:00
Moritz Raabe
f18a8f5b31
adjust expected lib path and log time
2021-01-28 10:18:03 +01:00
Moritz Raabe
0d439c0f55
disable extractor progress
2021-01-28 09:22:15 +01:00
Moritz
8788e0a9c9
Merge pull request #388 from fireeye/ci/linter-update
...
lint with tags
2021-01-05 16:37:21 +01:00
Moritz Raabe
b1c1cb4b9b
lint with --tag
2021-01-05 16:16:35 +01:00
DoomedRaven
e158e3f13c
remove type hint to make CI happy
2020-12-08 21:46:39 +01:00
DoomedRaven
b1bbded23c
black -l 120 .
2020-12-08 21:39:50 +01:00
DoomedRaven
b77d9d3738
isort --profile black --length-sort --line-width 120 capa_as_library.py
2020-12-08 21:34:42 +01:00
DoomedRaven
d0b2421752
isort capa_as_library.py
2020-12-08 20:53:26 +01:00