-
Notifications
You must be signed in to change notification settings - Fork 47
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
memory_usage fails on windows devices since it uses "ps" - A Linux / Mac command #114
Comments
Unfortunately, there is no OS-neutral way to get that as far as I know. If you do, feel free to share/send PR. |
v0.6.1 released. Could you please try it ? All you have to do is update the CMSScanner gem with |
Using CMSScanner with WPScan Error message is there telling the user what to do, but very messily. After sys-proctable gem installation It doesn't seem to like
Line 95
Being called with the pid If you change
Line 113 From
To
It's happy. This seems to be an issue with the third party gem files though. Note that it seems to be fixed on the authors github over at https://github.com/schneems/get_process_mem/blob/master/lib/get_process_mem.rb Although their latest v0.2.4 release does not include the fix. |
Unless you installed CMSScanner, and then uninstalled I've opened an issue related to the second one: zombocom/get_process_mem#38 |
It seems as though it should, but if I go
It still throws the error. Hopefully just a weird caching issue my side. Guess we wait for schneems now :) |
That's weird then, if I remove the
Could be caching issue, or Here is an example on MacOSX:
|
Still no news from However, as the 1.1.5 is quite old (from 2017), I hope it will work. I've released v0.6.2, could you please try like last time ? (just update the |
I should probably point out that the small change I made in #115 was based off get_process_mem including only the necessary code to get things working :p |
I just installed Ruby (2.6.5) on a Windows7 via https://rubyinstaller.org/downloads/, then installed wpscan and it worked: The error you have is weird, as it means that the pid given (which is by default
So I wonder how previous stuff worked somehow where this error should have come up. Even though #115 seemed to work for you (which, based on the above error, should not), it was not considering Linux method to get the memory via /proc/, as well as mixing stuff up (gem requirement, platform and loading error in a ruby file) |
After mass uninstalling all the dependencies and wpscan itself then reinstalling wpscan, it does indeed seem that the latest commit did indeed solve the issue! Congrats :D |
Thank you for confirming! that's awesome :) |
Line of code: https://github.com/wpscanteam/CMSScanner/blob/master/lib/cms_scanner/helper.rb#L11
Might want an OS-neutral, language-specific method of getting the processes memory usage.
The text was updated successfully, but these errors were encountered: