mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Merge pull request #744 from MoisesTapia/Docker
Run HiddenEye in Docker
This commit is contained in:
commit
976c7f5aa9
11
Defs/FeatureManager/EmailManager/emailconfig.py
Normal file
11
Defs/FeatureManager/EmailManager/emailconfig.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# HiddenEye Copyright (C) 2020 DarkSec https://dark-sec-official.com
|
||||||
|
# This program comes with ABSOLUTELY NO WARRANTY; for details read LICENSE.
|
||||||
|
# This is free software, and you are welcome to redistribute it
|
||||||
|
# under certain conditions; you can read LICENSE for details.
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
gmail_account = "GMAILACCOUNT"
|
||||||
|
gmail_password = "GMAILPASSWORD"
|
||||||
|
recipient_email = "RECIPIENTEMAIL"
|
2
Docker/.redstyled.yaml
Normal file
2
Docker/.redstyled.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
enabled: false
|
78
Docker/README.md
Normal file
78
Docker/README.md
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
# Run HiddenEye in Docker Compose
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
## Runnin within container
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## Requeriments
|
||||||
|
|
||||||
|
- [X] Docker
|
||||||
|
- [X] docker-compose
|
||||||
|
|
||||||
|
## Usage Mode
|
||||||
|
|
||||||
|
Clone the repo from Github
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/DarkSecDevelopers/HiddenEye
|
||||||
|
cd HiddenEye/Docker
|
||||||
|
```
|
||||||
|
|
||||||
|
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
|
||||||
|
docker-compose ps
|
||||||
|
```
|
||||||
|

|
||||||
|
|
||||||
|
Executing HiddenEye inside of container
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose exec hidden python3 HiddenEye.py
|
||||||
|
```
|
||||||
|

|
||||||
|
|
||||||
|
## Persist Data
|
||||||
|
|
||||||
|
When we make or buils the service with `docker-compose up --build -d` this persist the data templates in the same folder `WebTemplate`.
|
||||||
|
If you add the new Template in `WbeTemplate` this will be reflected in the container and you can use it.
|
||||||
|
|
||||||
|
To add WebTemplate you juste need add them in this folder and done
|
||||||
|
- [X] `equinockx~/Webtemplate$ cp * Docker/Webtemplate`
|
||||||
|
- [X] WebTemplate
|
||||||
|
|
||||||
|
## 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
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
BIN
Docker/images/URL.png
Normal file
BIN
Docker/images/URL.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
BIN
Docker/images/executing.png
Normal file
BIN
Docker/images/executing.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
BIN
Docker/images/ps.png
Normal file
BIN
Docker/images/ps.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
Docker/images/start.png
Normal file
BIN
Docker/images/start.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
FROM debian:10
|
||||||
|
LABEL MAINTAINER="Equinockx moisestapia741@gmail.com"
|
||||||
|
|
||||||
|
WORKDIR /home/
|
||||||
|
|
||||||
|
COPY . /home/
|
||||||
|
|
||||||
|
RUN apt-get update -y --no-install-recommends && \
|
||||||
|
apt-get install -y --no-install-recommends python3.7 && \
|
||||||
|
apt-get install -y python3-pip && \
|
||||||
|
apt-get install --no-install-recommends -y php && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN pip3 install -r requirements.txt
|
21
docker-compose.yml
Normal file
21
docker-compose.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
version: '3.7'
|
||||||
|
|
||||||
|
networks:
|
||||||
|
internet:
|
||||||
|
driver: bridge
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
hidden:
|
||||||
|
container_name: hidden
|
||||||
|
build: .
|
||||||
|
image: hidden:v0.1
|
||||||
|
command: python3 HiddenEye.py
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
|
volumes:
|
||||||
|
- "$PWD/WebPages:/home/WebPages"
|
||||||
|
networks:
|
||||||
|
- internet
|
||||||
|
restart: always
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user