first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
13
base/coldfusion/11u3/Dockerfile
Normal file
13
base/coldfusion/11u3/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM buildpack-deps:stretch-curl
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
COPY ./build/install/ /tmp/
|
||||
RUN set -ex \
|
||||
&& apt-get update && apt-get install --no-install-recommends -y procps \
|
||||
&& bash /tmp/install-cf11.sh \
|
||||
&& rm -r /var/lib/apt/lists/* /tmp/*
|
||||
|
||||
EXPOSE 8500
|
||||
WORKDIR /opt/coldfusion11
|
||||
|
||||
CMD ["bash", "-c", "/opt/coldfusion11/cfusion/bin/coldfusion start && tail -f /opt/coldfusion11/cfusion/logs/coldfusion-out.log"]
|
17
base/coldfusion/11u3/build/install/install-cf11.sh
Normal file
17
base/coldfusion/11u3/build/install/install-cf11.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Script based on https://forums.adobe.com/message/4727551
|
||||
|
||||
cd /tmp
|
||||
if [ ! -f "ColdFusion_11_WWEJ_linux64.bin" ]; then
|
||||
wget https://file.vulhub.org/download/coldfusion/ColdFusion_11_WWEJ_linux64.bin
|
||||
chmod 755 ColdFusion_11_WWEJ_linux64.bin
|
||||
fi
|
||||
|
||||
useradd -c "user for colfusion" -M -G www-data coldfusion
|
||||
|
||||
/tmp/ColdFusion_11_WWEJ_linux64.bin -f installer.profile
|
||||
|
||||
if [ -f "ColdFusion_11_WWEJ_linux64.bin" ]; then
|
||||
rm ColdFusion_11_WWEJ_linux64.bin
|
||||
fi
|
41
base/coldfusion/11u3/build/install/installer.profile
Normal file
41
base/coldfusion/11u3/build/install/installer.profile
Normal file
@@ -0,0 +1,41 @@
|
||||
INSTALLER_UI=SILENT
|
||||
SILENT_LICENSE_MODE=trial
|
||||
|
||||
SILENT_INSTALLER_TYPE=standalone
|
||||
|
||||
SILENT_INSTALL_ODBC=false
|
||||
SILENT_INSTALL_SAMPLES=false
|
||||
SILENT_INSTALL_JNBRIDGE=false
|
||||
SILENT_INSTALL_ADMIN=true
|
||||
SILENT_INSTALL_SOLR=false
|
||||
SILENT_INSTALL_PDFG=false
|
||||
SILENT_INSTALL_FOLDER=/opt/coldfusion11
|
||||
|
||||
#Enable one of Prod(secure/prod)/dev profile. Thse 3 are mutually exclusive and only one of them can be ture and others are false.
|
||||
SILENT_ENABLE_PROD_SECURE_PROFILE=false
|
||||
SILENT_ENABLE_PROD_DEFAULT_PROFILE=true
|
||||
SILENT_ENABLE_DEV_PROFILE=false
|
||||
|
||||
SILENT_ADMIN_IP=
|
||||
SILENT_ADMIN_USERNAME=admin
|
||||
SILENT_ADMIN_PASSWORD=vulhub
|
||||
SILENT_ENABLE_RDS=false
|
||||
|
||||
# Runtime user, typically nobody.
|
||||
SILENT_RUNTIME_USER=coldfusion
|
||||
|
||||
SILENT_JETTY_USERNAME=admin
|
||||
SILENT_JETTY_PASSWORD=vulhub
|
||||
|
||||
SILENT_CONTEXT_ROOT=
|
||||
SILENT_AUTO_ENABLE_UPDATES=true
|
||||
|
||||
#Enable/Disable the servlets depending on if they are not used by your application or not.
|
||||
#Applicable only if production OR Production+Secure profile is enabled. For Dev profile all these are enabled by default.
|
||||
|
||||
ENABLE_RDS=false
|
||||
ENABLE_WSRP=false
|
||||
ENABLE_JSDEBUG=false
|
||||
ENABLE_CFR=false
|
||||
ENABLE_CFSWF=true
|
||||
ENABLE_CFFORMS=true
|
71
base/coldfusion/11u3/build/install/neo-security-config.sh
Normal file
71
base/coldfusion/11u3/build/install/neo-security-config.sh
Normal file
@@ -0,0 +1,71 @@
|
||||
#!/bin/bash
|
||||
if [ $# -lt 2 ]; then
|
||||
echo "This script can be used to toggle admin security on and off in a ColdFusion 10 server instance."
|
||||
echo ""
|
||||
echo "Usage: $0 <cf_home> <admin_security>"
|
||||
echo "where <cf_home> points to the root of a CF server instance, eg. /opt/coldfusion10/cfusion"
|
||||
echo " <admin_security> specifies the desired admin security state. Specify 'false' to turn it off, and 'true' for on. "
|
||||
echo ""
|
||||
exit
|
||||
fi
|
||||
|
||||
CF_HOME=$1
|
||||
ADMIN_SECURITY=$2
|
||||
XSL_FILE=/tmp/neo-security-config-$$.xsl
|
||||
|
||||
if [ ! -d "$CF_HOME" ]; then
|
||||
echo "$CF_HOME doesn't seem to exist. Terminating."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$ADMIN_SECURITY" != "false" ] && [ "$ADMIN_SECURITY" != "true" ]; then
|
||||
echo "Invalid value for <admin_security>: $ADMIN_SECURITY. Please specify either 'true' or 'false'. "
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -e $CF_HOME/lib/neo-security.xml.original ]; then
|
||||
echo "Backing up original neo-security.xml to $CF_HOME/lib/neo-security.xml.original .."
|
||||
cp $CF_HOME/lib/neo-security.xml $CF_HOME/lib/neo-security.xml.original
|
||||
if [ $? != 0 ]; then
|
||||
echo "cp failed with exit code $?. Terminating."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "$CF_HOME/lib/neo-security.xml.original already exists."
|
||||
fi
|
||||
|
||||
echo "Writing XSL to $XSL_FILE .."
|
||||
cat > $XSL_FILE <<'EOXSL'
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output method="xml" omit-xml-declaration="yes" indent="yes" />
|
||||
<xsl:param name="adminSecurityEnabled" />
|
||||
<xsl:template match="/wddxPacket/data/struct[@type='coldfusion.server.ConfigMap']/var[@name='admin.security.enabled']/boolean/@value">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$adminSecurityEnabled" />
|
||||
</xsl:attribute>
|
||||
</xsl:template>
|
||||
<xsl:template match="@*|node()">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="@*|node()"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
EOXSL
|
||||
if [ $? != 0 ]; then
|
||||
echo "Failed to write XSL template to $XSL_FILE. Terminating."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Modifying neo-security.xml .."
|
||||
xsltproc --stringparam adminSecurityEnabled $ADMIN_SECURITY $XSL_FILE $CF_HOME/lib/neo-security.xml.original > $CF_HOME/lib/neo-security.xml
|
||||
if [ $? != 0 ]; then
|
||||
echo "xsltproc failed with exit code $?. Terminating."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Removing $XSL_FILE .."
|
||||
rm $XSL_FILE
|
||||
if [ $? != 0 ]; then
|
||||
echo "rm failed with exit code $?. You may need to clean up manually."
|
||||
exit 1
|
||||
fi
|
6
base/coldfusion/2018.0.15/Dockerfile
Normal file
6
base/coldfusion/2018.0.15/Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
||||
FROM adobecoldfusion/coldfusion2018:2018.0.15
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
RUN set -ex \
|
||||
&& sed -i 's/5005/*:5005/g' /opt/coldfusion/cfusion/bin/jvm.config
|
14
base/coldfusion/8.0.1/Dockerfile
Normal file
14
base/coldfusion/8.0.1/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM ubuntu:14.04
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
COPY install/ /opt/
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update && apt-get install wget libstdc++5 -y \
|
||||
&& bash /opt/installer.sh \
|
||||
&& rm -r /var/lib/apt/lists/*
|
||||
|
||||
EXPOSE 8500
|
||||
WORKDIR /opt/coldfusion8
|
||||
|
||||
CMD ["bash", "-c", "/opt/coldfusion8/bin/coldfusion start && tail -f /opt/coldfusion8/logs/cfserver.log"]
|
11
base/coldfusion/8.0.1/install/installer.properties
Normal file
11
base/coldfusion/8.0.1/install/installer.properties
Normal file
@@ -0,0 +1,11 @@
|
||||
INSTALLER_UI=silent
|
||||
SAVE_DEBUG_OUTPUT=true
|
||||
SILENT_LICENSE_MODE=developer
|
||||
SILENT_INSTALL_FOLDER=/opt/coldfusion8
|
||||
SILENT_WEB_SERVER_SELECTION=internal
|
||||
SILENT_RUNTIME_USER=root
|
||||
SILENT_ADMIN_PASSWORD=admin
|
||||
SILENT_CONFIGURE_SYSTEM_INIT=false
|
||||
SILENT_INSTALLER_TYPE=standalone
|
||||
SILENT_UPDATER=false
|
||||
SILENT_ENABLE_RDS=false
|
15
base/coldfusion/8.0.1/install/installer.sh
Normal file
15
base/coldfusion/8.0.1/install/installer.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
cd /opt/
|
||||
if [ ! -f "coldfusion-801-lin64.bin" ]; then
|
||||
wget -O coldfusion-801-lin64.bin https://file.vulhub.org/download/coldfusion/coldfusion-801-lin64.bin
|
||||
chmod 755 coldfusion-801-lin64.bin
|
||||
fi
|
||||
|
||||
./coldfusion-801-lin64.bin -f installer.properties
|
||||
|
||||
if [ -f "coldfusion-801-lin64.bin" ]; then
|
||||
rm coldfusion-801-lin64.bin
|
||||
fi
|
Reference in New Issue
Block a user