Wpscan: undefined method `days' for 5:Fixnum

Created on 16 Jun 2017  ·  13Comments  ·  Source: wpscanteam/wpscan


    __          _______   _____                  
    \ \        / /  __ \ / ____|                 
     \ \  /\  / /| |__) | (___   ___  __ _ _ __ ®
      \ \/  \/ / |  ___/ \___ \ / __|/ _` | '_ \ 
       \  /\  /  | |     ____) | (__| (_| | | | |
        \/  \/   |_|    |_____/ \___|\__,_|_| |_|

    WordPress Security Scanner by the WPScan Team 
                   Version 2.9.2
      Sponsored by Sucuri - https://sucuri.net

@_WPScan_, @ethicalhack3r, @erwan_lr, pvdl, @_FireFart_


[!] undefined method `days' for 5:Fixnum

I get this error whenever I try to do anything with wpscan.. :/
looks like the other solutions here did not help. Could you guys help me fix that please?
Thanks.
@FireFart @ethicalhack3r

Most helpful comment

@AzizDammak I suggest to use the docker version

All 13 comments

@AzizDammak what's your ruby and gems version?

@FireFart
root@aziz:~/Desktop/wpscan# ruby --version
ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]

And your rubygems version?

it is 2.5.1

How did you install wpscan? Manually? If so please run a bundle update and see if this resolves the problem

i tried to update, it was okay at first but then I got this error:
An error occurred while installing nokogiri (1.8.0), and Bundler cannot
continue.
Make sure that gem install nokogiri -v '1.8.0' succeeds before bundling.

tried to install it but i still get an error:

ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
(ruby-dev is already up to date)

So lemme explain what I did before this happened:
when I try to update wpscan I get an error: Checksums do not match on LICENSE..
So I tried every solution I can find useful here but nothing worked..
So I thought why not delete the LICENSE from the list of the files in the db updater.. and then wpscan updated just fine (you could check the issue I just closed) ..
After that I tried to scan a website to see if wpscan works but it raised this error..

I would really appreciate any help. @FireFart
Thanks.

So it seems you are missing some dependecies. You need to try to fix those first or use the docker image if you don't want to install those libraries by hand

how do I install them by hand? That would be better for me really.

@AzizDammak please refer to the readme

yeah new error after installing the missing dependecies @FireFart .. here:

    __          _______   _____                  
    \ \        / /  __ \ / ____|                 
     \ \  /\  / /| |__) | (___   ___  __ _ _ __ ®
      \ \/  \/ / |  ___/ \___ \ / __|/ _` | '_ \ 
       \  /\  /  | |     ____) | (__| (_| | | | |
        \/  \/   |_|    |_____/ \___|\__,_|_| |_|

    WordPress Security Scanner by the WPScan Team 
                   Version 2.9.2
      Sponsored by Sucuri - https://sucuri.net

@_WPScan_, @ethicalhack3r, @erwan_lr, pvdl, @_FireFart_


[i] Updating the Database ...
[!] timthumbs.txt: checksums do not match (local: 8debec08480d8dadf084b1bf94c40111c567daba2a1ec63d7be62cf6a1e9eec1e754f96c479452f4cec62bfba2cb7bc7b6de1182b61edebbb8470e6a0946e48a remote: fd47229ccc89dfc40887368c55d36a74c4c1242d82980f036f19a4be1a0fd2268a64c169bc9946b388ed3c444a055c62b1960e6c95f3919be952e0cec7a267fb)
[!] Downloaded File Content:
�%�MY�/oH$�ą߽�}U�Y�~�О�K�<���XTU������]vo����|"������}����;ί-�����dS�k�:ݷ�)=LsT�z���˽�$��p_7���Ez�:1r,19. �)�b�!4b괾=]�
�wgQ���B묩�z��-O�2N-�QV�*C�@zݢ���(Fr����P�_�灷�lE�&'Yj��95�>q�]�L{���;�L
��xl��m�H�[4Bє�1`K��{$��T������F�����1[q����>��Cv����J����h�m=��-yyH����g���^�kz̀Eb��yZ<�����hW��b��QZ�<���J�3�k�O�:;��y0�<:Q
.........

[!] Some hints to help you with this issue:
[!] -) Try updating again
[!] -) If you see SSL/TLS related error messages you have to fix your local TLS setup
[!] -) Windows is still not supported

I just cant understand what causes this :(
btw im not using any proxies or anything... I used to have kali before (not even a month ago!!) and wpscan was working just fine but after i reinstalled the os everything went wrong with wpscan..

@AzizDammak I suggest to use the docker version

@FireFart Thnx!! <3 The docker version works very well now :dancing_men: I apreciate your help
Just one annoying thing that it asks me to update the database everytime it starts but it works just fine.

Was this page helpful?
0 / 5 - 0 ratings