Skip to content

Commit

Permalink
Change method
Browse files Browse the repository at this point in the history
  • Loading branch information
JAKAMI99 committed Oct 25, 2024
1 parent ec83201 commit 673b724
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 53 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/check_update.yml

This file was deleted.

9 changes: 4 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Docker Image CI

on:
workflow_run:
workflows: ["check_update"]
types:
- completed # check

push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

Expand Down
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ RUN mkdir -p /app/data
# Set the working directory to the script output folder
WORKDIR /app/data

# Pull fresh help_crack.py script
ADD https://wpa-sec.stanev.org/hc/help_crack.py /app/help_crack.py
# Entrypoint script to dynamically pull the latest Python script and run it
COPY entry.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh

# Set the entrypoint to the custom script
ENTRYPOINT ["/app/entry.sh"]

# Run the Python script
CMD ["python3", "../help_crack.py", "--pot", "cracked.potfile"]
4 changes: 4 additions & 0 deletions entry.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

curl -o /app/data/help_crack.py https://wpa-sec.stanev.org/hc/help_crack.py # Download newest version
exec python3 /app/help_crack.py --pot /app/data/cracked.potfile

0 comments on commit 673b724

Please sign in to comment.