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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-03-2003, 04:58 AM
kmfdm_kid2000's Avatar
kmfdm_kid2000 kmfdm_kid2000 is offline
 
Join Date: Mar 2002
Location: Where Towers Crumble (NYC)
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default NEED HELP PLEASE!! Deleted User Issue

Recently, someone thought it was cute to delete 2 of my more prominant users somehow using MY account in the Admin CP. I have an SQL back up from Friday, which is only 2 days old, it's pretty recent. How can I restore these 2 users using PHPMyAdmin from that back up?? I ran the querries to restore them in the User Table, but what else do I have to run? All of their posts are still set to guest, and I can't access their accounts in my Admin CP...

Any help I would REALLY appreciate. Code hacks are one thing, but when someone hacks your Admin account like that, it makes you feel kinda violated you know... :ermm:
Reply With Quote
  #2  
Old 02-03-2003, 06:50 AM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find the userfield rows that have their userid's then copy those. it should work after that.
Reply With Quote
  #3  
Old 02-03-2003, 07:05 AM
kmfdm_kid2000's Avatar
kmfdm_kid2000 kmfdm_kid2000 is offline
 
Join Date: Mar 2002
Location: Where Towers Crumble (NYC)
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I Figured that out...What I'm going to do is add all of the new SQL from the Post Table, merge it with the old data as a new file, because the old SQL has the User ID#'s for those posts, and it'll include all of the NEW posts...This is gonna be a HUGE querry, I'll break it up into bits...
Reply With Quote
  #4  
Old 02-03-2003, 10:36 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[sql]UPDATE post SET userid='newuserid' WHERE username='username';[/sql]

Just fill in the userid of one of them, the username of the same member, run it, and repeat. Then, just update the counters.
Reply With Quote
  #5  
Old 02-03-2003, 01:54 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then protect your forums by changing your password, .htaccessing your admin and mod CPs, securing phpMyAdmin, FTP, SSH, CPanel, and Telnet, and banning the hell out of the user who hacked your board while reporting him to his ISP.
Reply With Quote
  #6  
Old 02-04-2003, 01:58 AM
kmfdm_kid2000's Avatar
kmfdm_kid2000 kmfdm_kid2000 is offline
 
Join Date: Mar 2002
Location: Where Towers Crumble (NYC)
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you tell me how I can secure my Admin and Mod CP's with .htaccess??

Also, I have one user almost fully restored, but I'm entering the UserID into the Post table for post made by him and that have user ID# 0...

Is there a querry that i can run to say "In Post Table, make all posts with Username slamedsilver that contain User ID# 0 into User ID#16"?? It's very tedious using PHPMyAdmin to MANUALLY edit the user ID# of 500 more posts
Reply With Quote
  #7  
Old 02-04-2003, 03:28 AM
mr e's Avatar
mr e mr e is offline
 
Join Date: Dec 2001
Posts: 461
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cant u just do

[sql]UPDATE post SET userid='16' WHERE username='slamedsilver'[/sql]
Reply With Quote
  #8  
Old 02-04-2003, 03:46 AM
kmfdm_kid2000's Avatar
kmfdm_kid2000 kmfdm_kid2000 is offline
 
Join Date: Mar 2002
Location: Where Towers Crumble (NYC)
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by mr e
cant u just do

[sql]UPDATE post SET userid='16' WHERE username='slamedsilver'[/sql]
OMG, That did the trick, YOU'RE AWESOME DUDE!!!
Reply With Quote
  #9  
Old 02-10-2003, 12:16 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any way to see usernames in phpMyAdmin?? i have to do something like this too, but i need to make sure I don't screw something up... ive heard horror stories of entire databases just gone...

PHP Code:
UPDATE post SET userid='16' WHERE username='slamedsilver' 
say i have userid=0 for multiple names? as far as i know these names aren't registered (it was a post only import) and somehow i heard it was possible to create these users from this somehow? anyone got any ideas? also how to you restore from a backed up database? i accidedtally clicked index on useractivationid and so far haven't noticed any problems but i dunno yet. or maybe how would i un-index this? any help would be appreciated.
Reply With Quote
  #10  
Old 02-10-2003, 12:32 PM
Martin64's Avatar
Martin64 Martin64 is offline
 
Join Date: Nov 2001
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Although this doesn't secure your Admin/Mod CP, I can really recommend this hack by FireFly, called "Get an e-mail if someone is trying to access your Admin CP (With IP address)"

https://vborg.vbsupport.ru/showthrea...threadid=32707

If you wish to .htaccess your directories with a password, I recommend taking a look at this site:

http://www.webmaster-toolkit.com/hta...enerator.shtml
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 09:40 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.05060 seconds
  • Memory Usage 2,255KB
  • 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)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete