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

Catch porch-pirate RL issue + help menu recovered

six2dez04d1aeb85487
diff --git a/install.sh b/install.sh
index f50f934..512389e 100755
--- a/install.sh
+++ b/install.sh
@@ -248,8 +248,39 @@ function install_tools() {
}
banner
+
+show_help() {
+ echo "Usage: $0 [OPTION]"
+ echo "Run the script with specified options."
+ echo ""
+ echo " -h, --help Display this help and exit."
+ echo " --tools Install the tools before running, useful for upgrading."
+ echo " "
+ echo " **** Without any arguments, the script will update reconftw"
+ echo " and install all dependencies and requirements."
+ exit 0
+}
+
printf "\n${bgreen} reconFTW installer/updater script ${reset}\n\n"
+# Parse command-line arguments
+while [ $# -gt 0 ]; do
+ case "$1" in
+ -h|--help)
+ show_help
+ ;;
+ --tools)
+ install_tools
+ shift
+ ;;
+ *)
+ echo "Error: Invalid argument '$1'"
+ echo "Use -h or --help for usage information."
+ exit 1
+ ;;
+ esac
+done
+
printf "${yellow} This may take time. So, go grab a coffee! ${reset}\n\n"
if [[ $(id -u | grep -o '^0$') == "0" ]]; then
diff --git a/reconftw.sh b/reconftw.sh
index f0a3eea..7f6b877 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -508,10 +508,8 @@ function apileaks() {
start_func ${FUNCNAME[0]} "Scanning for leaks in APIs public directories"
porch-pirate -s "$domain" --dump 2>>"$LOGFILE" > ${dir}osint/postman_leaks.txt || {
- echo "porch-pirate command failed"
- exit 1
+ echo "porch-pirate command failed by rate limit"
}
-
pushd "${tools}/SwaggerSpy" >/dev/null || {
echo "Failed to pushd to ${tools}/SwaggerSpy in ${FUNCNAME[0]} @ line ${LINENO}"
exit 1