Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile #75

Merged
merged 78 commits into from
Aug 7, 2020
Merged
Changes from 2 commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
3fc9872
Add DockerFile to setup dev env in docker
ChakshuGupta Mar 16, 2020
3479a83
Remove extra line
ChakshuGupta Mar 16, 2020
7f5c684
Update Dockerfile to comply with standards
ChakshuGupta Mar 17, 2020
2e17100
Add -y command to the install statements
ChakshuGupta Mar 26, 2020
6c41494
Switch to python3
ChakshuGupta Apr 10, 2020
ecd3518
Update Dockerfile and Add docker-compose
ChakshuGupta May 25, 2020
ac72c76
Install docker inside the container
ChakshuGupta May 25, 2020
d214325
Add docker service in docker-compose file
ChakshuGupta May 25, 2020
eaaa830
Add comment for docker config
ChakshuGupta May 25, 2020
d01ea36
Update docker-compose and config file to run API
ChakshuGupta May 27, 2020
1049af1
Update config to set db_url automatically
ChakshuGupta May 28, 2020
2acec0c
Add module execution to docker-compose
ChakshuGupta May 28, 2020
7620331
Fix docker daemon connetion issue
ChakshuGupta May 31, 2020
119e2b0
Edit docker-compose to run modules
ChakshuGupta Jun 1, 2020
a00e34e
Add Dockerfile.api for API service
ChakshuGupta Jun 1, 2020
0480758
Fix docker version error
ChakshuGupta Jun 4, 2020
c3014c7
Update docker-compose env variable
ChakshuGupta Jun 20, 2020
7e84728
Add tshark replacement with pyshark lib
ChakshuGupta Jul 17, 2020
0300f0f
Replace sniff_continuously by apply_on_packets
ChakshuGupta Jul 18, 2020
c7f3b66
Update requirements.txt with pyshark package
ChakshuGupta Jul 18, 2020
51accd6
Merge branch 'master' into replace_tshark
ChakshuGupta Jul 22, 2020
02e6657
Merge branch 'master' into replace_tshark
ChakshuGupta Jul 22, 2020
895f619
Merge branch 'master' into replace_tshark
ChakshuGupta Jul 23, 2020
6b65f51
fix lints
Ali-Razmjoo Jul 23, 2020
624d61b
fix lints + bug fix in display filter
Ali-Razmjoo Jul 23, 2020
7c17bab
Fix bugs
ChakshuGupta Jul 23, 2020
a7b00a6
bug fix
Ali-Razmjoo Jul 24, 2020
4e1a910
Fix github actions error
ChakshuGupta Jul 24, 2020
9b1be5d
Minor updates
ChakshuGupta Jul 24, 2020
5adc14f
fix github action errors
ChakshuGupta Jul 24, 2020
bb317d5
remove redundant condition
Ali-Razmjoo Jul 26, 2020
38d1d2b
Minor changes
ChakshuGupta Jul 27, 2020
275b910
Update unit test
ChakshuGupta Jul 27, 2020
4b2117f
move test flag to wait_until_interrupt
Ali-Razmjoo Jul 27, 2020
b3defe0
update python versions
Ali-Razmjoo Jul 27, 2020
499ed56
test tshark/wireshark?
Ali-Razmjoo Jul 27, 2020
9b76c17
Revert "test tshark/wireshark?"
Ali-Razmjoo Jul 27, 2020
919ec68
Exit failure if thread/containers not active
ChakshuGupta Jul 28, 2020
9184379
Revert "Exit failure if thread/containers not active"
ChakshuGupta Jul 28, 2020
70d3bd8
Merge branch 'master' into dockerfile
ChakshuGupta Jul 29, 2020
38b894e
Remove docker for running the modules
ChakshuGupta Jul 29, 2020
456e1d8
Add docker-compose-host
ChakshuGupta Aug 4, 2020
644471d
Merge branch 'development' into dockerfile
ChakshuGupta Aug 4, 2020
edd5658
Remove cloning of repository
ChakshuGupta Aug 5, 2020
f24e085
Try multiprocess to fix error
ChakshuGupta Aug 5, 2020
2d6651f
Update the process generation
ChakshuGupta Aug 5, 2020
d4ecd1d
Merge branch 'development' into replace_tshark
ChakshuGupta Aug 5, 2020
cdd1437
Merge pull request #116 from zdresearch/development
ChakshuGupta Aug 5, 2020
bac6768
Sort imports in load.py
ChakshuGupta Aug 5, 2020
6810a0f
Add new network file creation every hour
ChakshuGupta Aug 5, 2020
3cade12
Remove extra imports
ChakshuGupta Aug 5, 2020
5dd7acf
Add verbose mode option to network capture
ChakshuGupta Aug 5, 2020
82a0f1e
Add multiprocessing queue
ChakshuGupta Aug 6, 2020
6dafca5
Add apt update to github actions
ChakshuGupta Aug 6, 2020
c85469b
Update unit test
ChakshuGupta Aug 6, 2020
8add3e0
lint fix and exceptions
Ali-Razmjoo Aug 6, 2020
b649c43
fix tmp thread naming.
dhirensr Aug 6, 2020
644d6ad
fix the lint
Ali-Razmjoo Aug 6, 2020
7a7d432
update and fix missings
Ali-Razmjoo Aug 6, 2020
3dd0f2e
fix bug in generate token.
dhirensr Aug 6, 2020
42b1fce
Merge pull request #119 from zdresearch/T118
Ali-Razmjoo Aug 6, 2020
8c5a944
Merge branch 'master' into fix_token_bug
Ali-Razmjoo Aug 6, 2020
90f04b5
Merge pull request #120 from zdresearch/fix_token_bug
Ali-Razmjoo Aug 6, 2020
49b6f3f
Fix bug
ChakshuGupta Aug 7, 2020
7982a59
Handle timeout error separately
ChakshuGupta Aug 7, 2020
cc14663
Merge branch 'master' into replace_tshark
ChakshuGupta Aug 7, 2020
de1d85f
fix naming the dir
Ali-Razmjoo Aug 7, 2020
93bae90
Merge pull request #121 from zdresearch/fix-dir-issue
Ali-Razmjoo Aug 7, 2020
aab6701
bug fix while capturing into a file
Ali-Razmjoo Aug 7, 2020
1d147a9
remove redundant import
Ali-Razmjoo Aug 7, 2020
d08c7dc
Fix timeout error handling
ChakshuGupta Aug 7, 2020
6f91170
Merge branch 'master' into replace_tshark
ChakshuGupta Aug 7, 2020
3daec12
Merge pull request #103 from ChakshuGupta/replace_tshark
Ali-Razmjoo Aug 7, 2020
5602e98
Merge branch 'master' into pr/75
Ali-Razmjoo Aug 7, 2020
00e26d6
bug fixed
Ali-Razmjoo Aug 7, 2020
33dfac9
ignore data folder
Ali-Razmjoo Aug 7, 2020
172f504
run github actions
Ali-Razmjoo Aug 7, 2020
4adb776
wait more for mongo to be sure
Ali-Razmjoo Aug 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
86 changes: 86 additions & 0 deletions Dockerfile
@@ -0,0 +1,86 @@
FROM ubuntu
MAINTAINER Chakshu Gupta
RUN apt update

