mirror of
https://github.com/Medicean/VulApps.git
synced 2025-06-21 02:10:43 +00:00
修正Ubuntu高版本中无法加载ssl模块的问题
This commit is contained in:
parent
9d8a4a0346
commit
2a81c95e27
@ -1,24 +1,26 @@
|
|||||||
FROM ubuntu:latest
|
FROM ubuntu:14.04.4
|
||||||
MAINTAINER Medici.Yan@Gmail.com
|
MAINTAINER Medici.Yan@Gmail.com
|
||||||
|
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
ENV BASE_URL https://raw.githubusercontent.com/Medicean/VulApps/master/o/openssl/heartbleed_CVE-2014-0160/
|
RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y wget apache2
|
&& apt-get install -y apache2
|
||||||
|
|
||||||
RUN wget ${BASE_URL}/openssl_1.0.1c-4ubuntu8_amd64.deb \
|
COPY openssl_1.0.1c-4ubuntu8_amd64.deb /tmp/openssl_1.0.1c-4ubuntu8_amd64.deb
|
||||||
&& dpkg --force-all -i openssl_1.0.1c-4ubuntu8_amd64.deb \
|
COPY libssl1.0.0_1.0.1c-4ubuntu8_amd64.deb /tmp/libssl1.0.0_1.0.1c-4ubuntu8_amd64.deb
|
||||||
&& wget ${BASE_URL}/libssl1.0.0_1.0.1c-4ubuntu8_amd64.deb \
|
|
||||||
|
RUN dpkg --force-all -i openssl_1.0.1c-4ubuntu8_amd64.deb \
|
||||||
&& dpkg --force-all -i libssl1.0.0_1.0.1c-4ubuntu8_amd64.deb \
|
&& dpkg --force-all -i libssl1.0.0_1.0.1c-4ubuntu8_amd64.deb \
|
||||||
&& rm -f libssl1.0.0_1.0.1c-4ubuntu8_amd64.deb \
|
&& rm -f /tmp/libssl1.0.0_1.0.1c-4ubuntu8_amd64.deb \
|
||||||
&& rm -f openssl_1.0.1c-4ubuntu8_amd64.deb
|
&& rm -f /tmp/openssl_1.0.1c-4ubuntu8_amd64.deb
|
||||||
|
|
||||||
RUN mkdir /etc/apache2/ssl \
|
RUN mkdir /etc/apache2/ssl \
|
||||||
&& openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=localhost" \
|
&& openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=localhost" \
|
||||||
&& rm -f /etc/apache2/sites-available/default-ssl.conf \
|
&& rm -f /etc/apache2/sites-available/default-ssl.conf
|
||||||
&& wget -O /etc/apache2/sites-available/default-ssl.conf ${BASE_URL}/default-ssl.conf \
|
|
||||||
&& a2enmod ssl \
|
COPY default-ssl.conf /etc/apache2/sites-available/default-ssl.conf
|
||||||
|
|
||||||
|
RUN a2enmod ssl \
|
||||||
&& a2ensite default-ssl.conf
|
&& a2ensite default-ssl.conf
|
||||||
|
|
||||||
EXPOSE 443
|
EXPOSE 443
|
||||||
|
@ -54,3 +54,10 @@ $ docker run -d -p 443:443 medicean/vulapps:o_openssl_heartbleed
|
|||||||
读取到的信息在当前目录下的 `result.txt` 内。
|
读取到的信息在当前目录下的 `result.txt` 内。
|
||||||
|
|
||||||
> 具体使用参数请使用 `python exp.py -h`
|
> 具体使用参数请使用 `python exp.py -h`
|
||||||
|
|
||||||
|
### 改动日志
|
||||||
|
|
||||||
|
20160731
|
||||||
|
|
||||||
|
* 修正高版本 Ubuntu 中无法启动的问题
|
||||||
|
* 优化速度
|
||||||
|
Loading…
x
Reference in New Issue
Block a user