\MainWP\ChildMainWP_Child_Vulnerability_Checker

Class MainWP_Child_Vulnerability_Checker

MainWP Vulnerability Checker Extension handler.

Summary

Methods
Properties
Constants
instance()
__construct()
action()
vulner_recheck()
check_plugins()
check_wp()
check_themes()
get_vuln_nvd_nist_info()
vulnche_get_content()
get_random_user_agent()
$instance
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$wpvulndb_api
$wpvulndb_nvd_api
N/A

Properties

$instance

$instance : mixed

Public static variable to hold the single instance of the class.

Type

mixed — Default null

$wpvulndb_api

$wpvulndb_api : string

WPVulnDB API URL

Type

string

$wpvulndb_nvd_api

$wpvulndb_nvd_api : string

Nvd.nist.gov API URL

Type

string

Methods

instance()

instance() : mixed

Method instance()

Create a public static instance.

Returns

mixed —

Class instance.

__construct()

__construct() 

MainWP_Child_Vulnerability_Checker constructor.

Run any time class is called.

action()

action() 

MainWP Child Vulnerability Checker actions.

vulner_recheck()

vulner_recheck() : array

Check for vulnerabilities.

Returns

array —

Return an array $information[] containing $results[] array.

check_plugins()

check_plugins(boolean  $force = false, boolean  $service = '') : array

Check for plugin vulnerabilities.

Parameters

boolean $force

Whether or not to force check. Default: false.

boolean $service

Selected service.

Returns

array —

Return $result array.

check_wp()

check_wp(boolean  $force = false, boolean  $service = '') : boolean|string|null

Check for WP vulnerabilities.

Parameters

boolean $force

Whether or not to force check. Default: false.

boolean $service

Selected service.

Returns

boolean|string|null

check_themes()

check_themes(boolean  $force = false, boolean  $service = '') : array

Check if themes have vunerabilities.

Parameters

boolean $force

Whether or not to force check. Default: false.

boolean $service

Selected service.

Returns

array —

Return $result array.

get_vuln_nvd_nist_info()

get_vuln_nvd_nist_info(mixed  $data, string  $slug, string  $version) : boolean|string|null

Check if content is vulnerable.

Parameters

mixed $data

data of check.

string $slug

slug.

string $version

Current version.

Returns

boolean|string|null

vulnche_get_content()

vulnche_get_content(string  $url, string  $service = '') : boolean|string|null

Check if content is vulnerable.

Parameters

string $url

URL to check.

string $service

service to check.

Returns

boolean|string|null

get_random_user_agent()

get_random_user_agent() : string

Get random useragent.

Returns

string —

User agent string.