aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2019-09-18 05:59:11 +0000
committerRob Austein <sra@hactrn.net>2019-09-18 05:59:11 +0000
commit32f1a52abd42fd1d373d1702335ca8ed01c659e3 (patch)
tree00209a382b5405968c43549f58ae567a2158a97d
parent4df0a00778da92d2fa62c00b0729339aea74ca29 (diff)
Downgrade to an ancient and vulnerable version of Java.
If you were to suspect that we have gone down the rabbit hole of downgrading to support a very specific horribly broken server, you would be right. If there's a bad idea from the dustbin of web history that this vendor didn't incorporate, I haven't found it yet: * Requires Java applets for completely stupid reasons; * Said Java applets crash unless you use an obsolete version of Java; * You have to enable Flash (with automatic activation!) just to log in; * And you can't even get that far until you downgrade TLS, because the idiots botched their implementation of that too. The hardware's OK, but the software should be nuked from orbit.
-rw-r--r--.gitignore1
-rw-r--r--Dockerfile15
-rw-r--r--Makefile2
-rw-r--r--README.md2
-rwxr-xr-xcreate.sh2
-rwxr-xr-xrun.sh2
6 files changed, 14 insertions, 10 deletions
diff --git a/.gitignore b/.gitignore
index a2f49c7..fd1a224 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
+jre-6u45-linux-x64.bin
jre-8u221-linux-x64.tar.gz
waterfox-*.tar.bz2
diff --git a/Dockerfile b/Dockerfile
index f3fe0b2..e1b6237 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,7 +2,7 @@
FROM debian:buster
-COPY waterfox*.tar.bz2 jre-*.tar.gz /root/
+COPY waterfox*.tar.bz2 jre-*.bin /root/
RUN sed -i '/ buster main/s/ main/ main contrib non-free/' /etc/apt/sources.list
@@ -24,18 +24,21 @@ RUN apt-get --yes update && apt-get --yes install --no-install-recommends \
zile
RUN set -x; \
+ tar -C /usr/local -xf /root/waterfox*.tar.bz2 && \
+ rm -f /root/waterfox*.tar.bz2 && \
+ ln -s /usr/local/waterfox/waterfox /usr/local/bin
+
+RUN set -x; \
mkdir -p /usr/local/java && \
- tar -C /usr/local -xf /root/waterfox*.tar.bz2 && \
- rm -f /root/waterfox*.tar.bz2 && \
- tar -C /usr/local/java -xf /root/jre-*.tar.gz && \
- rm -f /root/jre-*.tar.gz && \
+ cd /usr/local/java && \
+ /root/jre-*.bin && \
echo >>/etc/profile export JRE_HOME=`echo /usr/local/java/jre*` && \
echo >>/etc/profile export 'PATH="$PATH:$JRE_HOME/bin"' && \
update-alternatives --install /usr/bin/java java /usr/local/java/jre*/bin/java 1 && \
update-alternatives --set java /usr/local/java/jre*/bin/java && \
update-alternatives --install /usr/bin/javaws javaws /usr/local/java/jre*/bin/javaws 1 && \
update-alternatives --set javaws /usr/local/java/jre*/bin/javaws && \
- ln -s /usr/local/waterfox/waterfox /usr/local/bin
+ rm -f /root/jre-*.bin
COPY startup.sh handlers.json /root/
COPY icewm.menu /root/.icewm/menu
diff --git a/Makefile b/Makefile
index c9c418c..3020c2c 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ URL := https://storage-waterfox.netdna-ssl.com/releases/linux64/installer/waterf
all:
wget -N ${URL}
- docker build --tag fireduck .
+ docker build --tag fireslug .
clean:
git clean -fx
diff --git a/README.md b/README.md
index a8eacd3..6966f87 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-Fireduck
+Fireslug
========
Waterfox running under Xvnc inside a Docker container, a demented tool
diff --git a/create.sh b/create.sh
index 3a55754..432e43a 100755
--- a/create.sh
+++ b/create.sh
@@ -2,4 +2,4 @@
# Sample of how one might start up a container, season to taste.
-docker create -it --name fireduck --publish 127.0.0.1:5900:5900 fireduck
+docker create -it --name fireslug --publish 127.0.0.1:5900:5900 fireslug
diff --git a/run.sh b/run.sh
index 6f56c2e..3152f58 100755
--- a/run.sh
+++ b/run.sh
@@ -2,4 +2,4 @@
# Another sample of how one might start up a container, season to taste.
-docker run -it --rm --publish 127.0.0.1:5900:5900 fireduck
+docker run -it --rm --publish 127.0.0.1:5900:5900 fireslug