Skip to content

Commit f332a9e

Browse files
authored
Merge branch 'develop' into hsarkey/wow64-dlllist
2 parents 2db50c1 + a68be50 commit f332a9e

File tree

222 files changed

+18950
-2823
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+18950
-2823
lines changed

.github/workflows/black.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Black python linter
1+
name: Black python formatter
22

33
on: [push, pull_request]
44

@@ -11,3 +11,5 @@ jobs:
1111
with:
1212
options: "--check --diff --verbose"
1313
src: "./volatility3"
14+
# FIXME: Remove when Volatility3 minimum Python version is >3.8
15+
version: "24.8.0"
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: build-pyinstaller
2+
on:
3+
push:
4+
branches:
5+
- stable
6+
- develop
7+
- 'release/**'
8+
pull_request:
9+
branches:
10+
- stable
11+
- 'release/**'
12+
13+
jobs:
14+
15+
exe:
16+
runs-on: windows-latest
17+
strategy:
18+
matrix:
19+
python-version: ["3.11"]
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install pyinstaller
31+
32+
- name: Pyinstall executable
33+
run: |
34+
pyinstaller --clean -y vol.spec
35+
pyinstaller --clean -y volshell.spec
36+
37+
- name: Move files
38+
run: |
39+
mv dist/vol.exe vol.exe
40+
mv dist/volshell.exe volshell.exe
41+
42+
- name: Archive
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: volatility3-pyinstaller
46+
path: |
47+
vol.exe
48+
volshell.exe
49+
README.md
50+
LICENSE.txt

.github/workflows/install.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,8 @@ jobs:
2020
- name: Setup python-pip
2121
run: python -m pip install --upgrade pip
2222

23-
- name: Install dependencies
24-
run: |
25-
pip install -r requirements.txt
26-
2723
- name: Install volatility3
2824
run: pip install .
2925

3026
- name: Run volatility3
31-
run: vol --help
27+
run: vol --help

.github/workflows/ruff.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: Ruff
3+
4+
on: [push, pull_request]
5+
6+
jobs:
7+
lint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- uses: astral-sh/ruff-action@v1
13+
with:
14+
args: check
15+
src: "."

.github/workflows/test.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,22 @@ jobs:
1616

1717
- name: Install dependencies
1818
run: |
19-
python -m pip install --upgrade pip
20-
pip install Cmake
21-
pip install build
22-
pip install -r ./test/requirements-testing.txt
19+
python -m pip install --upgrade pip Cmake build
20+
pip install .[test]
2321
2422
- name: Build PyPi packages
2523
run: |
2624
python -m build
2725
2826
- name: Download images
2927
run: |
28+
mkdir test_images
29+
cd test_images
3030
curl -sLO "https://downloads.volatilityfoundation.org/volatility3/images/linux-sample-1.bin.gz"
3131
gunzip linux-sample-1.bin.gz
3232
curl -sLO "https://downloads.volatilityfoundation.org/volatility3/images/win-xp-laptop-2005-06-25.img.gz"
3333
gunzip win-xp-laptop-2005-06-25.img.gz
34+
cd -
3435
3536
- name: Download and Extract symbols
3637
run: |
@@ -41,13 +42,17 @@ jobs:
4142
4243
- name: Testing...
4344
run: |
44-
py.test ./test/test_volatility.py --volatility=vol.py --image win-xp-laptop-2005-06-25.img -k test_windows -v
45-
py.test ./test/test_volatility.py --volatility=vol.py --image linux-sample-1.bin -k test_linux -v
45+
# VolShell
46+
pytest ./test/test_volatility.py --volatility=volshell.py --image-dir=./test_images -k test_windows_volshell -v
47+
pytest ./test/test_volatility.py --volatility=volshell.py --image-dir=./test_images -k test_linux_volshell -v
48+
49+
# Volatility
50+
pytest ./test/test_volatility.py --volatility=vol.py --image-dir=./test_images -k "test_windows and not test_windows_volshell" -v
51+
pytest ./test/test_volatility.py --volatility=vol.py --image-dir=./test_images -k "test_linux and not test_linux_volshell" -v
4652
4753
- name: Clean up post-test
4854
run: |
49-
rm -rf *.bin
50-
rm -rf *.img
55+
rm -rf test_images
5156
cd volatility3/symbols
5257
rm -rf linux
5358
rm -rf linux.zip

.readthedocs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ build:
2020
# Optionally set the version of Python and requirements required to build your docs
2121
python:
2222
install:
23-
- requirements: doc/requirements.txt
23+
- method: pip
24+
path: .
25+
extra_requirements:
26+
- docs

0 commit comments

Comments
 (0)