Last active
June 15, 2016 08:27
-
-
Save u007/3cbffc3424cc8230bd75c81c14a448f3 to your computer and use it in GitHub Desktop.
cpanel cphulk unban ip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# login as root, and mysql into cphulkd | |
sudo su | |
mysql cphulkd | |
# see blocked / history | |
select user, INET6_NTOA(address) as address1, service, type, logintime, notes, authservice from login_track where INET6_NTOA(address) like ‘%:-ip here-'; | |
select user, INET6_NTOA(address) as address1, service, type, logintime, notes, authservice from login_track order by logintime desc limit 30; | |
select user, INET6_NTOA(address) as address1, service, type, logintime, notes, authservice from login_track where type < 0 order by logintime desc limit 30; | |
# unblocking | |
delete from login_track where INET6_NTOA(address) like '%:-ip here-' ; | |
# type: | |
-1 : login fail | |
-2 : blocked | |
# see ip lists | |
select INET6_NTOA(`STARTADDRESS`), INET6_NTOA(`ENDADDRESS`), `TYPE` from `ip_lists` limit 10; | |
# warning & disclaimer | |
# Use at your own risk. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment