Mike Hunhoff
b0d55143a4
ghidra: update CI to use /Ghidra/Extensions ( #1782 )
2023-09-05 13:21:52 -06:00
Mike Hunhoff
0ffd631606
Update .github/workflows/tests.yml
...
Co-authored-by: Moritz <mr-tz@users.noreply.github.com >
2023-08-29 09:00:14 -06:00
Colton Gabertan
6d3f649a0c
remove backend-ghidra from CI
2023-08-28 12:21:30 -07:00
Colton Gabertan
e00608e298
ghidra hotfix: fix ghidrathon download ( #1771 )
...
* hotfix: fix ghidrathon download
2023-08-28 12:19:45 -07:00
Mike Hunhoff
7bd2467074
remove backend-ghidra from workflows
2023-08-28 12:32:52 -06:00
Colton Gabertan
19b8000c00
Ghidra: Fixes & Enhancements ( #1733 )
...
* restore from corrupted .git
* lint repo
* temp: remove lint failing rule
* implement dereferencing, clean up extractors
* implement proper dereferencing routines as applicable
* fix nzxor implementation, remediate ghidra analysis issues
* lint repo
* Assert typing, lint repo
* avoid extracting pointers in bytes extraction
* attempt to recover submodule
* implement GhidraFeatureExtractor & ghidra_main()
* lint repo
* document examples, clean-up & testing
* lint repo
* properly map import dict
* properly map fake addresses
* fix fake addr mapping
* properly map externs
* re-align consistency with other backends
* lint repo
* fix dereferencing routine
* clean up helpers
* fix format string
* disable progress bar to exit gracefully
* enable pbar in headless runtime mode
* implement fixture test script
* implement ghidra unit test script
* refactor repo for breaking Ghidrathon change
* bump ghidrathon CI version, run unit test in CI
* change CI config
* fix wget line for ghidrathon
* fix unzip paths
* fix ghidra import issue
* disable pytest faulthandler module
* fix dereference function
* fix ghidra state variables
* implement dereferencing for string extraction
* use toAddr
* restructure for consistency
* Bump Ghidrathon version for CI, fix pytest ghidra runtime detection
* fix number & offset extractors
* yield both signed & unsgned values for offset extraction
* add LEA insn handling to number & offset extraction
* fix indirect call extraction
* implement thunk function checking for dereferences
* revise ghidra feature count tests, pass unit testing
* fix feature test format
* implement additional support for dereferencing thunked functions
* integrate external locations into find_file_imports
* change api yield string for .elf samples to match other extractors
* fix potential NoneType errors during dereferencing
* user helper in global_
* fix GHIDRAIO class, implement in global_
* comment on getOriginalByte
* simplify get_file_imports
* implement explicit thunk chain handling
* simplify LEA number extraction
* simplify thunk handling
* temp: demonstrate CI failure & output
* fix log path
* run new test against mimikatz
2023-08-23 14:35:18 -06:00
Colton Gabertan
058c1fefd2
ghidra: unit tests ( #1727 )
...
* restore from corrupted .git
* lint repo
* temp: remove lint failing rule
* implement dereferencing, clean up extractors
* implement proper dereferencing routines as applicable
* fix nzxor implementation, remediate ghidra analysis issues
* lint repo
* Assert typing, lint repo
* avoid extracting pointers in bytes extraction
* attempt to recover submodule
* implement GhidraFeatureExtractor & ghidra_main()
* lint repo
* document examples, clean-up & testing
* lint repo
* properly map import dict
* properly map fake addresses
* fix fake addr mapping
* properly map externs
* re-align consistency with other backends
* lint repo
* fix dereferencing routine
* clean up helpers
* fix format string
* disable progress bar to exit gracefully
* enable pbar in headless runtime mode
* implement fixture test script
* implement ghidra unit test script
* refactor repo for breaking Ghidrathon change
* bump ghidrathon CI version, run unit test in CI
* change CI config
* fix wget line for ghidrathon
* fix unzip paths
* fix ghidra import issue
* disable pytest faulthandler module
* fix ghidra state variables
* use toAddr
* restructure for consistency
* Bump Ghidrathon version for CI, fix pytest ghidra runtime detection
2023-08-21 12:16:13 -06:00
Mike Hunhoff
c0e126f812
merge upstream
2023-07-19 14:56:39 +00:00
Willi Ballenthin
70a1e66020
ci: publish: remove dev code
2023-07-18 14:02:35 +00:00
Willi Ballenthin
91b65d1d7f
ci: publish: remove old commented code
2023-07-18 14:01:58 +00:00
Willi Ballenthin
25624a1b46
ci: publish: dev release
2023-07-18 13:38:05 +00:00
Willi Ballenthin
e3c8cb74df
ci: publish: dev release
2023-07-18 13:33:01 +00:00
Willi Ballenthin
33cb81449c
ci: publish: try to fix perm errors
2023-07-18 13:21:47 +00:00
Willi Ballenthin
dbfcbaa98e
ci: publish: fix file name globbing
2023-07-18 12:23:15 +00:00
Willi Ballenthin
15caa9ee6e
ci: publish: remove incorrect name
2023-07-18 13:35:24 +02:00
Willi Ballenthin
18e0408577
contributing: document CLA
2023-07-18 11:18:28 +02:00
Mike Hunhoff
6ce897e39b
merge upstream
2023-07-13 17:57:34 +00:00
Willi Ballenthin
b9090b86ce
tests: make fixtures available via conftest.py
...
closes #1592
2023-07-13 09:37:39 +02:00
Willi Ballenthin
36a840cb2c
ci: set top level permissions to satisfy code scanning
2023-07-13 06:12:42 +02:00
Willi Ballenthin
c29d0a4f56
Update .github/workflows/tests.yml
...
Co-authored-by: Moritz <mr-tz@users.noreply.github.com >
2023-07-13 10:45:43 +02:00
Willi Ballenthin
797021874b
ci: use latest python for best performance
2023-07-13 05:37:22 +02:00
Willi Ballenthin
b285985a79
flake8: configure copyright header for our project
...
closes #1594
2023-07-13 05:16:59 +02:00
Willi Ballenthin
e987fc2034
flake8: initial copyright config
2023-07-13 04:57:36 +02:00
Mike Hunhoff
eeb0f78564
merge upstream
2023-07-12 17:57:35 +00:00
Willi Ballenthin
65e8300145
introduce flake8-simplify
2023-07-12 11:40:44 +02:00
colton-gabertan
785825d77e
Merge branch 'master' into backend-ghidra
2023-07-11 01:00:55 -07:00
Willi Ballenthin
454b6d1aca
Merge branch 'master' into fix/issue-1616
2023-07-10 14:03:39 +02:00
Willi Ballenthin
320539bd26
Merge branch 'master' into fix/issue-1491
2023-07-10 13:48:15 +02:00
Willi Ballenthin
dc1f2e728d
ci: restrict permissions of GITHUB_TOKEN
...
closes #1616
2023-07-10 02:43:48 +02:00
Willi Ballenthin
81b964386f
ci: publish to PyPI using trusted publishing
...
closes #1491
2023-07-10 02:06:06 +02:00
Willi Ballenthin
cb289e3fc5
ci: publish: use trusted publishing
2023-07-10 01:57:42 +02:00
Willi Ballenthin
dd2bbc9a48
migrate to pyproject.toml
...
closes #1301
2023-07-10 01:44:38 +02:00
Willi Ballenthin
4a49543d12
introduce flake8-print linter
2023-07-09 22:44:47 +02:00
Willi Ballenthin
106b12e2a4
move flake8 config to its own config file
2023-07-09 22:35:53 +02:00
colton-gabertan
1f631b3ed1
bump min Python3 version to 3.8
2023-07-06 15:42:04 -07:00
colton-gabertan
1ea91d60ac
Merge branch 'master' into backend-ghidra
2023-07-06 15:40:09 -07:00
Willi Ballenthin
a43d2c115f
tests: fix fixture imports
2023-07-06 19:04:53 +02:00
Willi Ballenthin
e675bef062
ci: invoke linter directly
2023-07-06 18:14:14 +02:00
Willi Ballenthin
47074fd129
fix ruff issues
2023-07-06 17:49:40 +02:00
Willi Ballenthin
f17edb3151
ci: use pre-commit to invoke linters
2023-07-06 17:12:19 +02:00
Willi Ballenthin
691ef1c72f
remove old linter configs
2023-07-06 17:12:00 +02:00
Willi Ballenthin
25a6d78b88
ruff: update config
2023-07-06 16:32:31 +02:00
Colton Gabertan
855463b319
Add Ghidra Backend CI configuration, fix CHANGELOG ( #1529 )
...
* ghidra-backend ci working, fix CHANGELOG
* temp: Add backend-ghidra to CI test workflow & add versioning to matrix
* lint to avoid failure
* linting for CI
* cleanup CI, integrate actions, simplify installations
* fix gradle repo
* fix typo
* fix submodule checkout for rules & test data
* fix relative test data path
* remove unnecessary steps
* add flag to mkdir to resolve pipeline failure
2023-07-05 18:48:45 -06:00
Willi Ballenthin
5d1e26a95e
update minimum supported python version to 3.8
2023-07-05 18:34:41 +02:00
colton-gabertan
b849cfd4a5
ghidra ci setup, test files in development
2023-06-02 22:41:29 -07:00
Willi Ballenthin
236c1c9d17
tests: refine the IDA test runner
...
ref #1364
2023-06-02 10:40:47 +02:00
colton-gabertan
16444fe5ed
first working CI install
2023-06-01 11:24:21 -07:00
colton-gabertan
5af1a42bf1
reverting tests.yml
2023-05-29 20:24:37 -07:00
colton-gabertan
73183e9c19
run tests.yml on workflow dispatch
2023-05-29 20:16:10 -07:00
colton-gabertan
b35cfdaf6a
workflow_dispatch - temp
2023-05-29 20:13:35 -07:00