SOLVED CPHulk read history reports using the command line or API

eugenevdm.host

Well-Known Member
Oct 21, 2019
81
11
8
Cape Town
cPanel Access Level
DataCenter Provider
Hi,

I get daily calls about CSF and CPHulk and now I want to automate reading and removing entries. CSF is well supported via the command line. CPHulk not it seems?

Reference documentation for CPHulk: cPHulk Management on the Command Line | cPanel & WHM Documentation

I need to read the history reports.The only commands listed are:

/usr/local/cpanel/scripts/cphulkdwhitelist 192.0.2.0
/usr/local/cpanel/scripts/cphulkdblacklist 192.0.2.0

The reason I want to read the history reports is because I first want to determine the cause for listing before I use the command line command to whitelist it.

Any tips?
 

eugenevdm.host

Well-Known Member
Oct 21, 2019
81
11
8
Cape Town
cPanel Access Level
DataCenter Provider
Fantastic thanks so much I see prime candidates there that looks like exactly what I need:

> get_cphulk_brutes
> get_cphulk_excessive_brutes
> get_cphulk_failed_logins
> get_cphulk_user_brutes
 

cPanelBrianK

Technical Analyst III
Staff member
Sep 5, 2018
23
11
78
Houston
cPanel Access Level
Root Administrator