wpscanteam / wpscan

WPScan WordPress security scanner. Written for security professionals and blog maintainers to test the security of their WordPress websites. Contact us via contact@wpscan.com
https://wpscan.com/wordpress-cli-scanner
Other
8.37k stars 1.24k forks source link

Prompt "Do you want to update now?" not printed #1827

Open gnuletik opened 5 months ago

gnuletik commented 5 months ago

Subject of the issue

When running wpscan with an old database, the following message should be printed:

https://github.com/wpscanteam/wpscan/blob/2613fdcc6b22ac7581f3aeb7f33447e3d8417f6c/app/controllers/core.rb#L40

Your environment

Steps to reproduce

To reproduce, I set on old date in the ~/.wpscan/db/.last_update file.

Expected behavior

The message should have been printed.

It seems to be the same issue as https://github.com/wpscanteam/wpscan/issues/1724 but no solution was found.

Actual behavior

As you can see, the message is not printed.

$ wpscan --url https://localhost
_______________________________________________________________
         __          _______   _____
         \ \        / /  __ \ / ____|
          \ \  /\  / /| |__) | (___   ___  __ _ _ __ ®
           \ \/  \/ / |  ___/ \___ \ / __|/ _` | '_ \
            \  /\  /  | |     ____) | (__| (_| | | | |
             \/  \/   |_|    |_____/ \___|\__,_|_| |_|

         WordPress Security Scanner by the WPScan Team
                         Version 3.8.25
       Sponsored by Automattic - https://automattic.com/
       @_WPScan_, @ethicalhack3r, @erwan_lr, @firefart
_______________________________________________________________

[i] It seems like you have not updated the database for some time.

What have you already tried