Skip to content

Commit

Permalink
Merge pull request firesunCN#13 from n3uz/master
Browse files Browse the repository at this point in the history
增加Docker部署方式
  • Loading branch information
firesunCN authored May 4, 2018
2 parents 6ff10a6 + 06cfe90 commit 36d8924
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
40 changes: 40 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
FROM ubuntu:latest

RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get -yq install \
curl \
git \
apache2 \
libapache2-mod-php7.0 \
php7.0-mcrypt \
php7.0 && \
rm -rf /var/lib/apt/lists/* && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

RUN /usr/sbin/phpenmod mcrypt
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf && \
sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php/7.0/apache2/php.ini

ENV ALLOW_OVERRIDE **False**

ADD run.sh /run.sh

RUN chmod 755 /*.sh

RUN mkdir -p /app && rm -fr /var/www/html && ln -s /app /var/www/html

RUN git clone https://github.com/firesunCN/BlueLotus_XSSReceiver.git /app/tmp/ && \
mv /app/tmp/* /app/ && \
rm -fr /app/tmp/ && \
mv /app/config-sample.php /app/config.php && \
pass=`php -r '$salt="!KTMdg#^^I6Z!deIVR#SgpAI6qTN7oVl";$key="bluelotus";$key=md5($salt.$key.$salt);$key=md5($salt.$key.$salt);$key=md5($salt.$key.$salt);echo $key;'`;sed -i "s/2a05218c7aa0a6dbd370985d984627b8/$pass/g" /app/config.php && \
rm -fr /app/diff && \
rm -fr /app/guide && \
rm -fr /app/src

EXPOSE 80

WORKDIR /app

CMD ["/run.sh"]
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ define('ENCRYPT_TYPE', "RC4");
* MY_JS_PATH与JS_TEMPLATE_PATH被设置为仅允许访问js文件

![](./guide/login.png)
### Docker部署
#### Build & Run

```
git clone https://github.com/firesunCN/BlueLotus_XSSReceiver.git && cd BlueLotus_XSSReceiver
docker build -t bluelotus .
docker run -d -p 80:80 bluelotus
```

#### Login

* 访问 `http://ip/admin.php` 密码 `bluelotus`

## 目前支持功能
* 自动判断携带数据是否base64编码,可自动解码
Expand Down

0 comments on commit 36d8924

Please sign in to comment.