Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
58 lines (45 loc) · 1.57 KB
/
Copy pathDockerfile
File metadata and controls
58 lines (45 loc) · 1.57 KB
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
FROM kalilinux/kali-rolling
# Update and install necessary packages
RUN apt update && apt install -y \
outguess \
'python3.12' \
python3-pip \
python3-setuptools \
ruby \
tshark \
dos2unix
# Install binwalk
RUN pip3 install binwalk
RUN apt install -y mtd-utils gzip bzip2 tar arj lhasa p7zip p7zip-full cabextract squashfs-tools sleuthkit default-jdk lzop srecord
# Install zsteg
RUN gem install zsteg
# Install stegoveritas
RUN pip3 install stegoveritas
RUN stegoveritas_install_deps
# Create a directory to store uploaded files
RUN mkdir /home/data
# Create a directory to store results generated from the scripts
RUN mkdir /home/results
# Installing python libraries
COPY requirements.txt /home
WORKDIR /home
RUN pip3 install -r requirements.txt
# Copy the scripts to the container
COPY . .
# Make the scripts executable
RUN dos2unix /home/modules/*
RUN chmod +x /home/modules/*
RUN dos2unix *.sh
# Set the working directory
WORKDIR /home/
RUN echo 'export PATH=/home/modules:$PATH' > /home/.bashrc
RUN echo "alias cls='clear'" >> /root/.bashrc
RUN echo "alias full_analyze='python3 /home/bin/full_analyze.py'" >> /root/.bashrc
RUN echo "alias image_analyze='python3 /home/bin/image_analyze.py'" >> /root/.bashrc
RUN echo "alias pcap_analyze='python3 /home/bin/pcap_analyze.py'" >> /root/.bashrc
RUN echo "alias magic_byte_analyze='python3 /home/modules/magic_byte_analysis.py'" >> /root/.bashrc
# Exposing the port that the Flask application will be running on
EXPOSE 5001
# Set the entry point to run the Flask app
CMD ["python3", "app.py"]
ENV SHELL=/bin/bash