mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-22 01:34:55 +02:00
105 lines
3.0 KiB
Docker
105 lines
3.0 KiB
Docker
# Base image
|
|
FROM --platform=linux/amd64 ubuntu:22.04
|
|
|
|
# Labels and Credits
|
|
LABEL \
|
|
name="reNgine" \
|
|
author="Yogesh Ojha <yogesh.ojha11@gmail.com>" \
|
|
description="reNgine is a automated pipeline of recon process, useful for information gathering during web application penetration testing."
|
|
|
|
# Environment Variables
|
|
ENV DEBIAN_FRONTEND="noninteractive" \
|
|
DATABASE="postgres"
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PYTHONUNBUFFERED 1
|
|
ENV GOROOT="/usr/local/go"
|
|
ENV GOPATH=$HOME/go
|
|
ENV PATH="${PATH}:${GOROOT}/bin:${GOPATH}/bin"
|
|
|
|
# Install Python
|
|
RUN apt update && \
|
|
apt install -y \
|
|
python3.10 \
|
|
python3-dev \
|
|
python3-pip
|
|
|
|
# Install essential packages
|
|
RUN apt install -y --no-install-recommends \
|
|
build-essential \
|
|
cmake \
|
|
geoip-bin \
|
|
geoip-database \
|
|
gcc \
|
|
git \
|
|
libpq-dev \
|
|
libpango-1.0-0 \
|
|
libpangoft2-1.0-0 \
|
|
libpcap-dev \
|
|
netcat \
|
|
nmap \
|
|
x11-utils \
|
|
xvfb \
|
|
wget \
|
|
curl \
|
|
python3-netaddr \
|
|
software-properties-common
|
|
|
|
RUN add-apt-repository ppa:mozillateam/ppa
|
|
|
|
# Download and install go 1.20
|
|
RUN wget https://golang.org/dl/go1.21.4.linux-amd64.tar.gz && \
|
|
tar -xvf go1.21.4.linux-amd64.tar.gz -C /usr/local/ && \
|
|
rm go1.21.4.linux-amd64.tar.gz
|
|
|
|
# Download geckodriver
|
|
RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.32.0/geckodriver-v0.32.0-linux64.tar.gz && \
|
|
tar -xvf geckodriver-v0.32.0-linux64.tar.gz -C /usr/bin/ && \
|
|
rm geckodriver-v0.32.0-linux64.tar.gz
|
|
|
|
# Make directory for app
|
|
WORKDIR /usr/src/app
|
|
|
|
# Set environment variables
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
# Download Go packages
|
|
ENV GO111MODULE=on
|
|
RUN printf "\
|
|
github.com/jaeles-project/gospider@latest\n\
|
|
github.com/tomnomnom/gf@latest\n\
|
|
github.com/tomnomnom/unfurl@latest\n\
|
|
github.com/tomnomnom/waybackurls@latest\n\
|
|
github.com/projectdiscovery/httpx/cmd/httpx@latest\n\
|
|
github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest\n\
|
|
github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest\n\
|
|
github.com/projectdiscovery/naabu/v2/cmd/naabu@latest\n\
|
|
github.com/hakluke/hakrawler@latest\n\
|
|
github.com/lc/gau/v2/cmd/gau@latest\n\
|
|
github.com/owasp-amass/amass/v3/...@latest\n\
|
|
github.com/ffuf/ffuf@latest\n\
|
|
github.com/projectdiscovery/tlsx/cmd/tlsx@latest\n\
|
|
github.com/hahwul/dalfox/v2@latest\n\
|
|
github.com/projectdiscovery/katana/cmd/katana@latest\n\
|
|
github.com/dwisiswant0/crlfuzz/cmd/crlfuzz@latest\n\
|
|
github.com/sa7mon/s3scanner@latest\n" | \
|
|
xargs -L1 go install -ldflags="-s -w" -v && \
|
|
rm -rf /go/pkg/* && rm -rf /root/.cache/go-build
|
|
|
|
# Update Nuclei and Nuclei-Templates
|
|
RUN nuclei -update-templates
|
|
|
|
# Copy requirements
|
|
COPY ./requirements.txt /tmp/requirements.txt
|
|
RUN pip3 install --upgrade setuptools pip && \
|
|
pip3 install -r /tmp/requirements.txt --no-cache-dir
|
|
|
|
# install eyewitness
|
|
RUN python3 -m pip install --no-cache-dir fuzzywuzzy \
|
|
selenium==4.9.1 \
|
|
python-Levenshtein \
|
|
pyvirtualdisplay \
|
|
netaddr
|
|
|
|
# Copy source code
|
|
COPY . /usr/src/app/ |