Skip to content

Commit 45084fd

Browse files
author
lefayjey
committed
publish docker
1 parent 984be47 commit 45084fd

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Publish Docker Image
33
on:
44
push:
55
branches: [main]
6+
paths:
7+
- 'linWinPwn.sh'
8+
- 'install.sh'
9+
- 'Dockerfile'
610
tags: ['v*']
711
workflow_dispatch:
812

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ RUN chmod +x /opt/linWinPwn/install.sh /opt/linWinPwn/linWinPwn.sh \
1111
&& /opt/linWinPwn/install.sh \
1212
&& rm -rf /root/.cache /tmp/* /var/tmp/*
1313

14-
RUN mkdir -p /opt/lwp-wordlists
14+
RUN mkdir -p /opt/lwp-output
1515

1616
ENV PATH="/root/.local/bin:${PATH}"
1717
WORKDIR /opt/linWinPwn
18-
ENTRYPOINT ["/bin/bash"]
18+
ENTRYPOINT ["linWinPwn.sh", "-o", "/opt/lwp-output"]

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@ chmod +x install.sh
1717
Alternatively, use the pre-built Docker image from Docker Hub
1818
```bash
1919
docker pull lefayjey/linwinpwn:latest
20-
docker run --rm -it -v /opt/lwp-wordlists:/opt/lwp-wordlists lefayjey/linwinpwn:latest
20+
21+
# Run linWinPwn (output is saved to current directory)
22+
docker run --rm -it --net=host -v $(pwd):/opt/lwp-output lefayjey/linwinpwn:latest -t <DC_IP>
23+
docker run --rm -it --net=host -v $(pwd):/opt/lwp-output lefayjey/linwinpwn:latest -t <DC_IP> -d <domain> -u <user> -p <password> --auto
2124
```
2225

2326
Or build from source
2427
```bash
2528
docker build -t linwinpwn .
26-
docker run --rm -it -v /opt/lwp-wordlists:/opt/lwp-wordlists linwinpwn
29+
docker run --rm -it --net=host -v $(pwd):/opt/lwp-output linwinpwn -t <DC_IP>
2730
```
2831

2932
## Usage

0 commit comments

Comments
 (0)