vibhatsu
a8e8935212
Replace binascii and struct with native Python methods ( #2582 )
...
* refactor: replace binascii with bytes for hex conversions
Signed-off-by: vibhatsu <maulikbarot2915@gmail.com >
* refactor: replace struct unpacking with bytes conversion
Signed-off-by: vibhatsu <maulikbarot2915@gmail.com >
* simplify byte extraction for ELF header
Signed-off-by: vibhatsu <maulikbarot2915@gmail.com >
* Revert "refactor: replace struct unpacking with bytes conversion"
This reverts commit 483f8c9a85 .
* update CHANGELOG
Signed-off-by: vibhatsu <maulikbarot2915@gmail.com >
---------
Signed-off-by: vibhatsu <maulikbarot2915@gmail.com >
Co-authored-by: Willi Ballenthin <wballenthin@google.com >
2025-02-04 09:53:36 +01:00
Willi Ballenthin
8d17319128
capabilities: use dataclasses to represent complicated return types
...
foo
2025-01-29 02:25:06 -07:00
Ana Maria Martinez Gomez
3cd97ae9f2
[copyright + license] Fix headers
...
Replace the header from source code files using the following script:
```Python
for dir_path, dir_names, file_names in os.walk("capa"):
for file_name in file_names:
# header are only in `.py` and `.toml` files
if file_name[-3:] not in (".py", "oml"):
continue
file_path = f"{dir_path}/{file_name}"
f = open(file_path, "rb+")
content = f.read()
m = re.search(OLD_HEADER, content)
if not m:
continue
print(f"{file_path}: {m.group('year')}")
content = content.replace(m.group(0), NEW_HEADER % m.group("year"))
f.seek(0)
f.write(content)
```
Some files had the copyright headers inside a `"""` comment and needed
manual changes before applying the script. `hook-vivisect.py` and
`pyinstaller.spec` didn't include the license in the header and also
needed manual changes.
The old header had the confusing sentence `All rights reserved`, which
does not make sense for an open source license. Replace the header by
the default Google header that corrects this issue and keep capa
consistent with other Google projects.
Adapt the linter to work with the new header.
Replace also the copyright text in the `web/public/index.html` file for
consistency.
2025-01-15 08:52:42 -07:00
N0stalgikow
0eb4291b25
Updating copyright across all files based on when it was first introduced. ( #2027 )
...
* updating copyright, back to the date of origin of file
* updating regex to account for linter violation
2024-03-13 14:04:53 +01:00
dependabot[bot]
ba044a980f
build(deps-dev): bump black from 23.12.1 to 24.1.1 ( #1955 )
...
* build(deps-dev): bump black from 23.12.1 to 24.1.1
Bumps [black](https://github.com/psf/black ) from 23.12.1 to 24.1.1.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/compare/23.12.1...24.1.1 )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* black 24.1.1 formatting
* update flake config to match black 24.1.1 format
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Moritz <mr-tz@users.noreply.github.com >
Co-authored-by: mr-tz <moritz.raabe@mandiant.com >
2024-01-31 11:18:54 +01:00
Yacine
4d538b939e
Update scripts/import-to-ida.py
...
Co-authored-by: Willi Ballenthin <wballenthin@google.com >
2023-08-27 14:59:10 +02:00
Willi Ballenthin
bb2b1824a9
Merge branch 'master' into dynamic-feature-extraction
2023-08-15 14:01:30 +02:00
Willi Ballenthin
e6d64ef561
pydantic: remove use of deprecated routines
...
closes #1718
2023-08-15 08:41:56 +00:00
Yacine Elhamer
1029b369f2
Merge remote-tracking branch 'parentrepo/dynamic-feature-extraction' into find-dynamic-capabilities
2023-07-20 20:02:49 +01:00
Yacine Elhamer
e3f60ea0fb
initial commit
2023-07-17 11:50:49 +01:00
Willi Ballenthin
c86ab51210
fix copyright headers everywhere
2023-07-13 05:03: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
Willi Ballenthin
bb053561ef
import-to-ida: decode MD5 to hex
2023-07-05 18:03:57 +02:00
manasghandat
1336796c0c
code style : update remaining files ( #1353 )
...
* code style: update string formatting using fstrings
---------
Co-authored-by: Willi Ballenthin <willi.ballenthin@gmail.com >
Co-authored-by: Moritz <mr-tz@users.noreply.github.com >
2023-03-16 11:16:18 +01:00
AG
50935372ca
Update import-to-ida.py
...
Updated with f string for enhanced readability.
2023-03-10 01:36:17 +05:30
Willi Ballenthin
127886144b
Merge pull request #1209 from mandiant/williballenthin-patch-3
...
import-to-ida: use other md5 function
2022-12-06 13:07:35 +01:00
Willi Ballenthin
cc832d26aa
import-to-ida: fix imports
2022-12-05 15:27:22 +00:00
Willi Ballenthin
9fcb70387d
import-to-ida: use other md5 function
...
ref #1204
2022-12-05 16:17:11 +01:00
Willi Ballenthin
12c9c466c7
import-to-ida: fix append comment
...
ref #1204
2022-12-05 16:02:40 +01:00
Moritz Raabe
8de69c639a
s/fireeye/mandiant
2021-09-29 12:55:16 +02:00
William Ballenthin
3a1d5d068c
scripts: use common argument handler
...
closes #449
2021-03-05 10:58:40 -07:00
Christian Clauss
5f184b278f
Undefined name: import ida_funcs for lines 48, 52, 57
2020-09-07 09:48:42 +02:00
Moritz Raabe
3e20f0fc71
dos2unix
2020-08-27 11:25:43 +02:00
William Ballenthin
baeea5b6ec
*: update license header to reference Apache 2.0
...
closes #173
2020-07-22 15:05:24 -06:00
William Ballenthin
3faf175da7
*: add license header
...
closes #144
2020-07-15 14:14:53 -06:00
William Ballenthin
4fa5bf1d93
pep8
2020-07-07 13:16:25 -06:00
William Ballenthin
a9b447dcbe
add script import-to-ida.py
...
closes #120
2020-07-07 13:16:08 -06:00