Browse Source

[Oletools] Fix olevba.py manually until merged

andryyy 5 years ago
parent
commit
ed9daeb849
1 changed files with 2 additions and 1 deletions
  1. 2 1
      data/Dockerfiles/olefy/Dockerfile

+ 2 - 1
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 \
   && apk add --update --no-cache python3 openssl tzdata libmagic \
   && pip3 install --upgrade pip \
   && pip3 install --upgrade pip \
   && pip3 install --upgrade oletools asyncio python-magic \
   && 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/
 ADD https://raw.githubusercontent.com/HeinleinSupport/olefy/master/olefy.py /app/