Skip to content

FernleafSystems/ApiWrappers-WPVulnDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress Vulnerability Database API Wrappers Collection

API Wrapper for various WordPress Vulnerability Database Services

Example:

	use FernleafSystems\ApiWrappers\WpVulnDb\WPScan;

	$conn = new WPScan\Connection();
	$conn->api_key = 'abc123'; // Get this when you register
	$pluginVuln = ( new WPScan\Plugins\Retrieve() )
                  	->setConnection( $conn )
                  	->filterByVersion( '5.1' )
                  	->filterBySlug( 'wp-simple-firewall' )
                  	->retrieve();
  • When a vulnerability is found they can be enumerated from the array returned from $oPluginVuln->getVulns()
  • null will be returned if there are no vulnerabilities found for the particular slug and version so care must be taken to use the result of the request safely.
  • It is not necessary to filter by version. If you omit this, then all available vulnerabilities will be returned.

About

API Wrapper for the WP VulnDB API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages