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

Added byp4xx

six2dez441f501dcd04
diff --git a/README.md b/README.md
index 1df7364..b13db14 100644
--- a/README.md
+++ b/README.md
@@ -27,8 +27,8 @@
<a href="https://t.me/joinchat/H5bAaw3YbzzmI5co">
<img src="https://img.shields.io/badge/[email protected]">
</a>
- <a href="https://hub.docker.com/r/six2dez/reconftw">
- <img alt="Docker Cloud Build Status" src="https://img.shields.io/docker/cloud/build/six2dez/reconftw">
+ <a href="https://discord.gg/R5DdXVEdTy">
+ <img src="https://img.shields.io/discord/1048623782912340038.svg?logo=discord">
</a>
</p>
@@ -560,6 +560,7 @@ If you want to contribute to this project, you can do it in multiple ways:
- Take a look at the [wiki](https://github.com/six2dez/reconftw/wiki) section.
- Check [FAQ](https://github.com/six2dez/reconftw/wiki/7.-FAQs) for commonly asked questions.
+- Join our [Discord server](https://discord.gg/R5DdXVEdTy)
- Ask for help in the [Telegram group](https://t.me/joinchat/TO_R8NYFhhbmI5co)
## Support this project
diff --git a/install.sh b/install.sh
index 2cb982f..9bb543d 100755
--- a/install.sh
+++ b/install.sh
@@ -82,6 +82,7 @@ gotools["rush"]="go install github.com/shenwei356/rush@latest"
gotools["enumerepo"]="go install github.com/trickest/enumerepo@latest"
gotools["Web-Cache-Vulnerability-Scanner"]="go install -v github.com/Hackmanit/Web-Cache-Vulnerability-Scanner@latest"
gotools["subfinder"]="go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest"
+gotools["byp4xx"]="go install -v github.com/lobuhi/byp4xx@latest"
declare -A repos
repos["dorks_hunter"]="six2dez/dorks_hunter"
@@ -111,6 +112,7 @@ repos["trufflehog"]="trufflesecurity/trufflehog"
repos["smuggler"]="defparam/smuggler"
repos["Web-Cache-Vulnerability-Scanner"]="Hackmanit/Web-Cache-Vulnerability-Scanner"
repos["regulator"]="cramppet/regulator"
+repos["regulator"]="lobuhi/byp4xx"
printf "\n\n${bgreen}#######################################################################${reset}\n"
printf "${bgreen} reconFTW installer/updater script ${reset}\n\n"
diff --git a/reconftw.cfg b/reconftw.cfg
index bbfa600..67c62f8 100644
--- a/reconftw.cfg
+++ b/reconftw.cfg
@@ -127,7 +127,8 @@ SPRAY=true # Performs password spraying
COMM_INJ=true # Check for command injections with commix
PROTO_POLLUTION=true # Check for prototype pollution flaws
SMUGGLING=true # Check for HTTP request smuggling flaws
-WEBCACHE=true # Check for HTTP request smuggling flaws
+WEBCACHE=true # Check for Web Cache issues
+BYPASSER4XX=true # Check for 4XX bypasses
# Extra features
NOTIFICATION=false # Notification for every function
@@ -169,6 +170,7 @@ DNSVALIDATOR_THREADS=200
INTERLACE_THREADS=10
TLSX_THREADS=1000
XNLINKFINDER_DEPTH=3
+BYP4XX_THREADS=20
# Rate limits
HTTPX_RATELIMIT=150
diff --git a/reconftw.sh b/reconftw.sh
index f8f82e4..fd97171 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -110,6 +110,7 @@ function tools_installed(){
which trufflehog &>/dev/null || { printf "${bred} [*] trufflehog [NO]${reset}\n${reset}"; allinstalled=false;}
which Web-Cache-Vulnerability-Scanner &>/dev/null || { printf "${bred} [*] Web-Cache-Vulnerability-Scanner [NO]${reset}\n"; allinstalled=false;}
which subfinder &>/dev/null || { printf "${bred} [*] subfinder [NO]${reset}\n${reset}"; allinstalled=false;}
+ which byp4xx &>/dev/null || { printf "${bred} [*] byp4xx [NO]${reset}\n${reset}"; allinstalled=false;}
if [ "${allinstalled}" = true ]; then
printf "${bgreen} Good! All installed! ${reset}\n\n"
@@ -1846,6 +1847,28 @@ function command_injection(){
fi
}
+function 4xxbypass(){
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$BYPASSER4XX" = true ]; then
+ if [[ $(cat fuzzing/fuzzing_full.txt 2>/dev/null | grep -E '^4' | grep -Ev '^404' | cut -d ' ' -f3 | wc -l) -le 1000 ]] || [ "$DEEP" = true ]; then
+ start_func "403 bypass"
+ cat $dir/fuzzing/fuzzing_full.txt 2>/dev/null | grep -E '^4' | grep -Ev '^404' | cut -d ' ' -f3 > $dir/.tmp/403test.txt
+ cd "$tools/byp4xx" || { echo "Failed to cd directory in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }
+ byp4xx -threads $BYP4XX_THREADS $dir/.tmp/403test.txt > $dir/.tmp/byp4xx.txt
+ cd "$dir" || { echo "Failed to cd directory in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }
+ [ -s ".tmp/byp4xx.txt" ] && cat .tmp/dirdar.txt | anew -q vulns/byp4xx.txt
+ end_func "Results are saved in vulns/byp4xx.txt" ${FUNCNAME[0]}
+ else
+ notification "Too many urls to bypass, skipping" warn
+ fi
+ else
+ if [ "$BYPASSER4XX" = false ]; then
+ printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"
+ else
+ printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"
+ fi
+ fi
+}
+
function prototype_pollution(){
if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$PROTO_POLLUTION" = true ] ; then
start_func ${FUNCNAME[0]} "Prototype Pollution checks"