vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Rewrite some tables (https://vborg.vbsupport.ru/showthread.php?t=238591)

leftwich86 03-18-2010 10:46 PM

Rewrite some tables
 
Our forum was hacked and here's the code.

Database error in vBulletin 3.8.3:

Invalid SQL:

SELECT forum.forumid, lastpost, lastposter, lastthread, lastthreadid, lasticonid, threadcount, replycount, lastpostid, lastprefixid

FROM .forum AS forum;

MySQL Error : Unknown column 'forum.forumid' in 'field list'
Error Number : 1054
Request Date : Thursday, March 18th 2010 @ 07:15:40 PM
Error Date : Thursday, March 18th 2010 @ 07:15:41 PM

Can this be fixed my just uploaded a backup we had up? Or do those tables need to be fixed?

borbole 03-18-2010 10:50 PM

Quote:

Originally Posted by leftwich86 (Post 2006135)
Our forum was hacked and here's the code.

Database error in vBulletin 3.8.3:

Invalid SQL:

SELECT forum.forumid, lastpost, lastposter, lastthread, lastthreadid, lasticonid, threadcount, replycount, lastpostid, lastprefixid

FROM .forum AS forum;

MySQL Error : Unknown column 'forum.forumid' in 'field list'
Error Number : 1054
Request Date : Thursday, March 18th 2010 @ 07:15:40 PM
Error Date : Thursday, March 18th 2010 @ 07:15:41 PM

Can this be fixed my just uploaded a backup we had up? Or do those tables need to be fixed?

If I were you I would first try to fix the error. Because if you restore from a backup then all the posts, topics, members etc that were acquired from the time of that backup until now will be lost. But if the backup is very recent then go with the restore route instead.

Did you do any modification to your forum prior to getting that error?

P.s. From the error shown above I doubt that this is a hack btw.

leftwich86 03-19-2010 12:47 AM

Somebody uploaded something thru FTP entitled hack.php, etc and stuff like that. Hacked the FTP, but Im not worried about what they did, just about how to fix it :)

Do you have MSN or AIM?

Marco van Herwaarden 03-19-2010 10:18 AM

If you are unsure what the attacker changed, then a complete restore (after securing the site) is the best option.

borbole 03-19-2010 11:25 AM

In that case I agree with Marco. A restore would be the best thing under the circumstances.

Marco van Herwaarden 03-19-2010 12:19 PM

PS If that is a full copy of the error message in the first post, then this error is probably a result of a modification, you could try disabling that modification.


All times are GMT. The time now is 03:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00987 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete