![]() |
Fix-it: Template Edition
1 Attachment(s)
A common method of defacing vBulletin sites is to edit the parsed template html directly via the database. It makes it harder for administrators to find the issue, and can be a pain in the ass to cleanup if you're not familiar with working with the database.
This tool will make it easier to clean your defaced site. What it does: Checks all of the templates in the database: - Makes a new compiled version from the uncompiled template. - Compares the current compiled template to the new compiled template - If they differ, it updates the template, then rebuilds all of the styles. How do you use it? - Upload to your admincp, modcp, install, or root forums folder - Browse to it - Let it run - Delete tool_recompiler.php after you are done using it. This tool now works on vB3 and vB4. vB4 Thread |
Ok, but how does someone without access the the database able to do this to begin with? (Forgive me here, I don't mean to be stupid. But If I don't ask, I won't learn. :o)
|
Quote:
|
Quote:
|
Quote:
|
But if it repairs templates, does it save previous template? basically...
Can it destroy a template just as easy as fix one? |
Here is the explanation behind how the template system and this tool works.
Templates are stored in two ways. There is the unparsed template, which you edit in the Admin CP. It is the template as you know it. Then, there is the parsed template, which is the template after it has been ran through a function to convert things like <if> tags into valid PHP parsable code. A common method of defacing vBulletin forums is for a hacker to directly edit the parsed version of the template in the database, leaving the unparsed template alone. When you go to edit the template in the Admin CP, you won't see anything different, but the parsed version of the template has changed. What this tool does is it takes all of the unparsed templates from the database and creates a new parsed version from it. If the newly generated parse is different than the parsed version currently in the database, it will update the template, overwriting the old, probably compromised, parsed template. This process is not "dangerous" in any way. If you run it on a normal, uncompromised forum, you won't see it updating any templates. |
No, it doesn't destory templates.
As explained already in the description, it checks the unprased template agasint the parsed template table. If the two don't match like they should, it takes your unparsed template and re-parses it and inserts it back into the database and removes the defacement. |
Thanks to both of you...
|
thanks
|
All times are GMT. The time now is 12:51 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|