Skip to content

Commit 449acdf

Browse files
author
lefayjey
committed
publish docker
1 parent 463dd5e commit 449acdf

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ RUN chmod +x /opt/linWinPwn/install.sh /opt/linWinPwn/linWinPwn.sh \
1212
&& rm -rf /root/.cache /tmp/* /var/tmp/*
1313

1414
RUN mkdir -p /opt/lwp-output
15+
RUN mkdir -p /opt/lwp-wordlists
1516

1617
ENV PATH="/root/.local/bin:${PATH}"
17-
ENTRYPOINT ["/opt/linWinPwn/linWinPwn.sh", "-o", "/opt/lwp-output"]
18+
ENTRYPOINT ["rlwrap", "-Nn", "/opt/linWinPwn/linWinPwn.sh", "-o", "/opt/lwp-output"]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ Alternatively, use the pre-built Docker image from Docker Hub
1919
docker pull lefayjey/linwinpwn:latest
2020

2121
# 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
22+
docker run --rm --init -it --net=host -v $(pwd):/opt/lwp-output lefayjey/linwinpwn:latest -t <DC_IP>
23+
docker run --rm --init -it --net=host -v $(pwd):/opt/lwp-output lefayjey/linwinpwn:latest -t <DC_IP> -d <domain> -u <user> -p <password> --auto
2424
```
2525

2626
Or build from source
2727
```bash
2828
docker build -t linwinpwn .
29-
docker run --rm -it --net=host -v $(pwd):/opt/lwp-output linwinpwn -t <DC_IP>
29+
docker run --rm --init -it --net=host -v $(pwd):/opt/lwp-output linwinpwn -t <DC_IP>
3030
```
3131

3232
## Usage

install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ echo -e "rlwrap -Nn ${install_dir}/linWinPwn.sh \$@" | sudo tee "/usr/local/sbin
3636
sudo chmod 755 /usr/local/sbin/linWinPwn
3737
echo -e "${BLUE}Adding "linWinPwn_proxychains" to PATH ...${NC}"
3838
echo -e "rlwrap -Nn proxychains -q ${install_dir}/linWinPwn.sh --dns-tcp \$@" | sudo tee "/usr/local/sbin/linWinPwn_proxychains"
39+
echo -e "${BLUE}Adding "linWinPwn_docker" to PATH ...${NC}"
40+
echo -e "docker run --rm --init -it --net=host -v $(pwd):/opt/lwp-output lefayjey/linwinpwn:latest \$@" | sudo tee "/usr/local/sbin/linWinPwn_docker"
3941
sudo chmod 755 /usr/local/sbin/linWinPwn_proxychains
42+
sudo chmod 755 /usr/local/sbin/linWinPwn_docker
4043
sudo chmod +x ${install_dir}/linWinPwn.sh
4144

4245
install_tools() {
@@ -90,6 +93,7 @@ install_tools() {
9093
pipx_install_or_upgrade git+https://github.com/logangoins/soapy soapy
9194
pipx_install_or_upgrade git+https://github.com/j4s0nmo0n/soaphound.py soaphound
9295
pipx_install_or_upgrade git+https://github.com/synacktiv/gpoParser gpoParser
96+
pipx_install_or_upgrade git+https://github.com/cogiceo/daclsearch daclsearch
9397
pipx_install_or_upgrade git+https://github.com/sikumy/spearspray spearspray
9498
pipx_install_or_upgrade git+https://github.com/p0dalirius/ShareHound sharehound
9599
echo -e ""

linWinPwn.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ bloodhound=$(which bloodhound-python)
9797
bloodhoundce=$(which bloodhound-ce-python)
9898
ldapdomaindump=$(which ldapdomaindump)
9999
smbmap=$(which smbmap)
100-
adidnsdump=$(which adidnsdump)
101100
certi_py=$(which certi.py)
102101
certipy=$(which certipy)
103102
ldeep=$(which ldeep)
@@ -7397,7 +7396,6 @@ config_menu() {
73977396
if ! stat "${john}" >/dev/null 2>&1; then echo -e "${RED}[-] john is not installed${NC}"; else echo -e "${GREEN}[+] john is installed${NC}"; fi
73987397
if ! stat "${smbmap}" >/dev/null 2>&1; then echo -e "${RED}[-] smbmap is not installed${NC}"; else echo -e "${GREEN}[+] smbmap is installed${NC}"; fi
73997398
if ! stat "${nmap}" >/dev/null 2>&1; then echo -e "${RED}[-] nmap is not installed${NC}"; else echo -e "${GREEN}[+] nmap is installed${NC}"; fi
7400-
if ! stat "${adidnsdump}" >/dev/null 2>&1; then echo -e "${RED}[-] adidnsdump is not installed${NC}"; else echo -e "${GREEN}[+] adidnsdump is installed${NC}"; fi
74017399
if ! stat "${certi_py}" >/dev/null 2>&1; then echo -e "${RED}[-] certi_py is not installed${NC}"; else echo -e "${GREEN}[+] certi_py is installed${NC}"; fi
74027400
if ! stat "${certipy}" >/dev/null 2>&1; then echo -e "${RED}[-] certipy is not installed${NC}"; else echo -e "${GREEN}[+] certipy is installed${NC}"; fi
74037401
if ! stat "${ldeep}" >/dev/null 2>&1; then echo -e "${RED}[-] ldeep is not installed${NC}"; else echo -e "${GREEN}[+] ldeep is installed${NC}"; fi

0 commit comments

Comments
 (0)