File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ name: Publish Docker Image
33on :
44 push :
55 branches : [main]
6+ paths :
7+ - ' linWinPwn.sh'
8+ - ' install.sh'
9+ - ' Dockerfile'
610 tags : ['v*']
711 workflow_dispatch :
812
Original file line number Diff line number Diff 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
1616ENV PATH="/root/.local/bin:${PATH}"
1717WORKDIR /opt/linWinPwn
18- ENTRYPOINT ["/bin/bash " ]
18+ ENTRYPOINT ["linWinPwn.sh" , "-o" , "/opt/lwp-output " ]
Original file line number Diff line number Diff line change @@ -17,13 +17,16 @@ chmod +x install.sh
1717Alternatively, use the pre-built Docker image from Docker Hub
1818``` bash
1919docker 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
2326Or build from source
2427``` bash
2528docker 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
You can’t perform that action at this time.
0 commit comments