Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Scott MacVicar Scott MacVicar is offline
Developer Last Online: Mar 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-23-2001 Last Update: Never Installs: 41
 
No support by the author.

This is a hack that was suggested by paulomt1, all it does is log failed logins and stores them in a table. An admin can then look at the failed logins in the admin panel, searching based on ip, username, password or date. They can also prune the old logs to save space.

You will be required to create a table this can be done via phpmyAdmin or the hack by Firefly which allows you to run queries via the admin panel. You then have to edit member.php to add the query to insert the failed login information and /admin/index.php to add the links to the loginlog.php file.

Updated 25th November 2001 @ 22:15

Added additions suggested by Mike to the file. Instructions on how to upgrade from the pervious version of this hack is included within install.txt, you will need to run 2 sql queries to adjust the table, adjust the line in member.php and upload loginlog.php again to complete the upgrade.

Scott

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 02-02-2002, 10:50 PM
haas haas is offline
 
Join Date: Jan 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems to be a really good hack. Installing
Reply With Quote
  #43  
Old 04-16-2002, 09:51 PM
GOD-Dblade GOD-Dblade is offline
 
Join Date: Apr 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bad ass hack...works with 2.2.5
Reply With Quote
  #44  
Old 04-16-2002, 09:55 PM
GOD-Dblade GOD-Dblade is offline
 
Join Date: Apr 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well maybe not.....i tried logging into a account with a fake pass and all says is Showing record of 1 to 0 of 0
Reply With Quote
  #45  
Old 04-17-2002, 09:37 AM
wooolF[RM]'s Avatar
wooolF[RM] wooolF[RM] is offline
 
Join Date: Jan 2002
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

]Admin CP -> Login Failures -> View -> List all failed logins ->
Code:
Database error in vBulletin Control Panel 2.2.4:

Invalid SQL: SELECT loginid,username,password,ip,userid,FROM_UNIXTIME(atime) as atime FROM loginlog WHERE 1=1 ORDER BY username  LIMIT 0,99999999
mysql error: Table 'mpc.loginlog'  doesn't exist

mysql error number: 1146

Date: Wednesday 17th of April 2002 12:29:58 PM
Script: http://www.mysite.com/forum/forum/admin/loginlog.php?s=&action=find 
Referer: http://www.mysite.com/forum/admin/lo...tion=modify&s=
1) Why does it look after 'mpc.loginlog' table and not loginlog table? my main database called mpc, table called loginlog. I can't understand why it mixes these two
2) Why does it point to "http://www.mysite.com/forum/forum"? Can u see it? Forum stays 2 times...

I have done everything after instruction and double checked it...
Reply With Quote
  #46  
Old 04-17-2002, 09:45 AM
wooolF[RM]'s Avatar
wooolF[RM] wooolF[RM] is offline
 
Join Date: Jan 2002
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

]I have also tried to run this query:
Code:
CREATE TABLE mpc.loginlog  (
  loginid int(10) unsigned NOT NULL auto_increment,
  ip varchar(20) NOT NULL default '',
  username varchar(50) NOT NULL default '',
  password varchar(50) NOT NULL default '',
  userid int(10) unsigned NOT NULL default '0',
  atime int(10) unsigned NOT NULL default '0',
  KEY id (loginid)
);
but got next error:
Code:
Error

SQL-query :  

CREATE TABLE mpc.loginlog (
  loginid int(10) unsigned NOT NULL auto_increment,
  ip varchar(20) NOT NULL default '',
  username varchar(50) NOT NULL default '',
  password varchar(50) NOT NULL default '',
  userid int(10) unsigned NOT NULL default '0',
  atime int(10) unsigned NOT NULL default '0',
  KEY id (loginid)
)

MySQL said: 


Table 'loginlog' already exists
This sounds weird... First it says it doesn't exist, then it exist... hmmm. Please help
Reply With Quote
  #47  
Old 04-17-2002, 06:57 PM
James5mith James5mith is offline
 
Join Date: Nov 2001
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Btw....
Axel,

Couldn't you also include one additional field similar to the others below the next section of the member.php? The part where it says cookie login? I mean in order to log people returning to the boards who are browsing with cookies?

I'm installing PPN's hack now, and making your modifications, Axel. I will let you all know how it works out.
Reply With Quote
  #48  
Old 04-17-2002, 07:46 PM
James5mith James5mith is offline
 
Join Date: Nov 2001
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by Axel Foley
In this way I can log TWO TYPES of FAILED LOGINS, and all the successful logins too. I added two fields to the database.
Reply With Quote
  #49  
Old 04-17-2002, 10:01 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thats an unusual error for the table, its there but its not there for vB? What version of php and mysql are you running?
Reply With Quote
  #50  
Old 04-17-2002, 10:27 PM
wooolF[RM]'s Avatar
wooolF[RM] wooolF[RM] is offline
 
Join Date: Jan 2002
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

]Server Type
Linux / PHP v4.1.2-hostdemon Safe Mode

MySQL
v3.23.36

vBB
2.2.4

( https://vborg.vbsupport.ru/showthrea...604#post241604 ) = (my problem, this thread, post 44)
Reply With Quote
  #51  
Old 04-17-2002, 10:43 PM
GOD-Dblade GOD-Dblade is offline
 
Join Date: Apr 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

edit
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 12:11 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.05654 seconds
  • Memory Usage 2,302KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete