From 66829e25c4718232d21a69bfb671c522746c1b08 Mon Sep 17 00:00:00 2001 From: MoisesTapia Date: Mon, 27 Jul 2020 23:02:05 -0500 Subject: [PATCH 1/4] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 77559614..378eee15 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ apt update ; apt install git curl php openssh-server -y ; git clone git://github #### > TheLinuxChoice (https://github.com/thelinuxchoice) #### > DarksecDevelopers (https://github.com/DarksecDevelopers) #### > UndeadSec (https://github.com/UndeadSec) +#### > Equinockx (https://github.com/MoisesTapia) ## Tunelling Options : #### > Localhost (127.0.0.1) From 8cc6e6715fd17deb52cf61e98199126f87de0a9d Mon Sep 17 00:00:00 2001 From: Tahmid Rayat <56682134+htr-tech@users.noreply.github.com> Date: Tue, 28 Jul 2020 10:23:07 +0600 Subject: [PATCH 2/4] docker added --- Dockerfile | 15 +++++++++++++++ docker-compose.yml | 22 ++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..a2a76162 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM debian:10 +LABEL MAINTAINER="Equinockx moisestapia741@gmail.com" + +WORKDIR /home/ + +COPY . /home/ + + +RUN apt-get update && \ + apt-get install -y --no-install-recommends openssh-server && \ + apt-get install -y curl && \ + apt-get install --no-install-recommends -y php && \ + apt-get install -y unzip && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..498c2d13 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,22 @@ +version: '3.7' + +networks: + internet: + driver: bridge + +services: + + zphisher: + + container_name: zphisher + + build: . + image: zphisher:v0.1 + command: bash zphisher.sh + stdin_open: true + tty: true + volumes: + - $PWD/websites:/home/websites + networks: + - internet + restart: always \ No newline at end of file From 02d16658f3fbb9d3d729531b1940f82eee226671 Mon Sep 17 00:00:00 2001 From: Tahmid Rayat <56682134+htr-tech@users.noreply.github.com> Date: Tue, 28 Jul 2020 10:24:04 +0600 Subject: [PATCH 3/4] docker added --- Docker/README.md | 76 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Docker/README.md diff --git a/Docker/README.md b/Docker/README.md new file mode 100644 index 00000000..ffe489eb --- /dev/null +++ b/Docker/README.md @@ -0,0 +1,76 @@ +# Run ZPhiSher in Docker Compose + +![docker](https://img.shields.io/badge/Docker-v19.03.12-blue?style=plastic&logo=docker) +![dockercompose](https://img.shields.io/badge/Docker_Compose-v1.25.4-orange?style=plastic&logo=docker) +![Maintainer](https://img.shields.io/badge/Maintainer-Equinockx-success?style=plastic&logo=terraform) + + +## Runnin within container + + +## Requeriments + +- [X] Docker +- [X] docker-compose + +## Usage Mode + +Clone the repo from Github +```bash +git clone https://github.com/htr-tech/zphisher +cd zpshisher +``` + +Run docker-compose + +```bash +docker-compose up --build -d +``` +'_Don not need redirection of ports 'cause the container is exposed to internet_'
+Verify of the container is running with: + +```bash +equinockx~$ docker-compose ps + + Name Command State Ports +------------------------------------------- +zphisher bash zphisher.sh Up + +``` + + +Executing zphisher inside of container + +```bash +docker-compose exec zphisher bash zphisher.sh +``` + +## Persist Data + +When we make or buils the service with `docker-compose up --build -d` this persist the data templates in the same folder `websites`. +If you add the new Template in `websites` this will be reflected in the container and you can use it. + +- [X] `equinockx~/websites$` +- [X] websites + +## First Start the services + +```bash +docker-compose up --build -d +``` +## Down the container +```bash +docker-compose down +``` +## Stop the services + +```bash +docker-compose stop +``` +## Start the services + +With this command docker-compose will initialize the service stopped + +```bash +docker-compose start +``` From ca09f27a6c4240b5a7e08056c90c8245c5e5b135 Mon Sep 17 00:00:00 2001 From: Tahmid Rayat <56682134+htr-tech@users.noreply.github.com> Date: Tue, 28 Jul 2020 13:30:27 +0600 Subject: [PATCH 4/4] Equinockx --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 145dbaa4..378eee15 100644 --- a/README.md +++ b/README.md @@ -20,14 +20,14 @@ ## Installation : * `apt update` -* `apt install git curl php openssh -y` +* `apt install git curl php openssh-server -y` * `git clone git://github.com/htr-tech/zphisher.git` * `cd zphisher` #### > Run : `bash zphisher.sh` ## Single Command : ``` -apt update ; apt install git curl php openssh -y ; git clone git://github.com/htr-tech/zphisher.git ; cd zphisher ; bash zphisher.sh +apt update ; apt install git curl php openssh-server -y ; git clone git://github.com/htr-tech/zphisher.git ; cd zphisher ; bash zphisher.sh ```