diff --git a/Dockerfile b/Dockerfile index 8b338ce..392ac11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,11 @@ -FROM python:3 +FROM golang:1.12.7-alpine COPY . /packages/src WORKDIR /workspace -RUN wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz \ - && tar -xvf go1.12.6.linux-amd64.tar.gz && mv go /usr/local \ - && apt-get update -y && apt-get install python2.7 -y \ - && wget -O- -q https://bootstrap.pypa.io/get-pip.py | python2.7 \ +RUN apk update && apk add python2 python3 git bash gcc g++ libxslt-dev freetds-dev python3-dev python2-dev openssl-dev musl-dev libffi-dev \ + && wget https://bootstrap.pypa.io/get-pip.py -O- | python2.7 \ + && wget https://bootstrap.pypa.io/get-pip.py -O- | python3.7 \ && wget -O /packages/src/geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz \ - && tar -C /packages/src/ -xvf /packages/src/geckodriver.tar.gz -ENV GOROOT /usr/local/go -ENV GOPATH $HOME/Projects/Proj1 -ENV PATH /Projects/Proj1/bin:/usr/local/go/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.local/bin:/packages/src/ + && tar -C /packages/src/ -xvf /packages/src/geckodriver.tar.gz \ + && rm -rf *tar.gz +ENV PATH /usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.local/bin:/packages/src:/usr/local/go/bin RUN bash /packages/src/install-osint.sh diff --git a/README.md b/README.md index f98d78c..75ccdc7 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,26 @@ # OSINT Docker image for osint tools, in progress + # Run ```docker docker pull scorpionsec/osint:unstable docker run -it scorpionsec/osint:unstable bash ``` + +# About +The image was wrote for Security Osint with tools: + - Operative-framework: __operative framework is a OSINT investigation framework__ + - D4N155: __Intelligent and dynamic wordlist using OSINT__ + - Sherlock: __Find usernames across social networks__ + - PhoneInfoga: __Advanced information gathering & OSINT tool for phone numbers__ + - Karma: __Find leaked emails with your passwords__ + - Recon-ng: __Recon-ng is a full-featured Web Reconnaissance framework written in Python__ + - SE Toolkit: __The Social-Engineer Toolkit__ + - OpenVas: __Open Vulnerability Assessment Scanner__ + - The Harvester: __E-mails, subdomains and names Harvester - OSINT__ + - Whois: __Get whois data__ + - osrframework: __Open Sources Research Framework__ + - R3dOv3r: __Know the dangers of credential reuse attacks__ + - Buster: __Find emails of a person and return info associated with them__ + - InstagramOsint: __An Instagram Open Source Intelligence Tool__ + diff --git a/install-osint.sh b/install-osint.sh index 5e9e018..086118c 100644 --- a/install-osint.sh +++ b/install-osint.sh @@ -1,7 +1,7 @@ -#!/usr/bin/bash +#!/usr/bin/sh # Fix problems of directories -here=`dirname "$0"` +here="`dirname "$0"`" cd "$here" # colors orange='\e[93m' @@ -15,11 +15,11 @@ correct="[\e[1m\e[92;1m ✔ $end]" incorrect="[\e[1m\e[91;1m ✘ $end]" _install_pip(){ - pip_version="$(ls -v /usr/local/bin/pip* | tail -n1 || printf 'pip')" - run="$pip_version install $1 --user" + run="$1 install $2 --user" echo -e "Run: $orange$run$end" - eval "$run" && echo -e "$correct Installed(s): $1" || echo -e "$incorrect Error in install of: $1" -} + eval "$run" && echo -e "$correct Installed(s): $2" || echo -e "$incorrect Error in install of: $2" +} + _install_git(){ cd "/workspace" run="git clone $1" @@ -32,22 +32,49 @@ _run(){ eval "$1" && echo -e "$correct $1" || echo -e "$incorrect $1" } + +_install_pip 'pip3' 'cython' # Operative-framework _run 'go get github.com/graniet/operative-framework' # Install D4N155 _install_git 'https://github.com/OWASP/D4N155.git' -_install_pip '-r /workspace/D4N155/requirements.txt' +_install_pip 'pip3' '-r /workspace/D4N155/requirements.txt' # Install Sherlock _install_git 'https://github.com/sherlock-project/sherlock.git' -_install_pip '-r /workspace/sherlock/requirements.txt' +_install_pip 'pip3' '-r /workspace/sherlock/requirements.txt' # Install PhoneInfoga _install_git 'https://github.com/sundowndev/PhoneInfoga' -_install_pip '-r /workspace/PhoneInfoga/requirements.txt' +_install_pip 'pip3' '-r /workspace/PhoneInfoga/requirements.txt' _run 'mv /workspace/PhoneInfoga/config.example.py /workspace/PhoneInfoga/config.py' # Install Karma -_install_pip 'git+https://github.com/decoxviii/karma.git' +_install_pip 'pip3' 'git+https://github.com/decoxviii/karma.git' +# Install SE Toolkit +_install_git 'https://github.com/trustedsec/social-engineer-toolkit.git' +_install_pip 'pip3' '-r /workspace/social-engineer-toolkit/requirements.txt' +# Install Recon-ng +_install_git 'https://bitbucket.org/LaNMaSteR53/recon-ng.git' +_install_pip 'pip3' '-r /workspace/recon-ng/REQUIREMENTS' +# Install OpenVas +_install_git 'https://github.com/greenbone/openvas.git' +# Install The Harvester +_install_git 'https://github.com/laramies/theHarvester.git' +_install_pip 'pip3' '-r /workspace/theHarvester/requirements.txt' +# Install Cr3dOv3r +_install_git 'https://github.com/D4Vinci/Cr3dOv3r.git' +_install_pip 'pip3' '-r /workspace/Cr3dOv3r/requirements.txt' +# Install DNSRecon +_install_git 'https://github.com/darkoperator/dnsrecon.git' +_install_pip 'pip2' '-r /workspace/dnsrecon/requirements.txt' +# Install Buster +_install_git 'https://github.com/sham00n/buster.git' +_run "cd workspace/buster;python3 setup.py install;cd $here" +# Install Whois +_run 'apk add whois nmap' # Install osrframework -_run "$(ls -v /usr/local/bin/pip2* | head -n1 || printf 'pip') install osrframework --user" +_install_pip 'pip2' 'osrframework' +# Install InstagramOsint +_install_git 'https://github.com/sc1341/InstagramOSINT.git' +_install_pip 'pip3' '-r /workspace/InstagramOSINT/requirements.txt' cat ascii-art.sh >> ~/.bashrc