mirror of
https://github.com/mvt-project/mvt.git
synced 2024-07-02 17:08:58 +00:00
Compare commits
3 Commits
af28cbdbe2
...
7ff69b46b7
Author | SHA1 | Date | |
---|---|---|---|
|
7ff69b46b7 | ||
|
4681b57adc | ||
|
4b89887f4b |
|
@ -13,7 +13,6 @@ ENV DEBIAN_FRONTEND=noninteractive
|
||||||
# ----------------------------
|
# ----------------------------
|
||||||
RUN apt update \
|
RUN apt update \
|
||||||
&& apt install -y python3 python3-pip libusb-1.0-0-dev wget unzip default-jre-headless adb \
|
&& apt install -y python3 python3-pip libusb-1.0-0-dev wget unzip default-jre-headless adb \
|
||||||
|
|
||||||
# Install build tools for libimobiledevice
|
# Install build tools for libimobiledevice
|
||||||
# ----------------------------------------
|
# ----------------------------------------
|
||||||
build-essential \
|
build-essential \
|
||||||
|
@ -27,7 +26,6 @@ RUN apt update \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
sqlite3 \
|
sqlite3 \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
# --------
|
# --------
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
|
@ -41,17 +39,11 @@ RUN git clone https://github.com/libimobiledevice/libplist \
|
||||||
&& git clone https://github.com/libimobiledevice/libusbmuxd \
|
&& git clone https://github.com/libimobiledevice/libusbmuxd \
|
||||||
&& git clone https://github.com/libimobiledevice/libimobiledevice \
|
&& git clone https://github.com/libimobiledevice/libimobiledevice \
|
||||||
&& git clone https://github.com/libimobiledevice/usbmuxd \
|
&& git clone https://github.com/libimobiledevice/usbmuxd \
|
||||||
|
|
||||||
&& cd libplist && ./autogen.sh && make && make install && ldconfig \
|
&& cd libplist && ./autogen.sh && make && make install && ldconfig \
|
||||||
|
|
||||||
&& cd ../libimobiledevice-glue && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --prefix=/usr && make && make install && ldconfig \
|
&& cd ../libimobiledevice-glue && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --prefix=/usr && make && make install && ldconfig \
|
||||||
|
|
||||||
&& cd ../libusbmuxd && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh && make && make install && ldconfig \
|
&& cd ../libusbmuxd && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh && make && make install && ldconfig \
|
||||||
|
|
||||||
&& cd ../libimobiledevice && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --enable-debug && make && make install && ldconfig \
|
&& cd ../libimobiledevice && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --enable-debug && make && make install && ldconfig \
|
||||||
|
|
||||||
&& cd ../usbmuxd && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var --runstatedir=/run && make && make install \
|
&& cd ../usbmuxd && PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var --runstatedir=/run && make && make install \
|
||||||
|
|
||||||
# Clean up.
|
# Clean up.
|
||||||
&& cd .. && rm -rf libplist libimobiledevice-glue libusbmuxd libimobiledevice usbmuxd
|
&& cd .. && rm -rf libplist libimobiledevice-glue libusbmuxd libimobiledevice usbmuxd
|
||||||
|
|
||||||
|
|
|
@ -69,9 +69,9 @@ class Calls(IOSExtraction):
|
||||||
"isodate": convert_mactime_to_iso(row[0]),
|
"isodate": convert_mactime_to_iso(row[0]),
|
||||||
"duration": row[1],
|
"duration": row[1],
|
||||||
"location": row[2],
|
"location": row[2],
|
||||||
"number": row[3].decode("utf-8")
|
"number": (
|
||||||
if row[3] and row[3] is bytes
|
row[3].decode("utf-8") if row[3] and row[3] is bytes else row[3]
|
||||||
else row[3],
|
),
|
||||||
"provider": row[4],
|
"provider": row[4],
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
@ -56,7 +56,9 @@ class SMSAttachments(IOSExtraction):
|
||||||
def check_indicators(self) -> None:
|
def check_indicators(self) -> None:
|
||||||
for attachment in self.results:
|
for attachment in self.results:
|
||||||
# Check for known malicious filenames.
|
# Check for known malicious filenames.
|
||||||
if self.indicators.check_file_path(attachment["filename"]):
|
if self.indicators and self.indicators.check_file_path(
|
||||||
|
attachment["filename"]
|
||||||
|
):
|
||||||
self.detected.append(attachment)
|
self.detected.append(attachment)
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user