Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: To fix Brute Force login error  (Read 2283 times)

0 Members and 1 Guest are viewing this topic.

Haripriya H

  • Guest
To fix Brute Force login error
« on: December 14, 2013, 10:41:28 pm »

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