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

fix(deleteoutscoped): if string is not null

osxtesta18b76325353
diff --git a/reconftw.sh b/reconftw.sh
index 44d9f41..952d084 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1931,15 +1931,15 @@ function webcache(){
###############################################################################################################
function deleteOutScoped(){
- if [ -z "$1" ]; then
+ if [ ! -z "$1" ]; then
cat $1 | while read outscoped
do
- if grep -q "^[*]" <<< $outscoped
+ if grep -q "^[*]" <<< $outscoped
then
outscoped="${outscoped:1}"
- sed -i /"$outscoped$"/d $2
+ sed -i /"$outscoped$"/d $2
else
- sed -i /$outscoped/d $2
+ sed -i /$outscoped/d $2
fi
done
fi