Skip to content

I keep getting the error: "Message: Invalid Host header localhost:..." #700

Open
@dave38R

Description

@dave38R

Hi,
I thought I had fixed the issue in my last post but actually no.
So here's my situation, I downloaded EyeWitness on my arch linux computer with the following commands:

git clone https://github.com/RedSiege/EyeWitness.git
uv venv --python 3.13
source .venv/bin/activate
cd EyeWitness/Python/setup
uv pip install -r requirements.txt

I indicate the correct python interpreter for all the python files:

cd ../
nano *.py

By replacing the shebang with:

#!/home/dvr/tools/EyeWitness/Python/.venv/bin/python3

I check that everything works with:

./EyeWitness.py -help

And it works fine. I then want to enumerate websites with the following subdomains.txt file like:

blog.inlanefreight.local
careers.inlanefreight.local
dev.inlanefreight.local
...

And I check that I can indeed reach these urls:

╭─ ~/Desktop/AEN2/web_research                                                                 17:46:18
╰─❯ curl -s -I http://blog.inlanefreight.local/         
HTTP/1.1 200 OK
Date: Thu, 17 Apr 2025 15:47:10 GMT
Server: Apache/2.4.53 (Debian)
X-Powered-By: PHP/8.0.19
Cache-Control: must-revalidate, no-cache, private
X-Drupal-Dynamic-Cache: MISS
X-UA-Compatible: IE=edge
Content-language: en
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Permissions-Policy: interest-cohort=()
Expires: Sun, 19 Nov 1978 05:00:00 GMT
X-Generator: Drupal 9 (https://www.drupal.org)
X-Drupal-Cache: HIT
Content-Type: text/html; charset=UTF-8
Via: 1.1 blog.inlanefreight.local

╭─ ~/Desktop/AEN2/web_research                                                                 17:47:13
╰─❯ curl -s -I http://dev.inlanefreight.local/ 
HTTP/1.1 200 OK
Date: Thu, 17 Apr 2025 15:47:22 GMT
Server: Apache/2.4.41 (Ubuntu)
Content-Type: text/html; charset=UTF-8
Via: 1.1 dev.inlanefreight.local

╭─ ~/Desktop/AEN2/web_research                                                                 17:47:24
╰─❯ curl -s -I http://careers.inlanefreight.local/
HTTP/1.1 200 OK
Date: Thu, 17 Apr 2025 15:47:30 GMT
Server: Werkzeug/2.1.2 Python/3.8.13
Content-Type: text/html; charset=utf-8
Content-Length: 51806
Via: 1.1 careers.inlanefreight.local

As you can see these URLs can be reached correctly, I get 200 responses. Now let's try to launch EyeWitness:

~/tools/EyeWitness/Python/EyeWitness.py -f subdomains.txt -d eyewitness_report

And I get the following output:

################################################################################
#                                  EyeWitness                                  #
################################################################################
#           Red Siege Information Security - https://www.redsiege.com          #
################################################################################

Starting Web Requests (10 Hosts)
Message: Invalid Host header localhost:60779

Message: Invalid Host header localhost:45027

Message: Invalid Host header localhost:37841

Message: Invalid Host header localhost:48379

Message: Invalid Host header localhost:47711

Message: Invalid Host header localhost:35231

Message: Invalid Host header localhost:41165

Message: Invalid Host header localhost:40303

Message: Invalid Host header localhost:57337

Message: Invalid Host header localhost:46867

Finished in 13.85072922706604 seconds
[*] No report files found to open, perhaps no hosts were successful

Does anybody know how to fix or even troubleshoot this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions