From 9ca58f2435ae54cbc91babaa8a7027852c0d843c Mon Sep 17 00:00:00 2001 From: Francesco Pagano Date: Tue, 12 Nov 2024 18:03:00 +0100 Subject: [PATCH] support for ubuntu 24.04 LTS --- README.md | 28 +++++++++++++++++++++++++--- src/requirements.txt | 2 +- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 50e34cf..2fa2dbf 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,24 @@ More details about **SEBASTiAn** can be found in the paper [SEBASTiAn: a Static ## ❱ Installation -The only requirement of this project is a working `Python 3` installation (along with +SEBEASTiAn requires the `cmake` package to build the `lief` package. Depending on the operating system, you can install `cmake` as follows: + +### Ubuntu +```Shell +sudo apt install cmake +``` + +### Mac OS +```Shell +brew install cmake +``` + +### Windows +Download and install the latest `cmake` version at https://cmake.org/download/ + +### Python Requirements + +SEBEASTiAn requires a working `Python 3` installation (along with its package manager `pip`). Depending on your operating system, you might need a different version of Python, as specified in the table below: @@ -37,7 +54,10 @@ different version of Python, as specified in the table below: | **3.6** or lower | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | | **3.7** | :heavy_check_mark: | :warning: | :heavy_check_mark: | | **3.8** | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | -| **3.9** or greater | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | +| **3.9** | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | +| **3.10** | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | +| **3.11** | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | +| **3.12** or greater | :warning: | :warning: | :warning: | :warning: might work by installing `lief` package manually, since there is no stable prebuilt wheels are currently available. @@ -112,7 +132,7 @@ Let's start by looking at the help message: ```Shell $ SEBASTiAn --help -SEBASTiAn [-h] [-l {en,it}] [-i] [--fail-fast] [-t TIMEOUT] [--keep-files] +SEBASTiAn [-h] [-l {en,it}] [-i] [-gr] [--fail-fast] [-t TIMEOUT] [--keep-files] ``` There is only one mandatory parameter: ``, the path (relative or absolute) to @@ -122,6 +142,8 @@ the apk file to analyze. * `-i, --ignore-libs`, Ignore known third-party libraries during the vulnerability analysis (only for Android). +* `-gr, --generate-report`: Generates a report of all identified vulnerabilities, saved as a JSON file. + * `--fail-fast`, Make the entire analysis fail on the first failed vulnerability check. * `-t TIMEOUT, --timeout TIMEOUT` Make the analysis fail if it takes longer than the timeout (in seconds). By default, a timeout of 1200 seconds (20 minutes) is used. diff --git a/src/requirements.txt b/src/requirements.txt index 52e2dc7..fe12f47 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -1,6 +1,6 @@ androguard[magic]@https://github.com/androguard/androguard/archive/8d091cbb309c0c50bf239f805cc1e0931b8dcddc.zip biplist==1.0.3 -lief==0.12.3 +lief==0.14.1 marshmallow==3.18.0 marshmallow-dataclass==8.5.9 Pebble==4.5.3