Log in

View Full Version : Vbulleting forum hacked - Please help


skyyjet
06-21-2010, 10:20 AM
Hi

Recently my vbulletin was hacked.
The hacker encoded his code in all template files and also changed admin password.

Admin area login page after deleting encoded hackers code from templates is displaying blank page.

I uploaded default style using tools.php but site is not opening.

I believe I need to set it a new default style through phpmyadmin as I cannot access admin area of vbulletin.

So I need to know 2 things:

1 - How can we upload styles using phpmyadmin
2 - How to set any existing style or the default vbulletin style as default/main working style through phpmyadmin.

I believe doing this might help to access admin area.

Thanks
Skyjet

ChopSuey
06-21-2010, 10:25 AM
You don't have a backup of your db before the hacker got in?

skyyjet
06-21-2010, 10:33 AM
No..I know that is my mistake.. I have learnt a lesson

ChopSuey
06-21-2010, 01:06 PM
But when you access your admincp...the forums chosen default skin doesn't show up there.

It gives you just a login box. O_o

skyyjet
06-21-2010, 01:49 PM
http://www.site.com/forum/admincp/ is there.. But when I click submit it takes to blank page..

Also http://www.site.com/forum/ shows blank page

I believe I need to set default skin to make them visible as hacker messed with the themes.

This is why I want to know how to set default skin through phpmyadmin.

eSekar
06-21-2010, 01:56 PM
I don't think that's you're problem, why don't you just re-upload your forum files ?

or at least start by uploading a fresh /admincp/ folder, that should get your ACP issue fixed at least, & from there you'll see what your problem really is.

skyyjet
06-21-2010, 01:59 PM
I don't think that's you're problem, why don't you just re-upload your forum files ?

or at least start by uploading a fresh /admincp/ folder, that should get your ACP issue fixed at least, & from there you'll see what your problem really is.

Already uploaded admincp.. It didn't worked.. BTW hacker was unable to modify vbullein files..he only made changes in database..ie in vbulletin styles..

A.Chakery
06-21-2010, 02:11 PM
Already uploaded admincp.. It didn't worked.. BTW hacker was unable to modify vbullein files..he only made changes in database..ie in vbulletin styles..
Hi,
I faced this kind of hacking once , try to correct or re-install the default skin.

I hope it can help you
good luck

ChopSuey
06-21-2010, 02:31 PM
Hi,
I faced this kind of hacking once , try to correct or re-install the default skin.

I hope it can help you
good luck

Lol he's asking how to do it!

Have you checked your db for unwanted tables and other things?

eSekar
06-21-2010, 02:40 PM
Well mate if he had access to your database I'm sure he did more than changing your style.

I dunno but if it was me I'll try a million thing til you get it right, at least you should know whats wrong then find a solution.

try changing the admincp name to something else, like admincppp then try to access it, don't forget to change the name in your config.php

and can you reach any other page on your site? like showthread.php?19... or search.php

is it the index / admincp pages only or the whole site.

if the above didn't work I think your best option is to check your Database and see if it's messed up (try ask you host if they have a backup, most hosting co's does a backup weekly for users)

skyyjet
06-21-2010, 02:45 PM
No other changes I have yet found in database..

ChopSuey
06-21-2010, 02:50 PM
Asked your host if they have a backup?

eSekar
06-21-2010, 02:50 PM
what's your VB version ?

can you post your site url ?

skyyjet
06-21-2010, 03:38 PM
Asked your host if they have a backup?
No they don't have backup

skyyjet
06-23-2010, 10:51 AM
No one knows how to set default style through phpmyadmin?

ChopSuey
06-23-2010, 12:55 PM
Sounds impossible imo.

SomeDude-GP
06-24-2010, 03:13 PM
you could look at the adminlog table or the templatehistory table and see if there are any clues in there

BirdOPrey5
06-24-2010, 10:18 PM
No one knows how to set default style through phpmyadmin?

In the "User" table change styleid to the id of whatever style you want for your userid, for me my default style is 1, 0 is for people who never picked a style... some other valid numbers for me are 8, 17, and 20 so I don't know the logic used to assign a style ID, I don't remember ever having 20 unique styles but who knows... if you pick an invalid number it will just attempt to show a default skin. I think the default is always 1.

You can check your valid style ids by browsing the style table.

need2fart
06-25-2010, 03:28 AM
You could download the vb 3.x whatever, and upload the tools folder and use the tools to fix your database.

skyyjet
06-25-2010, 03:45 PM
In the "User" table change styleid to the id of whatever style you want for your userid, for me my default style is 1, 0 is for people who never picked a style... some other valid numbers for me are 8, 17, and 20 so I don't know the logic used to assign a style ID, I don't remember ever having 20 unique styles but who knows... if you pick an invalid number it will just attempt to show a default skin. I think the default is always 1.

You can check your valid style ids by browsing the style table.

This also didn't worked. :(

BirdOPrey5
06-25-2010, 03:50 PM
If you haven't already you need to re-upload ALL your vbulletin files as if you were doing a new install... your settings are in the database so you shouldn't lose much, if anything, from replacing the files.

skyyjet
06-25-2010, 03:53 PM
However I am thinking of another way now to fix this.. So please advice me on this:

I have very old mysql database backup for this site ie about 1 year old.

I think I should delete existing(hacked) database and restore that old (backup)database and import the posts, threads and users table etc from existing(hacked) database as they are still as it is there.

So anyone can advice me which tables should be necessary to import from old database?

BirdOPrey5
06-25-2010, 04:00 PM
Is there a reason you can't or don't want to re-upload the files? How are you so sure the hacker was unable to access the files? No harm could come from trying to replace them.

skyyjet
06-25-2010, 04:14 PM
Is there a reason you can't or don't want to re-upload the files? How are you so sure the hacker was unable to access the files? No harm could come from trying to replace them.


I already did but that didn't worked..

Speysider
06-25-2010, 04:21 PM
So, uploading your files didn't work or you just don't want to? I'm confused, you're kinda contradicting yourself at times ...

BirdOPrey5
06-25-2010, 04:36 PM
I think it's pretty clear he uploaded the files and it didn't work, at least I hope that's what he said.

A year old backup is better than nothing I guess- it's not just posts but a year of new users and PM's and everything else lost... at least you'll be up and running. I don't think there is a practical way of re-importing your posts and users though but it's not something I ever tried.

skyyjet
06-25-2010, 04:54 PM
I think it's pretty clear he uploaded the files and it didn't work, at least I hope that's what he said.

A year old backup is better than nothing I guess- it's not just posts but a year of new users and PM's and everything else lost... at least you'll be up and running. I don't think there is a practical way of re-importing your posts and users though but it's not something I ever tried.

The most imp. think I want is users and posts.. So i just need details on that.. Pms and other things are not that imp..

Xtrigit
06-26-2010, 12:08 AM
What I would do is:

1.Export members+posts
2.Delete current database
3. change ftp/cpanel passwords
4. create new database
5. connect to server/ftp
6. delete all files/directories
7. Download vbulletin
8. upload and install vbulletin
9. import old backup
10. import members + posts that you exported from your recent database.

That'll get your site back online.

What mods did you have?

ChopSuey
06-26-2010, 01:49 AM
Did you disable hooks? Don't styles use some hooks? Try doing that.