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

Colour spinner

six2dez0e0182796f36
diff --git a/install.sh b/install.sh
index ce15a58..441adc3 100755
--- a/install.sh
+++ b/install.sh
@@ -28,16 +28,16 @@ printf "${bgreen} reconFTW installer script ${reset}\n\n"
install_apt(){
eval $SUDO apt install chromium-browser -y $DEBUG_STD
eval $SUDO apt install chromium -y $DEBUG_STD
- eval $SUDO apt install python3 python3-pip ruby git curl libpcap-dev wget python-dev python3-dev dnsutils build-essential xvfb libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev nmap jq python3-shodan apt-transport-https lynx tor -y $DEBUG_STD
+ eval $SUDO apt install python3 python3-pip ruby git curl libpcap-dev wget python-dev python3-dev dnsutils build-essential xvfb libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev nmap jq python3-shodan apt-transport-https lynx tor lolcat -y $DEBUG_STD
eval $SUDO systemctl enable tor $DEBUG_STD
}
install_yum(){
- eval $SUDO yum install python3 python3-pip ruby git curl libpcap-devel chromium wget openssl-devel bind-utils python3-devel lynx libxslt-devel libffi-devel xorg-x11-server-Xvfb libxml2-devel nmap zlib-devel jq python-shodan -y $DEBUG_STD
+ eval $SUDO yum install python3 python3-pip ruby git curl libpcap-devel chromium wget openssl-devel bind-utils python3-devel lynx libxslt-devel libffi-devel xorg-x11-server-Xvfb libxml2-devel nmap zlib-devel jq python-shodan lolcat -y $DEBUG_STD
}
install_pacman(){
- eval $SUDO pacman -Sy install python python-pip dnsutils ruby curl git libpcap nmap chromium wget jq xorg-server-xvfb tor lynx -y $DEBUG_STD
+ eval $SUDO pacman -Sy install python python-pip dnsutils ruby curl git libpcap nmap chromium wget jq xorg-server-xvfb tor lynx lolcat -y $DEBUG_STD
eval $SUDO systemctl enable --now tor.service $DEBUG_STD
}
diff --git a/reconftw.sh b/reconftw.sh
index 6edc7d5..e66246a 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1187,32 +1187,15 @@ function end_subfunc(){
}
function _spinner() {
- # $1 start/stop
- #
- # on start: $2 display message
- # on stop : $2 process exit status
- # $3 spinner function pid (supplied from stop_spinner)
-
- local on_success="DONE"
- local on_fail="FAIL"
- local white="\e[1;37m"
- local green="\e[1;32m"
- local red="\e[1;31m"
- local nc="\e[0m"
case $1 in
start)
-
let column=$(tput cols)-${#2}+2
echo -ne ${2}
-
printf "%${column}s"
- # start spinner
i=1
sp='⣾⣽⣻⢿⡿⣟⣯⣷'
- charwidth=3
delay=${SPINNER_DELAY:-0.15}
-
while :
do
printf "\b${sp:i++%${#sp}:1}"
@@ -1224,7 +1207,8 @@ function _spinner() {
echo "spinner is not running.."
exit 1
fi
- kill -9 $1 > /dev/null 2>&1
+ kill $2 > /dev/null 2>&1
+ echo -en "\b "
;;
*)
echo "invalid argument, try {start/stop}"
@@ -1234,20 +1218,16 @@ function _spinner() {
}
function start_spinner {
- # $1 : msg to display
- _spinner "start" &
- # set global spinner pid
+ _spinner "start" "${1}" | lolcat &
_sp_pid=$!
disown
}
function stop_spinner {
- # $1 : command exit status
- _spinner "stop" $_sp_pid
+ _spinner "stop" $1 $_sp_pid
unset _sp_pid
}
-
function start(){
global_start=`date +%s`