├── Dockerfile ├── README.md ├── scripts └── service-start.sh └── v1.0 ├── Dockerfile └── scripts └── service-start.sh /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:2.7-stretch 2 | LABEL MAINTAINER "Madhu Akula " 3 | 4 | ENV DATASPLOIT_VERSION v1.0 5 | ENV DATASPLOIT_INSTALL_DIR /opt/datasploit 6 | ENV MONGODB_DIR /opt/datasploit/dataspoitDb 7 | 8 | RUN cd /tmp \ 9 | && curl -SLO "https://github.com/DataSploit/datasploit/archive/$DATASPLOIT_VERSION.tar.gz" \ 10 | && mkdir -p $DATASPLOIT_INSTALL_DIR \ 11 | && tar -xzf "$DATASPLOIT_VERSION.tar.gz" -C $DATASPLOIT_INSTALL_DIR --strip-components=1 \ 12 | && rm "$DATASPLOIT_VERSION.tar.gz" \ 13 | && apt-get update \ 14 | && apt-get install mongodb rabbitmq-server vim --no-install-recommends -y \ 15 | && cd $DATASPLOIT_INSTALL_DIR \ 16 | && pip install -r requirements.txt \ 17 | && cp $DATASPLOIT_INSTALL_DIR/config_sample.py $DATASPLOIT_INSTALL_DIR/config.py \ 18 | && mkdir -p $MONGODB_DIR 19 | 20 | WORKDIR $DATASPLOIT_INSTALL_DIR 21 | 22 | COPY scripts/service-start.sh $DATASPLOIT_INSTALL_DIR/service-start.sh 23 | 24 | CMD ["/bin/bash", "/opt/datasploit/service-start.sh"] 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # docker-datasploit 2 | Docker container for datasploit framework 3 | 4 | - Here is a medium post about the release [https://medium.com/appsecco/docker-container-for-datasploit-26953f175e21](https://medium.com/appsecco/docker-container-for-datasploit-26953f175e21) 5 | 6 | 7 | ### [Docker Image v1.0 Version](/v1.0/) 8 | 9 | The datasploit docker container is created by using `python:2.7-stretch` and it will install all the dependencies to quick start the working setup. 10 | 11 | ### Software required to use docker container 12 | 13 | - Docker (Tested version 17.X-ce) 14 | 15 | ### Steps to use the container 16 | 17 | - Pull the docker-datasploit image from the docker hub [https://hub.docker.com/r/appsecco/datasploit](https://hub.docker.com/r/appsecco/datasploit) 18 | 19 | ``` 20 | docker pull appsecco/datasploit:1.0 21 | ``` 22 | 23 | - Start the docker container with volume mounts 24 | 25 | ``` 26 | docker run --name datasploit -v `pwd`/config.py:/opt/datasploit/config.py:ro -v `pwd`:/opt/datasploit/data -d appsecco/datasploit:1.0 27 | ``` 28 | 29 | - Use the docker container with interactive shell from the host system 30 | 31 | ``` 32 | docker exec -it datasploit bash 33 | ``` 34 | 35 | - Then add the `API_KEYS` to the `config.py` in your host and it will get updated in container automatically 36 | 37 | - If you want to use command line scripts. You can navigate to `/opt/datasploit/` in docker container 38 | 39 | ``` 40 | python usernameOsint.py username 41 | ``` 42 | 43 | - Read more about tool in documentation http://www.datasploit.info/en/latest 44 | 45 | Please feel free to make a pull request or tweet to me [@madhuakula](https://twitter.com/madhuakula) for improvements and suggestions. 46 | -------------------------------------------------------------------------------- /scripts/service-start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | service rabbitmq-server start 4 | nohup mongod --dbpath /opt/datasploit/dataspoitDb -------------------------------------------------------------------------------- /v1.0/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:2.7-stretch 2 | LABEL MAINTAINER "Madhu Akula " 3 | 4 | ENV DATASPLOIT_VERSION v1.0 5 | ENV DATASPLOIT_INSTALL_DIR /opt/datasploit 6 | ENV MONGODB_DIR /opt/datasploit/dataspoitDb 7 | 8 | RUN cd /tmp \ 9 | && curl -SLO "https://github.com/DataSploit/datasploit/archive/$DATASPLOIT_VERSION.tar.gz" \ 10 | && mkdir -p $DATASPLOIT_INSTALL_DIR \ 11 | && tar -xzf "$DATASPLOIT_VERSION.tar.gz" -C $DATASPLOIT_INSTALL_DIR --strip-components=1 \ 12 | && rm "$DATASPLOIT_VERSION.tar.gz" \ 13 | && apt-get update \ 14 | && apt-get install mongodb rabbitmq-server vim --no-install-recommends -y \ 15 | && cd $DATASPLOIT_INSTALL_DIR \ 16 | && pip install -r requirements.txt \ 17 | && cp $DATASPLOIT_INSTALL_DIR/config_sample.py $DATASPLOIT_INSTALL_DIR/config.py \ 18 | && mkdir -p $MONGODB_DIR 19 | 20 | WORKDIR $DATASPLOIT_INSTALL_DIR 21 | 22 | COPY scripts/service-start.sh $DATASPLOIT_INSTALL_DIR/service-start.sh 23 | 24 | CMD ["/bin/bash", "/opt/datasploit/service-start.sh"] 25 | -------------------------------------------------------------------------------- /v1.0/scripts/service-start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | service rabbitmq-server start 4 | nohup mongod --dbpath /opt/datasploit/dataspoitDb --------------------------------------------------------------------------------