Wpscan: Feature Request: machine readable reporting mechanism

Created on 22 May 2013  路  22Comments  路  Source: wpscanteam/wpscan

Wonderful tool guys, very useful to show clients the low hanging fruit of their developers labors... :)

Are there any plans to include output reporting to XML/JSON/SomeFormat?
The data collected could be very useful when imported into SIEMs or Metasploit.

We can already run wpscan through MSF a few ways:
Called from inside framework using PR 1723, the http proxy in 1831, or the good old socks proxy. Primarily these mechanisms increase our reach through L3 forwarding, but can also provide useful data for the pentest through request/response/service/host logging. Although we can now log all of the pages and associated response (and request) headers to the DB, it would be much more useful if we could also import vulnerability and informational data from the scan.

I can take a stab at doing this as a PR, but my schedule wont allow this for a while to come.

Feature request

Most helpful comment

@theabraxas I just received a ping about this issue. Although I like wpscan for being easy to use, I already moved away from wpscan, because its a blackbox sanner (which may give false positives, and generates lots of load on the server). Because of this I wrote a whitebox scanner and released it under http://wp-sec.org which has different output options including JSON. Maybe this can be of help?

All 22 comments

I can help implementing this if there is not functionality already. What SIEM-product are you using? If it is open-source or there is good API I could figure out if there is a way to import scan results automatically.

I came up with the same requirement only a couple of days ago - have a machine-parsable kind of output, ideally written to a filename I'd provide. JSON would be nice. Alternatively, I would take something like a --quiet switch which omits the banner and the progress bar. In particular, the progress bar. Emails from wpscan output piped into a text file are currently ... well, unreadable ;-)

For me, I do not need something piped into a SIEM directly. Just some structured output which allows for further processing afterwards. I don't have time to provide code, but I could probably come up with a rough and dirty spec for JSON output, if you'd like.

i here looking for the same thing - a way to automatically send the output to the metasploit db, something like db_nmap but db_wpscan

thank you

In my opinion we should make specs of the output reporting (fileformat, internals) and tools to use that format to cover different use cases (SIEM imports etc). Users could also make their own tools.

This was in progress: https://github.com/wpscanteam/wpscan/issues/290
But the branch seems to be inactive at the moment. Any of you working on it?

This has been implemented in WPScan v3 which is currently closed source while we finish some things off

:+1:

Do you have a release date for this issue? I'll be glad to move my output parser to something cleaner ^^

Also waiting for this. Also mailed ethicalhack3r with some suggestions for output, but never got a reply?

Meanwhile I was really in need for some automatic checking, so wrote a tiny script which helps me for now. @iam-merlin If you're willing to script all things together this might help you https://gist.github.com/markri/4dbc52e4e9d749875835#file-wpsecurity_filter

As referenced in https://markri.nl/?p=23

@markri thank you for your feedback, big thank. I just move a part of my original code to a zf2 module for reference. If you are interesting : https://github.com/eoko/wpscan

As you can see, I just put port to zf2 some of my handler ... to replace them to a cleaner code that will come with this issue.

By the way, do you handle wpscan update? I didn't found --no-interactive flag :/

Any further development on this?

@theabraxas I just received a ping about this issue. Although I like wpscan for being easy to use, I already moved away from wpscan, because its a blackbox sanner (which may give false positives, and generates lots of load on the server). Because of this I wrote a whitebox scanner and released it under http://wp-sec.org which has different output options including JSON. Maybe this can be of help?

Hello @markri , nice work , is it possible to check a remote WP site with wp-sec or just local installations ? thanks

@macbroadcast the tool uses the local only way because that way it can detect all installed plugins. There are also several worpdress plugins available which check your site on a daily basis for new vulns and show a warning in the dashboard if any are found

I've addressed this in #1029, at least to the point of exporting everything printed to JSON. Enhancements and comments welcome...

Done in v3: https://github.com/wpscanteam/wpscan-v3

-f json
--format json

can be used along with --output/-o file-path

offer a 馃嵑 to this man!
thx

Any updates on this?

you can use wpscanv3 if you want machine readable output

Is it maintained similar to wpscan main repo?

it uses the same vulnerability data but it's still in beta state

Sure, thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

digininja picture digininja  路  10Comments

brammittendorff picture brammittendorff  路  8Comments

CoreISP picture CoreISP  路  7Comments

sayjeyhi picture sayjeyhi  路  6Comments

MLubinski picture MLubinski  路  10Comments