Skip to content

reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities

New Docker

six2dez4d13e6553818
diff --git a/Docker/Dockerfile b/Docker/Dockerfile
new file mode 100644
index 0000000..5b70f00
--- /dev/null
+++ b/Docker/Dockerfile
@@ -0,0 +1,43 @@
+FROM kalilinux/kali-rolling
+
+ENV COLLAB_SERVER='XXXXXXXXXX'
+ENV XSS_SERVER='XXXXXXXXXXX'
+ENV SHODAN_API_KEY='XXXXXXXXXXXXXX'
+ENV GOROOT=/usr/local/go
+ENV GOPATH=$HOME/go
+ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH
+
+LABEL org.label-schema.name='reconftw' \
+ org.label-schema.description='A simple script for full recon' \
+ org.label-schema.usage='https://github.com/six2dez/reconftw' \
+ org.label-schema.url='https://github.com/six2dez/reconftw' \
+ org.label-schema.docker.cmd.devel='docker run --rm -ti six2dez/reconftw' \
+ MAINTAINER="six2dez"
+
+RUN echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" > /etc/apt/sources.list && \
+ echo "deb-src http://http.kali.org/kali kali-rolling main contrib non-free" >> /etc/apt/sources.list
+
+ENV DEBIAN_FRONTEND noninteractive
+
+RUN set -x \
+ && apt-get -yqq update \
+ && apt-get -yqq dist-upgrade \
+ && apt-get clean
+
+RUN apt-get --yes install git wget \
+ && mkdir -p /root/Tools \
+ && cd /root/Tools \
+ && git clone https://github.com/six2dez/reconftw.git \
+ && cd reconftw \
+ && ./install.sh \
+ && ./install.sh
+
+ADD github_tokens.txt /root/Tools/.github_tokens
+ADD subfinder_config.yaml /root/.config/subfinder/config.yaml
+ADD amass_config.ini /root/.config/amass/config.ini
+ADD notify.conf /root/.config/notify/notify.conf
+
+RUN shodan init $SHODAN_API_KEY
+
+CMD ["bash"]
+WORKDIR /root/Tools/reconftw
\ No newline at end of file
diff --git a/Docker/amass_config.ini b/Docker/amass_config.ini
new file mode 100644
index 0000000..7dab150
--- /dev/null
+++ b/Docker/amass_config.ini
@@ -0,0 +1,268 @@
+# Copyright 2017-2020 Jeff Foley. All rights reserved.
+# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+# Should results only be collected passively and without DNS resolution? Not recommended.
+#mode = passive
+# Would you like to use active techniques that communicate directly with the discovered assets,
+# such as pulling TLS certificates from discovered IP addresses and attempting DNS zone transfers?
+#mode = active
+
+# The directory that stores the Cayley graph database and other output files
+# The default for Linux systems is: $HOME/.config/amass
+#output_directory = amass
+
+# Another location (directory) where the user can provide ADS scripts to the engine.
+#scripts_directory =
+
+# The maximum number of DNS queries that can be performed concurrently during the enumeration.
+#maximum_dns_queries = 20000
+
+# DNS resolvers used globally by the amass package.
+#[resolvers]
+#monitor_resolver_rate = true
+#resolver = 1.1.1.1 ; Cloudflare
+#resolver = 8.8.8.8 ; Google
+#resolver = 64.6.64.6 ; Verisign
+#resolver = 74.82.42.42 ; Hurricane Electric
+#resolver = 1.0.0.1 ; Cloudflare Secondary
+#resolver = 8.8.4.4 ; Google Secondary
+#resolver = 64.6.65.6 ; Verisign Secondary
+#resolver = 77.88.8.1 ; Yandex.DNS Secondary
+
+[scope]
+# The network infrastructure settings expand scope, not restrict the scope.
+# Single IP address or range (e.g. a.b.c.10-245)
+#address = 192.168.1.1
+#cidr = 192.168.1.0/24
+#asn = 26808
+#port = 80
+port = 443
+#port = 8080
+
+# Root domain names used in the enumeration. The findings are limited by the root domain names provided.
+#[scope.domains]
+#domain = owasp.org
+#domain = appsecusa.org
+#domain = appsec.eu
+#domain = appsec-labs.com
+
+# Are there any subdomains that are out of scope?
+#[scope.blacklisted]
+#subdomain = education.appsec-labs.com
+#subdomain = 2012.appsecusa.org
+
+# The graph database discovered DNS names, associated network infrastructure, results from data sources, etc.
+# This information is then used in future enumerations and analysis of the discoveries.
+#[graphdbs]
+#local_database = true ; Set this to false to disable use of the local database.
+
+# postgres://[username:password@]host[:port]/database-name?sslmode=disable of the PostgreSQL
+# database and credentials. Sslmode is optional, and can be disable, require, verify-ca, or verify-full.
+#[graphdbs.postgres]
+#primary = false ; Specify which graph database is the primary db, or the local database will be selected.
+#url = "postgres://[username:password@]host[:port]/database-name?sslmode=disable"
+#options="connect_timeout=10"
+
+# MqSQL database and credentials URL format:
+# [username:password@]tcp(host[:3306])/database-name?timeout=10s
+#[graphdbs.mysql]
+#url = [username:password@]tcp(host[:3306])/database-name?timeout=10s
+
+# Settings related to DNS name brute forcing.
+#[bruteforce]
+#enabled = true
+#recursive = true
+# Number of discoveries made in a subdomain before performing recursive brute forcing: Default is 1.
+#minimum_for_recursive = 1
+#wordlist_file = /usr/share/wordlists/all.txt
+#wordlist_file = /usr/share/wordlists/all.txt # multiple lists can be used
+
+# Would you like to permute resolved names?
+#[alterations]
+#enabled = true
+# edit_distance specifies the number of times a primitive edit operation will be
+# performed on a name sample during fuzzy label searching.
+#edit_distance = 1 ; Setting this to zero will disable this expensive feature.
+#flip_words = true # test-dev.owasp.org -> test-prod.owasp.org
+#flip_numbers = true # test1.owasp.org -> test2.owasp.org
+#add_words = true # test.owasp.org -> test-dev.owasp.org
+#add_numbers = true # test.owasp.org -> test1.owasp.org
+# Multiple lists can be used.
+#wordlist_file = /usr/share/wordlists/all.txt
+#wordlist_file = /usr/share/wordlists/all.txt
+
+[data_sources]
+# When set, this time-to-live is the minimum value applied to all data source caching.
+minimum_ttl = 1440 ; One day
+
+# Are there any data sources that should be disabled?
+#[data_sources.disabled]
+#data_source = Ask
+#data_source = Exalead
+#data_source = IPv4Info
+
+# Provide data source configuration information.
+# See the following format:
+#[data_sources.SOURCENAME] ; The SOURCENAME must match the name in the data source implementation.
+#ttl = 4320 ; Time-to-live value sets the number of minutes that the responses are cached.
+# Unique identifier for this set of SOURCENAME credentials.
+# Multiple sets of credentials can be provided and will be randomly selected.
+#[data_sources.SOURCENAME.CredentialSetID]
+#apikey = ; Each data source uses potentially different keys for authentication.
+#secret = ; See the examples below for each data source.
+#username =
+#password =
+
+# https://otx.alienvault.com (Free)
+#[data_sources.AlienVault]
+#[data_sources.AlienVault.Credentials]
+#apikey =
+
+# https://app.binaryedge.com (Free)
+#[data_sources.BinaryEdge]
+#ttl = 10080
+#[data_sources.BinaryEdge.Credentials]
+#apikey =
+
+# https://c99.nl (Paid)
+#[data_sources.C99]
+#ttl = 4320
+#[data_sources.C99.account1]
+#apikey =
+#[data_sources.C99.account2]
+#apikey =
+
+# https://censys.io (Free)
+#[data_sources.Censys]
+#ttl = 10080
+#[data_sources.Censys.Credentials]
+#apikey =
+#secret =
+
+# https://chaos.projectdiscovery.io (Free-InviteOnly)
+#[data_sources.Chaos]
+#ttl = 4320
+#[data_sources.Chaos.Credentials]
+#apikey =
+
+# https://cloudflare.com (Free)
+#[data_sources.Cloudflare]
+#[data_sources.Cloudflare.Credentials]
+#apikey =
+
+# Closed Source Invite Only
+#[data_sources.CIRCL]
+#[data_sources.CIRCL.Credentials]
+#username =
+#password =
+
+# https://dnsdb.info (Paid)
+#[data_sources.DNSDB]
+#ttl = 4320
+#[data_sources.DNSDB.Credentials]
+#apikey =
+
+# https://developer.facebook.com (Free)
+# Look here for how to obtain the Facebook credentials:
+# https://goldplugins.com/documentation/wp-social-pro-documentation/how-to-get-an-app-id-and-secret-key-from-facebook/
+#[data_sources.FacebookCT]
+#ttl = 4320
+#[data_sources.FacebookCT.app1]
+#apikey =
+#secret =
+#[data_sources.FacebookCT.app2]
+#apikey =
+#secret =
+
+# https://github.com (Free)
+#[data_sources.GitHub]
+#ttl = 4320
+#[data_sources.GitHub.accountname]
+#apikey =
+
+# https://networksdb.io (Free)
+#[data_sources.NetworksDB]
+#[data_sources.NetworksDB.Credentials]
+#apikey =
+
+# https://passivetotal.com (Free)
+#[data_sources.PassiveTotal]
+#ttl = 10080
+#[data_sources.PassiveTotal.Credentials]
+#username =
+#apikey =
+
+# https://recon.dev (Freemium)
+#[data_sources.ReconDev]
+#[data_sources.ReconDev.free]
+#apikey =
+#[data_sources.ReconDev.paid]
+#apikey =
+
+# https://securitytrails.com (Free)
+#[data_sources.SecurityTrails]
+#ttl = 1440
+#[data_sources.SecurityTrails.Credentials]
+#apikey =
+
+# https://shodan.io (Free)
+#[data_sources.Shodan]
+#ttl = 10080
+#[data_sources.Shodan.Credentials]
+#apikey =
+
+# https://spyse.com (Paid/Free-trial)
+#[data_sources.Spyse]
+#ttl = 4320
+#[data_sources.Spyse.Credentials]
+#apikey =
+
+# https://threatbook.cn (Paid)
+#[data_sources.ThreatBook]
+#[data_sources.ThreatBook.account1]
+#apikey=
+
+# https://developer.twitter.com (Free)
+# Provide your Twitter App Consumer API key and Consumer API secrety key
+#[data_sources.Twitter]
+#[data_sources.Twitter.account1]
+#apikey =
+#secret =
+#[data_sources.Twitter.account2]
+#apikey =
+#secret =
+
+# https://umbrella.cisco.com (Paid-Enterprise)
+# The apikey must be an API access token created through the Investigate management UI
+#[data_sources.Umbrella]
+#[data_sources.Umbrella.Credentials]
+#apikey =
+
+# https://urlscan.io (Free)
+# URLScan can be used without an API key, but the key allows new submissions to be made
+#[data_sources.URLScan]
+#[data_sources.URLScan.Credentials]
+#apikey =
+
+# https://virustotal.com (Free)
+#[data_sources.VirusTotal]
+#ttl = 10080
+#[data_sources.VirusTotal.Credentials]
+#apikey =
+
+# https://whoisxmlapi.com (Free)
+#[data_sources.WhoisXML]
+#[data_sources.WhoisXML.Credentials]
+#apikey =
+
+# https://zetalytics.com (Paid)
+#[data_sources.ZETAlytics]
+#ttl = 1440
+#[data_sources.ZETAlytics.Credentials]
+#apikey =
+
+#[data_sources.ZoomEye]
+#ttl = 1440
+#[data_sources.ZoomEye.Credentials]
+#username =
+#password =
\ No newline at end of file
diff --git a/Docker/github_tokens.txt b/Docker/github_tokens.txt
new file mode 100644
index 0000000..5cdb70b
--- /dev/null
+++ b/Docker/github_tokens.txt
@@ -0,0 +1,6 @@
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
\ No newline at end of file
diff --git a/Docker/notify.conf b/Docker/notify.conf
new file mode 100644
index 0000000..acc8d59
--- /dev/null
+++ b/Docker/notify.conf
@@ -0,0 +1,25 @@
+# burp_biid: "123456798"
+# slack_webhook_url: https://a.b.c/slack
+# slack_username: test
+# slack_channel: test
+# slack: true
+# discord_webhook_url: https://discord.com/api/webhooks/XXXX/XXXXX
+# discord_username: whatevername
+# discord_avatar: https://whateverurl.tld/avatar.png
+# discord: true
+# telegram_apikey: "XXXXXX:XXXXXXXXXX"
+# telegram_chat_id: "XXXXXXXX"
+# telegram: true
+# interval: 2
+# http_message: |-
+# The collaborator server received an {{protocol}} request from {{from}} at {{time}}:
+# ```
+# {{request}}
+# {{response}}
+# ```
+# dns_message: |-
+# The collaborator server received a DNS lookup of type {{type}} for the domain name {{domain}} from {{from}} at {{time}}:
+# ```
+# {{request}}
+# ```
+# cli_message: '{{data}}'
diff --git a/Docker/subfinder_config.yaml b/Docker/subfinder_config.yaml
new file mode 100644
index 0000000..3cc44aa
--- /dev/null
+++ b/Docker/subfinder_config.yaml
@@ -0,0 +1,105 @@
+resolvers:
+ - 1.1.1.1
+ - 1.0.0.1
+ - 8.8.8.8
+ - 8.8.4.4
+ - 9.9.9.9
+ - 9.9.9.10
+ - 77.88.8.8
+ - 77.88.8.1
+ - 208.67.222.222
+ - 208.67.220.220
+sources:
+ - alienvault
+ - anubis
+ - bufferover
+ - cebaidu
+ - certspotter
+ - certspotterold
+ - censys
+ - chaos
+ - crtsh
+ - dnsdumpster
+ - hackertarget
+ - intelx
+ - ipv4info
+ - passivetotal
+ - robtex
+ - riddler
+ - securitytrails
+ - shodan
+ - spyse
+ - sublist3r
+ - threatcrowd
+ - threatminer
+ - virustotal
+all-sources:
+ - alienvault
+ - anubis
+ - archiveis
+ - binaryedge
+ - bufferover
+ - cebaidu
+ - censys
+ - certspotter
+ - certspotterold
+ - chaos
+ - commoncrawl
+ - crtsh
+ - dnsdumpster
+ - dnsdb
+ - github
+ - hackertarget
+ - ipv4info
+ - intelx
+ - passivetotal
+ - rapiddns
+ - riddler
+ - recon
+ - robtex
+ - securitytrails
+ - shodan
+ - sitedossier
+ - spyse
+ - sublist3r
+ - threatbook
+ - threatcrowd
+ - threatminer
+ - virustotal
+ - waybackarchive
+ - ximcx
+ - zoomeye
+recursive:
+ - alienvault
+ - binaryedge
+ - bufferover
+ - cebaidu
+ - certspotter
+ - certspotterold
+ - crtsh
+ - dnsdumpster
+ - hackertarget
+ - ipv4info
+ - passivetotal
+ - securitytrails
+ - sublist3r
+ - virustotal
+ - ximcx
+binaryedge: []
+censys: []
+certspotter: []
+chaos: []
+dnsdb: []
+github: []
+intelx: []
+passivetotal: []
+recon: []
+robtex: []
+securitytrails: []
+shodan: []
+spyse: []
+threatbook: []
+urlscan: []
+virustotal: []
+zoomeye: []
+subfinder-version: ""
diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index f38d671..0000000
--- a/Dockerfile
+++ /dev/null
@@ -1,22 +0,0 @@
-FROM golang:1.15.7-alpine3.13
-WORKDIR /app
-ENV LANG="en_US.UTF-8" \
- LANGUAGE="en_US:en" \
- LC_ALL="en_US.UTF-8" \
- GOOS="linux" \
- GOPATH="/go" \
- GOROOT="/usr/local/go"
-RUN apk add --update --no-cache bash python3 py3-pip sudo nmap && \
- apk add --no-cache --virtual .install-deps git gcc-go make libc-dev python3-dev libpcap-dev openssl-dev libxslt-dev libffi-dev libxml2-dev jq zlib-dev && \
- echo "Cloning reconftw repository..." && \
- git clone --depth 1 https://github.com/six2dez/reconftw.git -b main . &>/dev/null && \
- chmod +x install.sh && \
- echo "Installing dependencies..." && \
- bash -x ./install.sh &>/dev/null && \
- apk del .install-deps && \
- echo "Build finished!" && \
- echo "To run this container:" && \
- echo "" && \
- echo "docker run --rm reconftw/reconftw"
-ADD . /app/
-ENTRYPOINT ["/app/reconftw.sh"]
diff --git a/install.sh b/install.sh
index 8046997..4a9d70d 100755
--- a/install.sh
+++ b/install.sh
@@ -115,7 +115,7 @@ fi
dir=~/Tools
eval pip3 install -r requirements.txt $DEBUG_STD
-printf "${bgreen} Requirements installed\n\nInstallation begins!\n\n${reset}"
+printf "${bgreen} Requirements installed\n\n Installation begins!\n\n${reset}"
eval go get -v github.com/tomnomnom/gf $DEBUG_STD
eval go get -v github.com/tomnomnom/qsreplace $DEBUG_STD
eval GO111MODULE=on go get -v github.com/OWASP/Amass/v3/... $DEBUG_STD
@@ -181,7 +181,7 @@ fi
$SUDO chmod 755 /usr/local/bin/findomain
cd $dir/massdns; eval make $DEBUG_STD
-$SUDO cp $dir/massdns/bin/massdns /usr/bin/
+$SUDO cp $dir/massdns/bin/massdns /usr/local/bin/
cd $dir/Interlace && eval $SUDO python3 setup.py install $DEBUG_STD
cd $dir/LinkFinder && eval $SUDO python3 setup.py install $DEBUG_STD
@@ -202,14 +202,14 @@ eval wget -O permutations_list.txt https://gist.githubusercontent.com/six2dez/ff
eval wget -O ssrf.py https://gist.githubusercontent.com/h4ms1k/adcc340495d418fcd72ec727a116fea2/raw/ea0774de5e27f9bc855207b175249edae2e9ccef/asyncio_ssrf.py $DEBUG_STD
eval wget -O fuzz_wordlist.txt https://raw.githubusercontent.com/six2dez/OneListForAll/main/onelistforallmicro.txt $DEBUG_STD
eval wget -O lfi_wordlist.txt https://gist.githubusercontent.com/detonxx/a885ce7dd64a7139cb6f5b6860499ba8/raw/f91e76e3f8b1649f389d4fea9c44f360a5b76890/LFI-payloads.txt $DEBUG_STD
-eval wget -nc -O ~/.config/notify/notify.conf https://gist.githubusercontent.com/six2dez/23a996bca189a11e88251367e6583053/raw/a66c4d8cf47a3bc95f5e9ba84773428662ea760c/notify_sample.conf $DEBUG_STD
+eval wget -nc -O ~/.config/notify/notify.conf https://gist.githubusercontent.com/six2dez/23a996bca189a11e88251367e6583053/raw/a66c4d8cf47a3bc95f5e9ba84773428662ea760c/notify_sample.conf $DEBUG_ERROR
sed -i 's/^miscellaneous/#miscellaneous/' ~/nuclei-templates/.nuclei-ignore
#stripping all Go binaries
eval strip -s $HOME/go/bin/* $DEBUG_STD
-printf "${yellow} Remember set your api keys:\n - amass (~/.config/amass/config.ini)\n - subfinder (~/.config/subfinder/config.yaml)\n - GitHub (${dir}/.github_tokens)\n - favup (shodan init SHODANPAIDAPIKEY)\n - SSRF Server (COLLAB_SERVER env var) \n - Blind XSS Server (XSS_SERVER env var)\n\n${reset}"
+printf "${yellow} Remember set your api keys:\n - amass (~/.config/amass/config.ini)\n - subfinder (~/.config/subfinder/config.yaml)\n - GitHub (~/Tools/.github_tokens)\n - favup (shodan init SHODANPAIDAPIKEY)\n - SSRF Server (COLLAB_SERVER env var) \n - Blind XSS Server (XSS_SERVER env var)\n\n${reset}"
printf "${bgreen} Finished!${reset}\n\n"
printf "\n\n${bgreen}#######################################################################\n"