Skip to content

Commit

Permalink
Refined
Browse files Browse the repository at this point in the history
  • Loading branch information
JAKAMI99 committed May 9, 2024
1 parent 5ed0fdb commit d214545
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,26 @@
This docker container runs the help_crack.py from [wpa-sec](https://wpa-sec.stanev.org/), a "Distributed WPA PSK auditor". The docker container utilizes the ubuntu 22.04 hashcat binary.

The docker container currently only supports NVIDIA GPUs. Feel free to PR support for AMD
## Install
## Install from Dockerhub (recommended)
```
docker pull jakami/wpa-sec-docker-nvidia:latest
docker run -it --gpus all -v $HOME/.docker-data/wpa-sec-docker:/app/data -e NVIDIA_VISIBLE_DEVICES=all -e NVIDIA_DRIVER_CAPABILITIES=all wpa-sec-docker-nividia:latest
```
## Run
## Docker Compose build and run
```
docker run -it --gpus all -v $HOME/.docker-data/wpa-sec-docker:/app/data -e NVIDIA_VISIBLE_DEVICES=all -e NVIDIA_DRIVER_CAPABILITIES=all wpa-sec-docker-nividia:latest
git clone https://github.com/JAKAMI99/wpa-sec-docker-nvidia.git
cd wpa-sec-docker-nvidia
docker-compose build
docker-compose up
```
Edit `NVIDIA_VISIBLE_DEVICES=all` to an index, if you have multiple GPUs (e.x. `=0` to select the first GPU)

## Build & Run
## Manual build and run
```
git clone https://github.com/JAKAMI99/wpa-sec-docker-nvidia
cd wpa-sec-docker-nvidia
docker build -t wpa-sec-docker-nvidia:latest .
```
docker run -it --gpus all -v $HOME/.docker-data/wpa-sec-docker:/app/data -e NVIDIA_VISIBLE_DEVICES=all -e NVIDIA_DRIVER_CAPABILITIES=all wpa-sec-docker-nividia:latest
```
pwnamap
## Potfile
When using the supplied run command or the Docker Compose file, the container will put a file "cracked.pot" into the data directory which gets mounted at `$HOME/.docker-data/wpa-sec-docker`. The file will store all your loot :3
12 changes: 12 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '3.8'
services:
wpa-sec:
image: wpa-sec-docker-nividia:latest
stdin_open: true # equivalent to -i
tty: true # equivalent to -t
runtime: nvidia # necessary for GPU support with Docker and NVIDIA
volumes:
- ~/.docker-data/wpa-sec-docker:/app/data
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all

0 comments on commit d214545

Please sign in to comment.