View Full Version : Removing ban
rogersnm
05-30-2006, 05:36 PM
what sql query would i run to remove everyban set inclkuding ip bans?
my site has been hacked and i can't get in,
oninuva
05-30-2006, 05:51 PM
me too same prob!
Paul M
05-30-2006, 06:16 PM
There isn't one SQL query that could remove all bans. How are you actually banned ?
rogersnm
05-30-2006, 06:17 PM
The hacker issued a ip ban on all ip's
http://wow-elite.org/
oninuva
05-30-2006, 06:18 PM
Help!
rogersnm
05-30-2006, 06:19 PM
i have got the tools.php up so i can run query's but thats all..
Paul M
05-30-2006, 06:19 PM
ooops.
Do you have ftp access ?
rogersnm
05-30-2006, 06:23 PM
yes, i do, but i can't run a vB page because i am banned...
akanevsky
05-30-2006, 06:24 PM
There isn't one SQL query that could remove all bans. How are you actually banned ?
Yeah there is. But what's required to know is:
Banned Usergroupid
Normal Usergroupid
Table Prefix
UPDATE TABLE_PREFIXuser SET usergroupid=NORMAL WHERE usergroupid=BANNED
UPDATE TABLE_PREFIXuser SET usergroupid=6 WHERE userid=YOURADMINID
As for ip ban, you just remove that from vb options.
Or if you cannot access your vb options, an option rebuild script would be required...
Paul M
05-30-2006, 06:24 PM
Via ftp, edit global.php ;
Find these lines;
// check for IP ban on user
verify_ip_ban();
and comment out the second line like this ;
// check for IP ban on user
//verify_ip_ban();
You should then have access.
oninuva
05-30-2006, 06:24 PM
i cant even get into ADmin CP
rogersnm
05-30-2006, 06:25 PM
ok
thanks
nope still got it:
http://www.wow-elite.org/
http://www.wow-elite.org/forum/
i think they have changed the whole template...
akanevsky
05-30-2006, 06:26 PM
Interesting. My ip is banned too, although I haven't ever visited the site. lol.
Paul M
05-30-2006, 06:27 PM
Yeah there is. Feel free to post this magic query that will remove all bans including IP bans, e-mail bans & usergroup bans.
akanevsky
05-30-2006, 06:28 PM
Well, it isn't exactly one query, it's two queries given that admin is banned too - but see the post, I updated it.
I could combine the two queries into one, but it isn't worth it.
rogersnm
05-30-2006, 06:29 PM
i am in the admin cp.. how do you remove the ip ban?
it blocks everything..
they have also deleted ALL forums
oninuva
05-30-2006, 06:30 PM
i got in the ACP but they delteed all my forums :(
/yelp
any way to fix?
Paul M
05-30-2006, 06:31 PM
Yes, restore from a backup.
rogersnm
05-30-2006, 06:31 PM
he didn't make one :p
where's the ip ban so i can remove it?
akanevsky
05-30-2006, 06:31 PM
And if there's not backup, you'll have to start anew.
oninuva
05-30-2006, 06:33 PM
o im screwed
Paul M
05-30-2006, 06:35 PM
o im screwedIf you didn't back anything up and the data has been deleted, then yes, you are pretty much screwed.
First rule - backup regularly. Second rule - refer to first rule.
(if your threads, posts and users are intact, a vb expert could rebuild your actual forums with some sql manipulation).
rogersnm
05-30-2006, 06:40 PM
i'll see if his posts are intact
vb.com phone support is closed
nope he's screwed the thread and post tables have been dropped..
Paul M
05-30-2006, 07:08 PM
All you members are administrators atm, I suggest you fix that pretty quick.
rogersnm
05-30-2006, 07:09 PM
ok how?
how do i remove an ip ban?
oninuva
05-30-2006, 07:31 PM
All you members are administrators atm, I suggest you fix that pretty quick.
how do i fix?
change it maunally?
rogersnm
05-30-2006, 07:32 PM
Would You Mind!
Wired1
05-30-2006, 07:42 PM
Check with your host to see how often they backup stuff. Also notify them of the hack, in case it's more widespread than just your site.
oninuva
05-30-2006, 08:27 PM
how do i mass change a user group? cause all my users are mods... and i want to change them back
Paul M
05-30-2006, 09:40 PM
update user set usergroupid = 2 where userid not in (x,y)
where x,y are your administrator userids.
oninuva
05-30-2006, 09:46 PM
gah im re-installing
this sucks
all my templates are messed up too :(
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.