RUN apt-get update && apt-get install -y \
--no-install-suggests --no-install-recommends \
add-apt-key \
apt-utils \
asciidoctor \
bison \
build-essential \
byacc \
ca-certificates \
cmake \
dialog \
doxygen \
flex \
git \
gnupg \
gnutls* \
libbrotli-dev \
libc++-9-dev \
libcap-dev\
libgcrypt20-dev \
libglib2.0-dev \
libmaxminddb-dev \
libminizip-dev \
libnghttp2-dev \
libpcap-dev \
libqt5svg5-dev \
libsnappy-dev \
libsnappy-java \
libsnappy-jni \
libsnappy1v5 \
libspandsp-dev \
libssh-dev \
libsystemd-dev \
libxml2-* \
libzstd-dev \
python-pip\
python-setuptools \
python2.7-dev \
python3.7 \
python3.7-dev \
qtbase5-dev \
qtmultimedia5-dev \
qttools5-dev-tools \
qttools5-dev\
wget \
xsltproc

ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn
RUN wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | apt-key add -

RUN echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.2.list

RUN apt-get update
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get install -y mongodb-org
RUN echo "mongodb-org hold" | dpkg --set-selections
RUN echo "mongodb-org-server hold" | dpkg --set-selections
RUN echo "mongodb-org-shell hold" | dpkg --set-selections
RUN echo "mongodb-org-mongos hold" | dpkg --set-selections
RUN echo "mongodb-org-tools hold" | dpkg --set-selections

RUN wget https://www.wireshark.org/download/src/wireshark-3.2.2.tar.xz -O wireshark-3.2.2.tar.xz
RUN tar -xvf wireshark-3.2.2.tar.xz
RUN apt-get update && apt-get dist-upgrade
ChakshuGupta marked this conversation as resolved.
Show resolved Hide resolved
RUN cd wireshark-3.2.2 && cmake . && make && make install

# RUN systemctl daemon-reload
# RUN systemctl start mongod
# RUN systemctl enable mongod
# RUN systemctl stop mongod
# RUN systemctl restart mongod

RUN apt-get -yqq install krb5-user libpam-krb5
ChakshuGupta marked this conversation as resolved.
Show resolved Hide resolved

ARG CC=gcc-9
ARG CXX=g++-9

RUN git clone https://github.com/zdresearch/OWASP-Honeypot.git
RUN pip install wheel
RUN cd OWASP-Honeypot && pip install -r requirements.txt && pip install -r requirements-dev.txt
EXPOSE 5000