Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--single fails if proxy can't see site #622

Open
digininja opened this issue Aug 30, 2023 · 1 comment
Open

--single fails if proxy can't see site #622

digininja opened this issue Aug 30, 2023 · 1 comment

Comments

@digininja
Copy link
Contributor

OS Used - ALL Information (architecture, linux flavor, etc.)

Kali fully up to date

Error you are encountering

The background, I was trying to test an install against a local Nessus instance so I ran this:

$ ./EyeWitness.py  --single https://localhost:8834 -d /tmp/ness

This should create a report in /tmp/ness but instead it dumped the HTML from the page to screen.

It created /tmp/ness and put the source and screenshot in it, but it didn't create the report.html file.

When the script runs I see:

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

Message: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2020 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" CONTENT="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<style type="text/css"><!--

--- SNIP ---


<hr>
<div id="footer">
<p>Generated Wed, 30 Aug 2023 08:54:10 GMT by xxx (squid/5.2)</p>
<!-- ERR_CONNECT_FAIL -->
</div>
</body></html>

The mention of squid made me realise that I'd ran this earlier in the same session so I could get EW installed:

export http_proxy=http://localhost:3128
export https_proxy=http://localhost:3128

So EW is obeying the export and trying to use the proxy, the proxy is working in a way that means it can't see the local box (long story) and so EW can't get the screenshot.

Instead of failing gracefully, it dumps the HTML from the proxy to screen but still manages to create the report directory.

I can help create a test environment for this if you need one.

@Relkci
Copy link
Collaborator

Relkci commented May 20, 2024

#623 related; this is already in a Try: where the driver in a thread is giving a stdout. Fix might be to handle the thread differently to catch the error, or -- silence stdout inside the Try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants