From 69261f964838d0b21d469e81cfb65c58b91d6e41 Mon Sep 17 00:00:00 2001 From: ziirish Date: Fri, 17 Sep 2021 10:44:48 +0200 Subject: [PATCH] fix several dependencies issues thanks to @monofox (fix #339, #343) --- CONTRIBUTORS | 1 + burpui/__main__.py | 2 +- burpui/static/vendor | 2 +- docker/Dockerfile | 6 ++++-- docker/components/docker-burp/Dockerfile | 6 ++++-- docker/docker-alpine/assets/setup/install | 4 +++- setup.py | 2 +- 7 files changed, 15 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index e79ae390..00654c4b 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -12,5 +12,6 @@ Graham Keeling (main author of Burp) larsen0815 Johannes Lerch slarti5191 +Lukas Schreiner Robert Tichy Benjamin `ziirish` SANS (main author) diff --git a/burpui/__main__.py b/burpui/__main__.py index c3d87961..67637aae 100644 --- a/burpui/__main__.py +++ b/burpui/__main__.py @@ -240,7 +240,7 @@ def celery(): env["BUI_MODE"] = "celery" env["BUI_CONFIG"] = conf - args = ["celery", celery_mode, "-A", "engines.worker.celery"] + args = ["celery", "-A", "engines.worker.celery", celery_mode] args += unknown args += [x for x in options.remaining if x != "--"] diff --git a/burpui/static/vendor b/burpui/static/vendor index 8a343173..9ae580dd 160000 --- a/burpui/static/vendor +++ b/burpui/static/vendor @@ -1 +1 @@ -Subproject commit 8a343173cd3b7fd07a27579ff291fb144f594a2e +Subproject commit 9ae580dd670e16fc5e501e25a118febaf7687f46 diff --git a/docker/Dockerfile b/docker/Dockerfile index 41678c82..428f6739 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,10 +1,10 @@ -FROM python:3.7-alpine3.10 +FROM python:3.7-alpine3.12 RUN apk add --no-cache supervisor bash logrotate librsync libressl tzdata nginx \ && apk add --no-cache --virtual .fetch-deps \ tar \ \ - && wget -O burp.tar.gz https://github.com/grke/burp/archive/2.2.18.tar.gz \ + && wget -O burp.tar.gz https://github.com/grke/burp/archive/2.4.0.tar.gz \ && wget -O uthash.tar.gz https://github.com/troydhanson/uthash/archive/v2.1.0.tar.gz \ && mkdir -p /usr/src/burp /usr/src/uthash \ && tar -xC /usr/src/burp --strip-components=1 -f burp.tar.gz \ @@ -23,6 +23,8 @@ RUN apk add --no-cache supervisor bash logrotate librsync libressl tzdata nginx autoconf \ automake \ libtool \ + bsd-compat-headers \ + linux-headers \ \ # add build deps before removing fetch deps in case there's overlap && apk del .fetch-deps \ diff --git a/docker/components/docker-burp/Dockerfile b/docker/components/docker-burp/Dockerfile index a85d56a2..f9d2d65d 100644 --- a/docker/components/docker-burp/Dockerfile +++ b/docker/components/docker-burp/Dockerfile @@ -1,6 +1,6 @@ -FROM alpine:3.10 +FROM alpine:3.12 -ARG BURP_VERSION=2.2.18 +ARG BURP_VERSION=2.4.0 ARG UTHASH_VERSION=2.1.0 RUN apk add --no-cache supervisor bash logrotate librsync libressl tzdata bash coreutils \ @@ -26,6 +26,8 @@ RUN apk add --no-cache supervisor bash logrotate librsync libressl tzdata bash c autoconf \ automake \ libtool \ + bsd-compat-headers \ + linux-headers \ \ # add build deps before removing fetch deps in case there's overlap && apk del .fetch-deps \ diff --git a/docker/docker-alpine/assets/setup/install b/docker/docker-alpine/assets/setup/install index 43cca142..54369123 100755 --- a/docker/docker-alpine/assets/setup/install +++ b/docker/docker-alpine/assets/setup/install @@ -14,7 +14,9 @@ apk add --no-cache --virtual .build-deps \ gcc \ libc-dev \ postgresql-dev \ - make + make \ + cargo \ + g++ apk add --no-cache mariadb-connector-c libpq diff --git a/setup.py b/setup.py index c3f7d1b2..294d9117 100755 --- a/setup.py +++ b/setup.py @@ -86,7 +86,7 @@ VENDOR_TO_KEEP = [ "burpui/static/vendor/components-font-awesome/fonts/fontawesome-webfont.ttf", "burpui/static/vendor/components-font-awesome/fonts/fontawesome-webfont.woff", "burpui/static/vendor/components-font-awesome/fonts/fontawesome-webfont.woff2", - "burpui/static/vendor/socket.io-client/dist/socket.io.js", + "burpui/static/vendor/socket.io-client/dist/socket.io.min.js", "burpui/static/vendor/js-cookie/src/js.cookie.js", "burpui/static/vendor/ace-builds/src-min-noconflict/ace.js", "burpui/static/vendor/ace-builds/src-min-noconflict/mode-json.js",