update hydra

This commit is contained in:
kev 2022-02-15 12:08:08 +08:00
parent 849a0b952e
commit d8aeb1681b
3 changed files with 25 additions and 20 deletions

View File

@ -2,11 +2,11 @@
# Dockerfile for hydra # Dockerfile for hydra
# #
FROM alpine FROM alpine:3
MAINTAINER EasyPi Software Foundation MAINTAINER EasyPi Software Foundation
ENV HYDRA_VERSION=9.1 ARG HYDRA_VERSION=9.3
ENV HYDRA_URL=https://github.com/vanhauser-thc/thc-hydra/archive/v$HYDRA_VERSION.tar.gz ARG HYDRA_URL=https://github.com/vanhauser-thc/thc-hydra/archive/v${HYDRA_VERSION}.tar.gz
RUN set -xe \ RUN set -xe \
&& apk add --no-cache apr-dev \ && apk add --no-cache apr-dev \

View File

@ -23,13 +23,16 @@ A very fast network logon cracker which support many different services.
## docker-compose.yml ## docker-compose.yml
```yaml ```yaml
hydra: version: "3.8"
image: vimagick/hydra services:
command: sleep infinity hydra:
volumes: image: vimagick/hydra
- ./data:/data entrypoint: sleep
working_dir: /data command: infinity
restart: unless-stopped volumes:
- ./data:/data
working_dir: /data
restart: unless-stopped
``` ```
# up and running # 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 >>> 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] 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 [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 1 of 1 target successfully completed, 1 valid password found
>>> cat hacked.txt >>> 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
``` ```

View File

@ -1,8 +1,10 @@
hydra: version: "3.8"
image: vimagick/hydra services:
entrypoint: sleep hydra:
command: infinity image: vimagick/hydra
volumes: entrypoint: sleep
- ./data:/data command: infinity
working_dir: /data volumes:
restart: unless-stopped - ./data:/data
working_dir: /data
restart: unless-stopped