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

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

Open
digininja opened this issue Jan 10, 2022 · 1 comment
Open

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

digininja opened this issue Jan 10, 2022 · 1 comment
Labels

Comments

@digininja
Copy link
Contributor

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
Copy link
Collaborator

Relkci commented May 20, 2024

possibly related #405 #516

@Relkci Relkci added the bug label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants