diff --git a/hydra/Dockerfile b/hydra/Dockerfile index 74af44d..2e6fefd 100644 --- a/hydra/Dockerfile +++ b/hydra/Dockerfile @@ -2,11 +2,11 @@ # Dockerfile for hydra # -FROM alpine +FROM alpine:3 MAINTAINER EasyPi Software Foundation -ENV HYDRA_VERSION=9.1 -ENV HYDRA_URL=https://github.com/vanhauser-thc/thc-hydra/archive/v$HYDRA_VERSION.tar.gz +ARG HYDRA_VERSION=9.3 +ARG HYDRA_URL=https://github.com/vanhauser-thc/thc-hydra/archive/v${HYDRA_VERSION}.tar.gz RUN set -xe \ && apk add --no-cache apr-dev \ diff --git a/hydra/README.md b/hydra/README.md index 640268c..2734eb7 100644 --- a/hydra/README.md +++ b/hydra/README.md @@ -23,13 +23,16 @@ A very fast network logon cracker which support many different services. ## docker-compose.yml ```yaml -hydra: - image: vimagick/hydra - command: sleep infinity - volumes: - - ./data:/data - working_dir: /data - restart: unless-stopped +version: "3.8" +services: + hydra: + image: vimagick/hydra + entrypoint: sleep + command: infinity + volumes: + - ./data:/data + working_dir: /data + restart: unless-stopped ``` # up and running @@ -47,9 +50,9 @@ $ docker-compose exec hydra bash >>> hydra -l admin -P passwd.txt -o hacked.txt http://www.target.com/login.php [DATA] max 1 task per 1 server, overall 64 tasks, 3 login try (l:1/p:1), ~0 tries per task [DATA] attacking service http-get on port 2812 - [2812][http-get] host: ss.easypi.info login: admin password: admin + [2812][http-get] host: www.target.com login: admin password: admin 1 of 1 target successfully completed, 1 valid password found >>> cat hacked.txt - [2812][http-get] host: ss.easypi.info login: admin password: admin + [2812][http-get] host: www.target.com login: admin password: admin ``` diff --git a/hydra/docker-compose.yml b/hydra/docker-compose.yml index acecd75..58356de 100644 --- a/hydra/docker-compose.yml +++ b/hydra/docker-compose.yml @@ -1,8 +1,10 @@ -hydra: - image: vimagick/hydra - entrypoint: sleep - command: infinity - volumes: - - ./data:/data - working_dir: /data - restart: unless-stopped +version: "3.8" +services: + hydra: + image: vimagick/hydra + entrypoint: sleep + command: infinity + volumes: + - ./data:/data + working_dir: /data + restart: unless-stopped