Getting error while trying to load urls from files
OS Used - ALL Information (architecture, linux flavor, etc.)
Kali
Pastebin link to error you are encountering
Expected behavior (vs. what you encountered)
Any additional information
Getting this error while trying to load targets from .txt file or nmap .xml output
ERROR: You didn't give me a valid file name! I need a valid file containing URLs!
The urls file has one url per line
site.com dev.site.com prod.site.com
Hi,
You didn’t provide enough information for me to help with this. Please provide a pastebin link to your console output or give more information for me to recreate this.
Thanks
On Mar 2, 2018, at 9:12 AM, Júlio César [email protected] wrote:
OS Used - ALL Information (architecture, linux flavor, etc.)
Kali
Pastebin link to error you are encountering
Expected behavior (vs. what you encountered)
Any additional information
Getting this error while trying to load targets from .txt file or nmap .xml output
ERROR: You didn't give me a valid file name! I need a valid file containing URLs!
The urls file has one url per line
site.com dev.site.com prod.site.com
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
Closing since I don't have a response. Please respond with additional details if this should be reopened.
Sorry for the delay.
So I'm running this command: eyewitness --prepend-https -f list --all-protocols --headless
and i'm getting is this error: ERROR: You didn't give me a valid file name! I need a valid file containing URLs!

The problem could be that you need the full path to the file such as /root/mydir/list, I had this issue on Kali linux.
You need to give the absolute path of your file for it to work
I have the same issue with docker, I am giving the full path to the file.
Example command:
sudo docker run --rm -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp.X11-unix -v ~/Data/RCS/results:/tmp/EyeWitness eyewitness --all-protocols -f /tmp/EyeWitness/ips.txt --no-dns --timeout 6 --threads 12
ERROR: You didn't give me a valid file name! I need a valid file containing URLs!
But I can cat /tmp/EyeWitness/ips.txt
i run this command but i show the error ERROR: You potentially provided an mal-formed URL!
I have faced this problem. Based on docker, if you want add all files and folder, you have to using absolute path and a dot.
docker run \
--rm \
-it \
-v $(pwd)/.:/tmp/EyeWitness \
eyewitness \
-f /tmp/EyeWitness/urls
After I adding dot sign, EyeWitness is runs
Had the issue with Docker and got it working by binding the txt file with the URLs to the Docker container.
This the Docker Compose I used to get it running (replace 'ENTER-DIRECTORY-YOU-WANT-OUTPUT-FILES-IN', 'ENTER-FULL-PATH-OF-YOUR-URLS-TXT-FILE' accordingly):
eyewitness-docker-compose.yaml
services:
eyewitness-container:
image: eyewitness
volumes:
- ENTER-DIRECTORY-YOU-WANT-OUTPUT-FILES-IN:/tmp/EyeWitness
- type: bind
source: ENTER-FULL-PATH-OF-YOUR-URLS-TXT-FILE
target: /tmp/EyeWitness/urls.txt
command: --web -f /tmp/EyeWitness/urls.txt
Then run it with: docker compose -f eyewitness-docker-compose.yaml up