From ed9daeb849ea91cfbc8ac3847dcc8f11835e7e1c Mon Sep 17 00:00:00 2001 From: andryyy Date: Wed, 9 Sep 2020 10:48:43 +0200 Subject: [PATCH] [Oletools] Fix olevba.py manually until merged --- data/Dockerfiles/olefy/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/Dockerfiles/olefy/Dockerfile b/data/Dockerfiles/olefy/Dockerfile index 288f3bde..37c8519e 100644 --- a/data/Dockerfiles/olefy/Dockerfile +++ b/data/Dockerfiles/olefy/Dockerfile @@ -8,7 +8,8 @@ RUN apk add --virtual .build-deps gcc python3-dev musl-dev libffi-dev openssl-de && apk add --update --no-cache python3 openssl tzdata libmagic \ && pip3 install --upgrade pip \ && pip3 install --upgrade oletools asyncio python-magic \ - && apk del .build-deps + && apk del .build-deps \ + && sed -i 's/decompress_stream(bytearray(compressed_code))/bytes2str(decompress_stream(bytearray(compressed_code)))/g' /usr/lib/python3.8/site-packages/oletools/olevba.py ADD https://raw.githubusercontent.com/HeinleinSupport/olefy/master/olefy.py /app/