diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..c32d8b14 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:2-alpine as compile +WORKDIR /opt +RUN apk add --no-cache git gcc openssl-dev libffi-dev musl-dev +RUN pip install virtualenv +RUN virtualenv -p python venv +ENV PATH="/opt/venv/bin:$PATH" +RUN git clone --depth 1 https://github.com/SecureAuthCorp/impacket.git +RUN pip install impacket/ + +FROM python:2-alpine +COPY --from=compile /opt/venv /opt/venv +ENV PATH="/opt/venv/bin:$PATH" +ENTRYPOINT ["/bin/sh"] \ No newline at end of file diff --git a/impacket/examples/ntlmrelayx/servers/wcfrelayserver.py b/impacket/examples/ntlmrelayx/servers/wcfrelayserver.py index ca0e7866..57d7942e 100644 --- a/impacket/examples/ntlmrelayx/servers/wcfrelayserver.py +++ b/impacket/examples/ntlmrelayx/servers/wcfrelayserver.py @@ -17,7 +17,6 @@ # This is the WCF server (ADWS too) which relays the NTLMSSP messages to other protocols # Only NetTcpBinding is supported! -# FIXME tester en python 2 ! # To support NetTcpBinding, this implements the ".NET Message Framing Protocol" [MC-NMF] and # ".NET NegotiateStream Protocol" [MS-NNS] # Thanks to inspiration from https://github.com/ernw/net.tcp-proxy/blob/master/nettcp/nmf.py