From 08f8b49c141c6519ae580165efaa8c3082351a4f Mon Sep 17 00:00:00 2001 From: matholiveira91 Date: Tue, 9 Jul 2019 09:43:28 -0300 Subject: [PATCH 01/15] add recon-ng :v: --- D4N155 | 1 - PhoneInfoga | 1 - recon-ng | 1 - sherlock | 1 - social-engineer-toolkit | 1 - 5 files changed, 5 deletions(-) delete mode 160000 D4N155 delete mode 160000 PhoneInfoga delete mode 160000 recon-ng delete mode 160000 sherlock delete mode 160000 social-engineer-toolkit diff --git a/D4N155 b/D4N155 deleted file mode 160000 index 0310c30..0000000 --- a/D4N155 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0310c30b05919f3e0ac8262ef48083cdf4f857db diff --git a/PhoneInfoga b/PhoneInfoga deleted file mode 160000 index c02ed40..0000000 --- a/PhoneInfoga +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c02ed4098d01f2b9bc97f3ff5fefcb61502425fb diff --git a/recon-ng b/recon-ng deleted file mode 160000 index a072b85..0000000 --- a/recon-ng +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a072b850d753e85867e5b5e24d8df2712b682989 diff --git a/sherlock b/sherlock deleted file mode 160000 index 3276e97..0000000 --- a/sherlock +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 3276e973274d913368b20550ec2c9aecc38d47f2 diff --git a/social-engineer-toolkit b/social-engineer-toolkit deleted file mode 160000 index 0018154..0000000 --- a/social-engineer-toolkit +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0018154022e6cd8e1dd8799903d3abf022d51ed3 From 3c1cefdd9b1ca9375f19fc64424785d1aa559f08 Mon Sep 17 00:00:00 2001 From: matholiveira91 Date: Tue, 9 Jul 2019 10:03:22 -0300 Subject: [PATCH 02/15] add theharvester and openvas :wink: --- install-osint.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install-osint.sh b/install-osint.sh index 3f5bdc2..4aa04de 100644 --- a/install-osint.sh +++ b/install-osint.sh @@ -60,3 +60,11 @@ cat ascii-art.sh >> ~/.bashrc # Install SE Toolkit _install_git 'https://github.com/trustedsec/social-engineer-toolkit.git' _install_pip '-r /set/requirements.txt' + +# Install OpenVas +_install_git 'https://github.com/greenbone/openvas.git' + +# Install The Harvester +_install_git 'https://github.com/laramies/theHarvester.git' +_install_git '-r /workspace/theHarvester/requirements.txt' + From e0e7acf98f2546b36e8d49e6b3bff6795244c3cb Mon Sep 17 00:00:00 2001 From: jul10l14 Date: Sun, 14 Jul 2019 21:02:04 -0300 Subject: [PATCH 03/15] Install whois --- dork-cli.py | 111 +++++++++++++++++++++++++++++++++++++++++++++++ install-osint.sh | 16 +++---- teste.py | 30 +++++++++++++ 3 files changed, 149 insertions(+), 8 deletions(-) create mode 100644 dork-cli.py create mode 100644 teste.py diff --git a/dork-cli.py b/dork-cli.py new file mode 100644 index 0000000..d46f5c8 --- /dev/null +++ b/dork-cli.py @@ -0,0 +1,111 @@ +#!/usr/bin/env python +from __future__ import print_function +try: + from urllib.request import urlopen + from urllib.parse import urlencode,urlparse + from urllib.error import HTTPError +except ImportError: + from urllib import urlencode + from urllib2 import urlopen, HTTPError + from urlparse import urlparse +import json +import sys +import time +import argparse + +domain = '' +engine = '' +key = '' +max_queries = 10 +sleep = 0 +dynamic_filetypes = "asp,aspx,cfm,cgi,jsp,php,phtm,phtml,shtm,shtml" + +def main(): + parser = argparse.ArgumentParser(description='Find dynamic pages via Google dorks.') + parser.add_argument('-d', '--domain', default=domain, + help='Specific domain to search (instead of all domains defined in CSE)') + parser.add_argument('-e', '--engine', default=engine, + help='Google custom search engine id (cx value)') + parser.add_argument('-f', '--filetypes', nargs='?', default=[], + const=dynamic_filetypes, + help='File extensions to return (if present but no extensions specified, builtin dynamic list is used)') + parser.add_argument('-k', '--key', default=key, + help='Google API key') + parser.add_argument('-m', '--max-queries', type=int, default=max_queries, + help='Maximum number of queries to issue') + parser.add_argument('-s', '--sleep', type=int, default=sleep, + help='Seconds to sleep before retry if daily API limit is reached (0=disable)') + parser.add_argument('terms', metavar='T', nargs='*', + help='additional search term') + + args = parser.parse_args() + + if not args.key or not args.engine: + print("ERROR: [key] and [engine] must be set", file=sys.stderr) + parser.print_help() + sys.exit(1) + + data = {} + data['key'] = args.key + data['cx'] = args.engine + data['siteSearch'] = args.domain + data['q'] = ' '.join(args.terms) + if args.filetypes: + filetypes = args.filetypes.split(',') + data['q'] += ' filetype:' + ' OR filetype:'.join(filetypes) + data['num'] = 10 + data['start'] = 1 + + pages = set() + found = 0 + query_max_reached = False + query_count = 0 + data_saved = data['q'] + + while query_count < args.max_queries: + url = 'https://www.googleapis.com/customsearch/v1?'+ urlencode(data) + try: + response_str = urlopen(url) + query_count += 1 + response_str = response_str.read().decode('utf-8') + response = json.loads(response_str) + except HTTPError as e: + response_str = e.read().decode('utf-8') + response = json.loads(response_str) + if "Invalid Value" in response['error']['message']: + sys.exit(0) + elif response['error']['code'] == 500: + data['q'] = data_saved + query_max_reached = True + continue + print("error: " + str(response['error']['code']) + " - " + str(response['error']['message']), file=sys.stderr) + for error in response['error']['errors']: + print(error['domain'] + "::" + error['reason'] + "::" + error['message'], file=sys.stderr) + if "User Rate Limit Exceeded" in response['error']['message']: + print("sleeping " + str(args.sleep) + " seconds", file=sys.stderr) + time.sleep(5) + elif args.sleep and "Daily Limit Exceeded" in response['error']['message']: + print("sleeping " + str(args.sleep) + " seconds", file=sys.stderr) + time.sleep(args.sleep) + continue + else: + sys.exit(1) + data_saved = data['q'] + for request in response['queries']['request']: + if int(request['totalResults']) == 0: + sys.exit(0) + for item in response['items']: + item_url = urlparse(item['link']) + if item_url.path in pages: + if not query_max_reached: + data['q'] += " -inurl:" + item_url.path + else: + pages.add(item_url.path) + found += 1 + print(item['link']) + if found >= data['num'] or query_max_reached: + data['start'] += data['num'] + +if __name__ == "__main__": + main() + diff --git a/install-osint.sh b/install-osint.sh index 4aa04de..00bbf12 100644 --- a/install-osint.sh +++ b/install-osint.sh @@ -52,19 +52,19 @@ _install_pip '-r /workspace/social-engineer-toolkit/requirements.txt' # Install Recon-ng _install_git 'https://bitbucket.org/LaNMaSteR53/recon-ng.git' _install_pip '-r /workspace/recon-ng/REQUIREMENTS' - -# Install osrframework -_run "$(ls -v /usr/local/bin/pip2* | head -n1 || printf 'pip') install osrframework --user" - -cat ascii-art.sh >> ~/.bashrc # Install SE Toolkit _install_git 'https://github.com/trustedsec/social-engineer-toolkit.git' _install_pip '-r /set/requirements.txt' - # Install OpenVas _install_git 'https://github.com/greenbone/openvas.git' - -# Install The Harvester +# Install The Harvester _install_git 'https://github.com/laramies/theHarvester.git' _install_git '-r /workspace/theHarvester/requirements.txt' +# Install Whois +_run 'apt install whois -y' + +# Install osrframework +_run "$(ls -v /usr/local/bin/pip2* | head -n1 || printf 'pip') install osrframework --user" + +cat ascii-art.sh >> ~/.bashrc diff --git a/teste.py b/teste.py new file mode 100644 index 0000000..519a782 --- /dev/null +++ b/teste.py @@ -0,0 +1,30 @@ +import requests +from bs4 import BeautifulSoup + +url = "https://globo.com" +ip = "10.10.10.10" +rec_site = requests.get('http://sharingmyip.com/?site='+url) +#print(rec_site.text) + +soup = BeautifulSoup(rec_site.text,'html.parser') +#print("Sites para o IP:\n"+soup.textarea.string) + +''' +for i in range(len(soup.textarea)): + print(soup.textarea.string) +''' +qt_textarea = len(soup('textarea')) +msg_list = ['Site (s) neste endereço','DNS para ','Entradas de DNS relacionadas para'] +#for msg in range(msg_list): +for i in range(qt_textarea): + if (i == 0): + print(msg_list[0]+" "+ip) + print(soup('textarea')[i].string) + elif i == 1: + print(msg_list[1]+" "+url) + print(soup('textarea')[i].string) + elif i == 2: + print(msg_list[2]+" "+url) + print(soup('textarea')[i].string) + else: + print("Aconteceu algo errado :D") From a60e793b311a633eeba97a8b1cae54dab8e8b40e Mon Sep 17 00:00:00 2001 From: jul10l14 Date: Sun, 14 Jul 2019 21:11:21 -0300 Subject: [PATCH 04/15] :tada: Documentation of tools --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index f98d78c..9dfcbe5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,23 @@ # 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 wa wrote for Security Osint with tools: + - Operative-framework + - D4N155 + - Sherlock + - PhoneInfoga + - Karma + - SE Toolkit + - Recon-ng + - SE Toolkit + - OpenVas + - The Harvester + - Whois + From 23ca739c29bf98a88e494bee0b5123a9832d6984 Mon Sep 17 00:00:00 2001 From: Julio Lira Date: Sun, 14 Jul 2019 18:11:45 -0300 Subject: [PATCH 05/15] Delete dork-cli.py --- dork-cli.py | 111 ---------------------------------------------------- 1 file changed, 111 deletions(-) delete mode 100644 dork-cli.py diff --git a/dork-cli.py b/dork-cli.py deleted file mode 100644 index d46f5c8..0000000 --- a/dork-cli.py +++ /dev/null @@ -1,111 +0,0 @@ -#!/usr/bin/env python -from __future__ import print_function -try: - from urllib.request import urlopen - from urllib.parse import urlencode,urlparse - from urllib.error import HTTPError -except ImportError: - from urllib import urlencode - from urllib2 import urlopen, HTTPError - from urlparse import urlparse -import json -import sys -import time -import argparse - -domain = '' -engine = '' -key = '' -max_queries = 10 -sleep = 0 -dynamic_filetypes = "asp,aspx,cfm,cgi,jsp,php,phtm,phtml,shtm,shtml" - -def main(): - parser = argparse.ArgumentParser(description='Find dynamic pages via Google dorks.') - parser.add_argument('-d', '--domain', default=domain, - help='Specific domain to search (instead of all domains defined in CSE)') - parser.add_argument('-e', '--engine', default=engine, - help='Google custom search engine id (cx value)') - parser.add_argument('-f', '--filetypes', nargs='?', default=[], - const=dynamic_filetypes, - help='File extensions to return (if present but no extensions specified, builtin dynamic list is used)') - parser.add_argument('-k', '--key', default=key, - help='Google API key') - parser.add_argument('-m', '--max-queries', type=int, default=max_queries, - help='Maximum number of queries to issue') - parser.add_argument('-s', '--sleep', type=int, default=sleep, - help='Seconds to sleep before retry if daily API limit is reached (0=disable)') - parser.add_argument('terms', metavar='T', nargs='*', - help='additional search term') - - args = parser.parse_args() - - if not args.key or not args.engine: - print("ERROR: [key] and [engine] must be set", file=sys.stderr) - parser.print_help() - sys.exit(1) - - data = {} - data['key'] = args.key - data['cx'] = args.engine - data['siteSearch'] = args.domain - data['q'] = ' '.join(args.terms) - if args.filetypes: - filetypes = args.filetypes.split(',') - data['q'] += ' filetype:' + ' OR filetype:'.join(filetypes) - data['num'] = 10 - data['start'] = 1 - - pages = set() - found = 0 - query_max_reached = False - query_count = 0 - data_saved = data['q'] - - while query_count < args.max_queries: - url = 'https://www.googleapis.com/customsearch/v1?'+ urlencode(data) - try: - response_str = urlopen(url) - query_count += 1 - response_str = response_str.read().decode('utf-8') - response = json.loads(response_str) - except HTTPError as e: - response_str = e.read().decode('utf-8') - response = json.loads(response_str) - if "Invalid Value" in response['error']['message']: - sys.exit(0) - elif response['error']['code'] == 500: - data['q'] = data_saved - query_max_reached = True - continue - print("error: " + str(response['error']['code']) + " - " + str(response['error']['message']), file=sys.stderr) - for error in response['error']['errors']: - print(error['domain'] + "::" + error['reason'] + "::" + error['message'], file=sys.stderr) - if "User Rate Limit Exceeded" in response['error']['message']: - print("sleeping " + str(args.sleep) + " seconds", file=sys.stderr) - time.sleep(5) - elif args.sleep and "Daily Limit Exceeded" in response['error']['message']: - print("sleeping " + str(args.sleep) + " seconds", file=sys.stderr) - time.sleep(args.sleep) - continue - else: - sys.exit(1) - data_saved = data['q'] - for request in response['queries']['request']: - if int(request['totalResults']) == 0: - sys.exit(0) - for item in response['items']: - item_url = urlparse(item['link']) - if item_url.path in pages: - if not query_max_reached: - data['q'] += " -inurl:" + item_url.path - else: - pages.add(item_url.path) - found += 1 - print(item['link']) - if found >= data['num'] or query_max_reached: - data['start'] += data['num'] - -if __name__ == "__main__": - main() - From 90e57039e80c87fc5b4105d144e7541514d97b18 Mon Sep 17 00:00:00 2001 From: Julio Lira Date: Sun, 14 Jul 2019 18:12:30 -0300 Subject: [PATCH 06/15] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9dfcbe5..e9436df 100644 --- a/README.md +++ b/README.md @@ -12,12 +12,12 @@ The image wa wrote for Security Osint with tools: - Operative-framework - D4N155 - Sherlock - - PhoneInfoga - - Karma - - SE Toolkit - - Recon-ng - - SE Toolkit - - OpenVas - - The Harvester + - PhoneInfoga + - Karma + - SE Toolkit + - Recon-ng + - SE Toolkit + - OpenVas + - The Harvester - Whois From 81cb3bd936698bca21f890f97d392d065027d294 Mon Sep 17 00:00:00 2001 From: Julio Lira Date: Sun, 14 Jul 2019 18:12:59 -0300 Subject: [PATCH 07/15] :tada: Documentation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e9436df..23ed01d 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ docker run -it scorpionsec/osint:unstable bash ``` # About -The image wa wrote for Security Osint with tools: +The image was wrote for Security Osint with tools: - Operative-framework - D4N155 - Sherlock From 6ba5317206b047718de874437bfbd0166b1bae99 Mon Sep 17 00:00:00 2001 From: jul10l14 Date: Sun, 28 Jul 2019 17:49:05 -0300 Subject: [PATCH 08/15] Draft tools --- install-osint.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/install-osint.sh b/install-osint.sh index 00bbf12..2245a9c 100644 --- a/install-osint.sh +++ b/install-osint.sh @@ -13,6 +13,7 @@ bgred='\e[41m' # Status correct="[\e[1m\e[92;1m ✔ $end]" incorrect="[\e[1m\e[91;1m ✘ $end]" +pip3="$(ls -v /usr/local/bin/pip2* | head -n1 || printf 'pip')" _install_pip(){ pip_version="$(ls -v /usr/local/bin/pip* | tail -n1 || printf 'pip')" @@ -54,17 +55,23 @@ _install_git 'https://bitbucket.org/LaNMaSteR53/recon-ng.git' _install_pip '-r /workspace/recon-ng/REQUIREMENTS' # Install SE Toolkit _install_git 'https://github.com/trustedsec/social-engineer-toolkit.git' -_install_pip '-r /set/requirements.txt' +_install_pip '-r /workspace/social-engineer-toolkit/requirements.txt' # Install OpenVas _install_git 'https://github.com/greenbone/openvas.git' # Install The Harvester _install_git 'https://github.com/laramies/theHarvester.git' -_install_git '-r /workspace/theHarvester/requirements.txt' +_install_pip '-r /workspace/theHarvester/requirements.txt' +# Install Cr3dOv3r +_install_git 'https://github.com/D4Vinci/Cr3dOv3r.git' +_install_pip '-r /workspace/Cr3d0v3r/requirements.txt' +# Install DNSRecon +_install_git 'https://github.com/darkoperator/dnsrecon.git' +_run "$pip2 install -r /workspace/dnsrecon/requirements.txt --user" # Install Whois _run 'apt install whois -y' # Install osrframework -_run "$(ls -v /usr/local/bin/pip2* | head -n1 || printf 'pip') install osrframework --user" +_run "$pip2 install osrframework --user" cat ascii-art.sh >> ~/.bashrc From fdc73f9432b5d8afccd51a4524f6b610e286c716 Mon Sep 17 00:00:00 2001 From: jul10l14 Date: Sun, 28 Jul 2019 20:32:03 -0300 Subject: [PATCH 09/15] :meta: Add DNSRecon, Cr3d0v3r --- install-osint.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install-osint.sh b/install-osint.sh index 2245a9c..9d9a1ff 100644 --- a/install-osint.sh +++ b/install-osint.sh @@ -13,7 +13,7 @@ bgred='\e[41m' # Status correct="[\e[1m\e[92;1m ✔ $end]" incorrect="[\e[1m\e[91;1m ✘ $end]" -pip3="$(ls -v /usr/local/bin/pip2* | head -n1 || printf 'pip')" +pip2="$(ls -v /usr/local/bin/pip2* | head -n1 || printf 'pip')" _install_pip(){ pip_version="$(ls -v /usr/local/bin/pip* | tail -n1 || printf 'pip')" @@ -69,7 +69,6 @@ _install_git 'https://github.com/darkoperator/dnsrecon.git' _run "$pip2 install -r /workspace/dnsrecon/requirements.txt --user" # Install Whois _run 'apt install whois -y' - # Install osrframework _run "$pip2 install osrframework --user" From 2a53bf86d6c5831266accfb9cfbbda87f0192b35 Mon Sep 17 00:00:00 2001 From: jul10l14 Date: Sat, 3 Aug 2019 02:30:37 -0300 Subject: [PATCH 10/15] Change Debian image for Alpine distro --- Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index b82b9dc..392ac11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +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 \ && rm -rf *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/ +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 From cce4f833fe3f8a449e980fbc58279c4d62a84094 Mon Sep 17 00:00:00 2001 From: jul10l14 Date: Sat, 3 Aug 2019 02:31:38 -0300 Subject: [PATCH 11/15] :tada: Add buster and cr... tool --- install-osint.sh | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/install-osint.sh b/install-osint.sh index 9d9a1ff..4c099f6 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' @@ -13,14 +13,13 @@ bgred='\e[41m' # Status correct="[\e[1m\e[92;1m ✔ $end]" incorrect="[\e[1m\e[91;1m ✘ $end]" -pip2="$(ls -v /usr/local/bin/pip2* | head -n1 || printf 'pip')" _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" @@ -33,44 +32,45 @@ _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 '-r /workspace/social-engineer-toolkit/requirements.txt' +_install_pip 'pip3' '-r /workspace/social-engineer-toolkit/requirements.txt' # Install Recon-ng _install_git 'https://bitbucket.org/LaNMaSteR53/recon-ng.git' -_install_pip '-r /workspace/recon-ng/REQUIREMENTS' -# Install SE Toolkit -_install_git 'https://github.com/trustedsec/social-engineer-toolkit.git' -_install_pip '-r /workspace/social-engineer-toolkit/requirements.txt' +_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 '-r /workspace/theHarvester/requirements.txt' +_install_pip 'pip3' '-r /workspace/theHarvester/requirements.txt' # Install Cr3dOv3r _install_git 'https://github.com/D4Vinci/Cr3dOv3r.git' -_install_pip '-r /workspace/Cr3d0v3r/requirements.txt' +_install_pip 'pip3' '-r /workspace/Cr3dOv3r/requirements.txt' # Install DNSRecon _install_git 'https://github.com/darkoperator/dnsrecon.git' -_run "$pip2 install -r /workspace/dnsrecon/requirements.txt --user" +_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 'apt install whois -y' +_run 'apk add whois nmap' # Install osrframework -_run "$pip2 install osrframework --user" +_install_pip 'pip2' 'osrframework' cat ascii-art.sh >> ~/.bashrc - From 47b3c3f6b9c1975d174dd16bcf2b8e65dfada05b Mon Sep 17 00:00:00 2001 From: jul10l14 Date: Sat, 3 Aug 2019 02:32:00 -0300 Subject: [PATCH 12/15] Listing tool of container --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 23ed01d..5f631d1 100644 --- a/README.md +++ b/README.md @@ -20,4 +20,7 @@ The image was wrote for Security Osint with tools: - OpenVas - The Harvester - Whois + - osrframework + - R3dOv3r + - Buster From 5a466baaf40466bb8699dc3d6162f1daf75b2ddd Mon Sep 17 00:00:00 2001 From: jul10l14 Date: Sat, 3 Aug 2019 19:10:13 -0300 Subject: [PATCH 13/15] :tada: Add InstagramOsint to docker image --- install-osint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install-osint.sh b/install-osint.sh index 4c099f6..75c005d 100644 --- a/install-osint.sh +++ b/install-osint.sh @@ -72,5 +72,8 @@ _run "cd workspace/buster;python3 setup.py install;cd $here" _run 'apk add whois nmap' # Install osrframework _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 From 587a3fda7d612205023ba3b75df1836b77305e89 Mon Sep 17 00:00:00 2001 From: jul10l14 Date: Sat, 3 Aug 2019 19:20:01 -0300 Subject: [PATCH 14/15] Description to readme --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 5f631d1..75ccdc7 100644 --- a/README.md +++ b/README.md @@ -9,18 +9,18 @@ docker run -it scorpionsec/osint:unstable bash # About The image was wrote for Security Osint with tools: - - Operative-framework - - D4N155 - - Sherlock - - PhoneInfoga - - Karma - - SE Toolkit - - Recon-ng - - SE Toolkit - - OpenVas - - The Harvester - - Whois - - osrframework - - R3dOv3r - - Buster + - 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__ From ca33f7a05e25c330c0b399509631008a5cfa9679 Mon Sep 17 00:00:00 2001 From: Julio Lira Date: Sat, 3 Aug 2019 16:23:24 -0300 Subject: [PATCH 15/15] Delete teste.py --- teste.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 teste.py diff --git a/teste.py b/teste.py deleted file mode 100644 index 519a782..0000000 --- a/teste.py +++ /dev/null @@ -1,30 +0,0 @@ -import requests -from bs4 import BeautifulSoup - -url = "https://globo.com" -ip = "10.10.10.10" -rec_site = requests.get('http://sharingmyip.com/?site='+url) -#print(rec_site.text) - -soup = BeautifulSoup(rec_site.text,'html.parser') -#print("Sites para o IP:\n"+soup.textarea.string) - -''' -for i in range(len(soup.textarea)): - print(soup.textarea.string) -''' -qt_textarea = len(soup('textarea')) -msg_list = ['Site (s) neste endereço','DNS para ','Entradas de DNS relacionadas para'] -#for msg in range(msg_list): -for i in range(qt_textarea): - if (i == 0): - print(msg_list[0]+" "+ip) - print(soup('textarea')[i].string) - elif i == 1: - print(msg_list[1]+" "+url) - print(soup('textarea')[i].string) - elif i == 2: - print(msg_list[2]+" "+url) - print(soup('textarea')[i].string) - else: - print("Aconteceu algo errado :D")