vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Log Logins Hack (https://vborg.vbsupport.ru/showthread.php?t=124907)

Dr House 05-03-2010 01:58 PM

Thanks ;)

sinpin 07-06-2010 04:42 AM

thanks,
does work correctly on 3.8.2?

Meestor_X 12-20-2010 06:31 PM

Quote:

Originally Posted by Abe1 (Post 1296452)
Quote:

Originally Posted by cmwg
Is it possible to modify the options of this hack to create a log file of all failed logins? Would be good to be able to see the amount of attempts (reoccuring) on a single account.

Would be a seperate hack. I'll see if I can creat something. I don't know if I would use a file though.

I too am looking for a way to log (and preferably notify me of) any failed login attempts. Spammers are trying to use brute-force methods of logging into my forum as another registered user, and I need to ban their IP addresses.

If you did not create a "failed login" notifier/logger, is there another mod that does this?

Hellmaster 03-31-2012 08:10 PM

Works ...almost... great at 3.8.4

But I can't find the link to the logins log... I had to add it manually at Statistics... How to modify the product.xml to add the link to a Menu or Section?

kh99 12-15-2012 02:09 PM

In answer to this question: https://vborg.vbsupport.ru/showthread.php?t=292986


I think it might solve the problem if you add an intval() call to make sure the userid is a number, like:

Code:

$vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "logins (userid, username, ipaddress, phpdate, logintype) VALUES (" . intval($vbulletin->userinfo['userid']) . ", '" . $vbulletin->db->escape_string($vbulletin->userinfo['username']) . "', '" . $vbulletin->db->escape_string(IPADDRESS) . "', " . TIMENOW . ", 'FAILED ATTEMPT')");

Chris8 12-17-2012 07:01 PM

Quote:

Originally Posted by kh99 (Post 2390867)
In answer to this question: https://vborg.vbsupport.ru/showthread.php?t=292986


I think it might solve the problem if you add an intval() call to make sure the userid is a number, like:

Code:

$vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "logins (userid, username, ipaddress, phpdate, logintype) VALUES (" . intval($vbulletin->userinfo['userid']) . ", '" . $vbulletin->db->escape_string($vbulletin->userinfo['username']) . "', '" . $vbulletin->db->escape_string(IPADDRESS) . "', " . TIMENOW . ", 'FAILED ATTEMPT')");


Thank you Kevin. You're delivering good & useful advice as always. Let the good karma be with you. :)

LinksFreak 05-13-2014 01:02 PM

nice hack


All times are GMT. The time now is 10:14 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.01351 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete