EyeWitness icon indicating copy to clipboard operation
EyeWitness copied to clipboard

Getting error while trying to load urls from files

Open infosecsecurity opened this issue 8 years ago • 9 comments

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

infosecsecurity avatar Mar 02 '18 16:03 infosecsecurity

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.

ChrisTruncer avatar Mar 04 '18 15:03 ChrisTruncer

Closing since I don't have a response. Please respond with additional details if this should be reopened.

ChrisTruncer avatar Mar 07 '18 02:03 ChrisTruncer

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! screenshot from 2018-03-29 18-19-02

infosecsecurity avatar Mar 29 '18 21:03 infosecsecurity

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.

johan-lindahl avatar Oct 06 '18 11:10 johan-lindahl

You need to give the absolute path of your file for it to work

carhackpils avatar Jan 29 '19 10:01 carhackpils

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

HyggeHacker avatar Apr 04 '19 15:04 HyggeHacker

i run this command but i show the error ERROR: You potentially provided an mal-formed URL!

Karanverma0671 avatar Sep 01 '21 18:09 Karanverma0671

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

muhammadfarras avatar Feb 27 '22 07:02 muhammadfarras

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

ram8537 avatar Jul 18 '22 03:07 ram8537