RedSiege / EyeWitness

EyeWitness is designed to take screenshots of websites, provide some server header info, and identify default credentials if possible.
https://www.christophertruncer.com/eyewitness-usage-guide/
GNU General Public License v3.0
5.02k stars 851 forks source link

Next Page showing when shouldn't due to internal page count bug #554

Open digininja opened 2 years ago

digininja commented 2 years ago

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

Kali / Python

Pastebin link to error you are encountering

Expected behavior (vs. what you encountered)

No "Next Page" link on one page report

Any additional information

I tried to fix it by changing line 225 to this:

            if i == 0 and num_pages > 1:

But on my one page report, num_pages is set to 3 for some reason.

I made this change to confirm it:

            headfoot += "<center>"
            print("in sort data function")
            print("num_pages " + str(num_pages))
            if i == 0 and num_pages > 1:
                headfoot += ("<a href=\"report_page2.html\" id=\"next\"> Next Page "
                             "</a></center>")
Starting Web Requests (15 Hosts)
Attempting to screenshot http://1.2.0.115
Attempting to screenshot https://1.2.0.115
Attempting to screenshot http://1.2.0.169
Attempting to screenshot https://1.2.0.169
Attempting to screenshot http://1.2.0.210
Attempting to screenshot https://1.2.0.210
Attempting to screenshot https://1.2.0.236
[*] WebDriverError when connecting to https://1.2.0.236
Attempting to screenshot https://1.2.1.47
[*] WebDriverError when connecting to https://1.2.1.47
Attempting to screenshot http://1.2.1.214
Attempting to screenshot https://1.2.1.214
Attempting to screenshot http://1.2.1.235
Attempting to screenshot https://1.2.1.235
Attempting to screenshot https://1.2.2.60:636
[*] WebDriverError when connecting to https://1.2.2.60:636
Attempting to screenshot https://1.2.2.60:3269
[*] WebDriverError when connecting to https://1.2.2.60:3269
Attempting to screenshot https://1.2.3.233:636
[*] WebDriverError when connecting to https://1.2.3.233:636
[*] Completed 15 out of 15 services
in sort data function
num_pages 3
Finished in 30.682964324951172 seconds

[*] Done! Report written in the blah folder!
Would you like to open the report now? [Y/n]

I'll see if I can work out why, but passing to you for now in case I don't get time.

Relkci commented 6 months ago

possibly related #405 #516