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

Testssl only in deep mode, shodan docker fix, and Docker go installation

six2dez6a81b241251a
diff --git a/Docker/Dockerfile b/Docker/Dockerfile
index e6f577d..eaf0442 100644
--- a/Docker/Dockerfile
+++ b/Docker/Dockerfile
@@ -7,6 +7,8 @@ ENV XSS_SERVER='XXXXXXXXXXX'
# Change this
ENV SHODAN_API_KEY='XXXXXXXXXXXXXX'
+
+
# DON'T CHANGE THIS
ENV GOROOT=/usr/local/go
ENV GOPATH=$HOME/go
@@ -29,12 +31,17 @@ RUN set -x \
&& apt-get -yqq dist-upgrade \
&& apt-get clean
-RUN apt-get --yes install git wget \
- && mkdir -p /root/Tools \
+RUN apt-get --yes install git wget
+
+RUN LATEST_GO=$(wget -qO- https://golang.org/dl/ | grep -oP 'go([0-9\.]+)\.linux-amd64\.tar\.gz' | head -n 1 | grep -oP 'go[0-9\.]+' | grep -oP '[0-9\.]+' | head -c -2) &&\
+ wget --quiet https://dl.google.com/go/go$LATEST_GO.linux-amd64.tar.gz &&\
+ tar -C /usr/local -xzf go$LATEST_GO.linux-amd64.tar.gz &&\
+ cp /usr/local/go/bin/go /usr/bin
+
+RUN 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
@@ -42,7 +49,5 @@ 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/install.sh b/install.sh
index 1f9c393..9b1e787 100755
--- a/install.sh
+++ b/install.sh
@@ -115,6 +115,7 @@ fi
dir=~/Tools
eval pip3 install -r requirements.txt $DEBUG_STD
+eval shodan init $SHODAN_API_KEY $DEBUG_STD
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
diff --git a/reconftw.sh b/reconftw.sh
index 98b259c..605a3f7 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1057,7 +1057,9 @@ all(){
fi
params
xss
- test_ssl
+ if [ "$DEEP" = true ] ; then
+ test_ssl
+ fi
end
done
else
@@ -1085,7 +1087,9 @@ all(){
fi
params
xss
- test_ssl
+ if [ "$DEEP" = true ] ; then
+ test_ssl
+ fi
end
fi
}
@@ -1215,7 +1219,9 @@ while getopts ":hd:-:l:x:vaisxwgto:" opt; do
fi
params
xss
- test_ssl
+ if [ "$DEEP" = true ] ; then
+ test_ssl
+ fi
end
exit
;;