Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions Docker/README.md
Original file line number Diff line number Diff line change
@@ -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_' <br>
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
```
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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/*
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
<br>
<p align="center">
Expand All @@ -47,6 +47,7 @@ apt update ; apt install git curl php openssh -y ; git clone git://github.com/ht
#### > 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)
Expand Down
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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