mirror of
https://github.com/MobSF/Mobile-Security-Framework-MobSF.git
synced 2026-10-12 02:06:59 +00:00
* Dockerfile QA * Add sdk-build-tools to Docker image * Replace biplist with plistlib std lib * Fixed a bug in iOS pbxproj parsing * Added support for APK parsing with aapt2/aapt * Use aapt/aapt2 as a fallback for APK parsing, files listing and string extraction * Added "started at" to Scan task queue model #2463 * Tasks List API to return string status #2464 * Replaced all minidom calls with defusedxml.minidom * Code QA on android manifest data extraction and parsing * Improved android file analysis * Improved android manifest data extraction * Improved android icon file extraction * Improved android app name extraction * Improved android appstore package details extraction * Android string extraction to fallback on aapt2 strings * APK analysis arguments refactor * Handle packed APKs, refactor unzip to handle malformed APK files * Handle reserved filename conflict during ZIP extraction * Explicit Zipslip handling during ZIP extraction * Graceful files extraction on unzip failure * Removed bail out and continue analysis * Moved androguard parsing to the start of static analysis * AndroidManifest.xml fallback from apktool to androguard during extraction and parsing * Updated Tasks UI to show started at
41 lines
1.1 KiB
Bash
Executable File
41 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
JDK_FILE=openjdk-22.0.2_linux-x64_bin.tar.gz
|
|
JDK_FILE_ARM=openjdk-22.0.2_linux-aarch64_bin.tar.gz
|
|
WKH_FILE=wkhtmltox_0.12.6.1-3.bookworm_amd64.deb
|
|
WKH_FILE_ARM=wkhtmltox_0.12.6.1-3.bookworm_arm64.deb
|
|
|
|
# For apktool
|
|
mkdir -p /home/mobsf/.local/share/apktool/framework
|
|
|
|
if [ "$TARGETPLATFORM" == "linux/arm64" ]
|
|
then
|
|
WKH_FILE=$WKH_FILE_ARM
|
|
JDK_FILE=$JDK_FILE_ARM
|
|
fi
|
|
|
|
echo "Target platform identified as $TARGETPLATFORM"
|
|
JDK_URL="https://download.java.net/java/GA/jdk22.0.2/c9ecb94cd31b495da20a27d4581645e8/9/GPL/${JDK_FILE}"
|
|
WKH_URL="https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/${WKH_FILE}"
|
|
|
|
# Download and install wkhtmltopdf
|
|
|
|
echo "Installing $WKH_FILE ..."
|
|
wget --quiet -O /tmp/${WKH_FILE} "${WKH_URL}" && \
|
|
dpkg -i /tmp/${WKH_FILE} && \
|
|
apt-get install -f -y --no-install-recommends && \
|
|
ln -s /usr/local/bin/wkhtmltopdf /usr/bin && \
|
|
rm -f /tmp/${WKH_FILE}
|
|
|
|
# Install OpenJDK
|
|
echo "Installing $JDK_FILE ..."
|
|
wget --quiet "${JDK_URL}" && \
|
|
tar zxf "${JDK_FILE}" && \
|
|
rm -f "${JDK_FILE}"
|
|
|
|
# Install JADX
|
|
python3 tools_download.py /home/mobsf/.MobSF
|
|
rm tools_download.py
|
|
|
|
# Delete script
|
|
rm $0
|