Is there any way to bruteforce directories from a list of urls using dirb or gobuster?
url contains multiple valid urls, Ive tried using a while statement but no luck, its giving me an error after successfully scanning the first url in the file.
This error message contains the input URL: ual/images/. This URL is invalid. the URL must start with http: or with https:. This URL starts with the text ual
Your should check the content of the file url. The script looks ok. I have checked it with a simple list of 3 URLs and it works.
You can call your script like
bash -x SCRIPTNAME
The option -x instructs the bash interpreter to print out all commands and their arguments before they are executed. Then you can read the arguments of the dirb tool.
The URL http:///images/ contains no host name. The interpretation of this URL depends on the application. The tool curl ignores the third slash and tries to connect host “images”. The tool dirb uses internal the curl library. So also the tool dirb tries to connect the host images.
But unable to resolve the host “images” is not the error message. dirb terminates before.
I checked the source code of dirb link. The “FATAL: Invalid URL format …” error messages is printed after checking http:// or https://.