When you receive a Brute Force error while trying to login to the cPanel of a domain, there are two different ways to fix it:
1. To disable cPHulk to regain access. Log into WHM, clear out the the block by using the “Flush DB” option in the cPHulk settings page, and then re-enable cPHulk.
Backend commands for doing this are as given below:
- /usr/local/cpanel/bin/cphulk_pam_ctl --disable : to disable cPHulk
- /usr/local/cpanel/bin/cphulk_pam_ctl --enable : to enable cPHulk
This can also be done by using the below given commands:
- /usr/local/cpanel/etc/init/stopcphulkd
- /usr/local/cpanel/etc/init/startcphulkd
2. The other way is to remove the IP’s blocked by cPHulk from its database manually. This can be done with the following mysql commands:
mysql> use cphulkd;
mysql>BACKUP TABLE brutes TO ‘/path/to/backup/directory’;
mysql> SELECT * FROM brutes WHERE `IP`=’xxx.xxx.xxx.xxx’;
mysql> DELETE FROM brutes WHERE `IP`=’xxx.xxx.xxx.xxx’;
mysql>quit