im a begginer at bash scripting, i was able to do a subdomain bruteforce but now im stuck at directory bruteforce, im using "curl" to do a get request and get a response (200,400,301) but im not able to make it work
domain=$1
curl=$(curl --write-out %{http_code} --silent --output /dev/null $domain/$dir)
while read dir;do
$curl
if [ $curl != 400 ];then
echo "Dominios encontrados: " $domain/$dir
fi
done < listadiretorios.txt
I know its too stupid but ive already looked for answers and did not find anything :)