WPSec.com WordPress Vulnerability Scanner Command Line Client
1.8K
Command line client to interact with the WPSec.com WordPress Vulnerability Scanning API. Usage examples are below. An API client ID and secret are needed: replace CLIENT_ID and CLIENT_SECRET with your own. API documentation can be found here: https://api.wpsec.com/api/documentation.
The standalone tool can be found on GitHub here: https://github.com/wpscanner/wpsec-cli
First fetch the latest version:
docker pull docker.io/jonaslejon/wpsec-cli:latest
Then run the different commands like this. First ping the API and check that everything works out:
docker run --rm -it jonaslejon/wpsec-cli CLIENT_ID CLIENT_SECRET ping
The output should be something like:
WPSec API is up and running \o/. Response time: 0.19 seconds
And to list the websites on your account, you can run:
docker run --rm -it jonaslejon/wpsec-cli CLIENT_ID CLIENT_SECRET get_sites
And to list the vulnerability reports:
docker run --rm -it jonaslejon/wpsec-cli CLIENT_ID CLIENT_SECRET list_reports
docker pull jonaslejon/wpsec-cli:latest