forked from hoodietramp/capNcook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile
64 lines (50 loc) · 1.48 KB
/
dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Use the official Kali Linux base image
FROM kalilinux/kali-rolling
# Set the timezone to Indian Standard Time (IST)
ENV TZ=Asia/Kolkata
# Set environment variables
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
ENV FLASK_RUN_PORT=5000
# Install tzdata and configure the timezone
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Install necessary packages
RUN apt-get update && apt-get install -y \
apt-utils \
python3 \
python3-pip \
tor \
proxychains4 \
curl \
unzip \
whois \
jq \
wget \
chromium
# Set the working directory
WORKDIR /app
# Copying web-{front-back}end to docker
COPY . /app
# Copying config files
COPY torrc /etc/tor/
COPY proxychains4.conf /etc/
# Install Python dependencies
RUN pip3 install -r requirements.txt
WORKDIR /tmp
# Installing tools
RUN wget https://github.com/epi052/feroxbuster/releases/download/v2.10.0/x86_64-linux-feroxbuster.zip
RUN unzip x86_64-linux-feroxbuster.zip
RUN mv feroxbuster /usr/bin/
RUN chmod +x /usr/bin/feroxbuster
RUN rm x86_64-linux-feroxbuster.zip
RUN wget https://github.com/michenriksen/aquatone/releases/download/v1.7.0/aquatone_linux_amd64_1.7.0.zip
RUN unzip aquatone_linux_amd64_1.7.0.zip
RUN mv aquatone /usr/bin/
RUN chmod +x /usr/bin/aquatone
RUN rm LICENSE.txt README.md aquatone_linux_amd64_1.7.0.zip
RUN service tor start
RUN chmod 644 /run/tor/control.authcookie
WORKDIR /app
# Expose the port
EXPOSE 5000
ENTRYPOINT service tor restart && python3 app.py