Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-10-2008, 06:06 PM
zmanda_it zmanda_it is offline
 
Join Date: Jul 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default deleting spam accounts

I'm running into a problem where spammers are using our forum to host spam in the "About Me" area of their account. Somehow an automated bot has been able to register hundreds of accounts using an easily-compromised mail host in russia. The originating IP addresses are mostly (if not all) Russian. There are too many to delete by hand, and vB doesn't have an option to mass delete by search criteria. I'd be willing to do cleanup by hand if I could get the vast majority of accounts in an automated fashion. Here is an example SQL query that returns 560 results:

select userid,ipaddress,lastvisit,lastactivity,posts from vb3_user where email like '%mail.ru' and posts = 0 and abs(lastvisit - lastactivity) < 3600 order by ipaddress;

These are all accounts whose registration and last activity are nearly identical, who have zero posts, and are registered using the same mail host in Russia. vB support states that user accounts are deleted from the following tables:

user
userfield
usertextfield

then, additionally, every table with a userid field has to be gone through and fixed. However, these accounts have no activity and zero posts, so is it safe to assume that all tables other than the 3 mentioned are clean w/respect to the accounts mentioned? Is it safe to delete the accounts with matching UIDs directly from the 3 mentioned SQL tables and be done with it?

Thanks
Reply With Quote
  #2  
Old 07-10-2008, 08:14 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you don't have any members from Russia, the chance of a legitimate member using mail.ru is slim, so delete the accounts. Not sure about whether to use SQL queries to do this directly, but delete them. Oh, and it may then be wise to add the domain to the banned email addresses list.
Reply With Quote
  #3  
Old 07-10-2008, 09:51 PM
zmanda_it zmanda_it is offline
 
Join Date: Jul 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your reply and suggestions. I do, however, need a way to automate this deletion... maybe I posted in the wrong forum?
Reply With Quote
  #4  
Old 07-10-2008, 10:23 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Possibly, because removing them is an administrative or a coding issue.
Reply With Quote
  #5  
Old 07-11-2008, 12:09 AM
zmanda_it zmanda_it is offline
 
Join Date: Jul 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The acccounts in question are not banned at this time, but I found a way to determine which accounts are actually hosting spam:

SELECT username,t1.userid FROM vb3_user t1 JOIN vb3_usertextfield t2 ON (t1.userid = t2.userid) WHERE t2.signature like '%http%' or signature like '%href%' or signature like '%src%' or signature like '%url%' or signature like '%buy%' or signature like '%img%';

In my case, that brought the total number down to 37, which I can delete by hand. Hopefully this helps someone else.
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 03:47 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.03360 seconds
  • Memory Usage 2,191KB
  • 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
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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