-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into bugfix/opened-sqlite
- Loading branch information
Showing
169 changed files
with
10,216 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Ignore everything, the dockerfile always pulls from https://github.com/mvt-project/mvt.git@main | ||
* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Mypy | ||
on: workflow_dispatch | ||
|
||
jobs: | ||
mypy_py3: | ||
name: Mypy check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
cache: 'pip' | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- name: Install Dependencies | ||
run: | | ||
pip install mypy | ||
- name: mypy | ||
run: | | ||
make mypy |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Tests | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
name: Run Python Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10'] # , '3.11'] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Python dependencies | ||
run: | | ||
make install | ||
make test-requirements | ||
- name: Test with pytest | ||
run: | | ||
set -o pipefail | ||
make test-ci | tee pytest-coverage.txt | ||
- name: Pytest coverage comment | ||
continue-on-error: true # Workflows running on a fork can't post comments | ||
uses: MishaKav/pytest-coverage-comment@main | ||
if: github.event_name == 'pull_request' | ||
with: | ||
pytest-coverage-path: ./pytest-coverage.txt | ||
junitxml-path: ./pytest.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Create main image | ||
FROM python:3.10.14-alpine3.20 as main | ||
|
||
LABEL org.opencontainers.image.url="https://mvt.re" | ||
LABEL org.opencontainers.image.documentation="https://docs.mvt.re" | ||
LABEL org.opencontainers.image.source="https://github.com/mvt-project/mvt" | ||
LABEL org.opencontainers.image.title="Mobile Verification Toolkit (Android)" | ||
LABEL org.opencontainers.image.description="MVT is a forensic tool to look for signs of infection in smartphone devices." | ||
LABEL org.opencontainers.image.base.name=docker.io/library/python:3.10.14-alpine3.20 | ||
|
||
# Install runtime dependencies | ||
RUN apk add --no-cache \ | ||
android-tools \ | ||
git \ | ||
libusb \ | ||
openjdk11-jre-headless \ | ||
sqlite | ||
|
||
# Install mvt | ||
RUN apk add --no-cache git \ | ||
&& PIP_NO_CACHE_DIR=1 pip3 install git+https://github.com/mvt-project/mvt.git@main \ | ||
&& apk del git | ||
|
||
# Installing ABE | ||
ADD https://github.com/nelenkov/android-backup-extractor/releases/download/master-20221109063121-8fdfc5e/abe.jar /opt/abe/abe.jar | ||
# Create alias for abe | ||
RUN echo 'alias abe="java -jar /opt/abe/abe.jar"' >> ~/.bashrc | ||
|
||
# Generate adb key folder | ||
RUN mkdir /root/.android && adb keygen /root/.android/adbkey | ||
|
||
ENTRYPOINT [ "/usr/local/bin/mvt-android" ] |
Oops, something went wrong.