vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - Email notification if someone attempts to access your Admin or Mod CP (https://vborg.vbsupport.ru/showthread.php?t=169376)

Boofo 03-24-2008 09:20 PM

You had to miss something. This has never failed anyone that I know of in all the versions I have done. Is there a way I can check the files to make sure the edits are right? Do NOT upload them here, though.

superthang 03-27-2008 12:58 PM

I have added, but I get a white page after login with real username or fake username
seem to not working.

Bexter 03-27-2008 01:21 PM

Just clicked new posts and this popped up. Will be installing this on my forums later as Im very security concious.

Boofo 03-27-2008 01:58 PM

Quote:

Originally Posted by superthang (Post 1475836)
I have added, but I get a white page after login with real username or fake username
seem to not working.

Re-edit the file. You missed some code somewhere.

Chachacha 03-27-2008 08:49 PM

*Installed*. Excellent mod!

Ksb2050 03-27-2008 10:52 PM

Will this still work if you changed the directories of your ACP and MODCP to something else than the standard "admincp"/"modcp"?

Boofo 03-27-2008 11:16 PM

Yes.

tmiland 03-29-2008 01:22 PM

Damn nice! :D Ty!

FRANKTHETANK 2 04-04-2008 07:25 PM

Quote:

Originally Posted by Boofo (Post 1473631)
You had to miss something. This has never failed anyone that I know of in all the versions I have done. Is there a way I can check the files to make sure the edits are right? Do NOT upload them here, though.

sure i will put them in a rar file and send link. another problem i'm getting is it emails me almost 50 times a day saying someone is doing failed login attempts. This even happened when i put a password on my forum folder to fix a major error one of the admins did.


I redid what you said and it still does the same thing. I have done everything i know of and i can't get it to work.

Black Tiger 05-12-2008 12:10 AM

I've uninstalled the 3.5 version because I had the 3.7 version installed already.:)
Little question, if I want the password option back in again, can I safely use the incudes/adminfunctions.php change from the 3.5 version, or is the code in 3.7 changed in such way I can't use that anymore?
If that's the case, is it possible to supply the correct code to put it in myself?

Boofo 05-12-2008 12:29 AM

And you didn't click install?

No, the code has changed for that part of it.

Black Tiger 05-12-2008 12:38 AM

Oh that's odd, I think I doubleclicked or something and the "mark installed" was gone again I see now.
Clicked marked as installed again now, sorry.:)

Is it possible to receive the code for the password part?

Boofo 05-12-2008 12:47 AM

PM me an email address and I will send it to you.

ctrl-alt-del 05-16-2008 01:25 PM

Works nicely. Thanks! However, I prefer not editing files. Is this mod not possible using the plugin system?

Boofo 05-16-2008 01:37 PM

Nope, or I would have done it that way a long time ago.

newtsys 05-17-2008 01:48 AM

Boofo many thanks for the assistance. =)

Black Tiger 05-18-2008 12:49 AM

Yep, he's great! Thanks Boofo.:)

Boofo 05-18-2008 06:57 AM

You guys are very welcome. ;)

mgurain 05-21-2008 03:51 AM

Quote:

Originally Posted by ctrl-alt-del (Post 1521594)
Works nicely. Thanks! However, I prefer not editing files. Is this mod not possible using the plugin system?

same,

thanks

ctrl-alt-del 05-21-2008 11:21 AM

Question already answered. It's not possible or it already would have been done.

Boofo 05-21-2008 11:30 AM

Finally! Someone reads the thread. ;)

Thank you. ;)

smooth-c 05-21-2008 11:50 AM

Should this work with 3.7 Gold? I've done the template edit correctly and replaced the original login.php yet this doesn't work - i've received no email at all :(

Any help Boofo?

Boofo 05-21-2008 11:51 AM

Then you missed something as this works fine on 3.7 Gold.

sys4096 05-23-2008 11:17 AM

Great mod, thanks.

Green Cat 05-23-2008 01:56 PM

<font color="Red">*installed*</font>
Thank you for this fabulous hack !
Can you please send me the password code by PM please ?

pierians 05-29-2008 05:00 PM

Thank you!!!
It works perfectly!

357Magnum 06-09-2008 05:45 AM

i followed the instruction exactly and got an error trying to log in afterwards. removed code and everything back to normal. any ideas?

dodge-downunder 06-09-2008 10:31 AM

awesome, tested it and works a treat! thanks!

BigDog56 06-09-2008 09:01 PM

Thank you, just tested, works like a charm! I love this, you can ban the ip if it keeps trying and you don't recognize the ip.

steve1966 06-12-2008 12:03 PM

No email for me neither will it cause problems if i have renamed my acp and mcp?

Boofo 06-12-2008 12:23 PM

No, that will not affect it. Make sure your webmaster email is set correctly in the vb settings. If you still don't get an email, then you edited the files wrongly somehow.

steve1966 06-12-2008 12:29 PM

Hi thanks for your reply i also use this htpasswd will this cause a problem ?

one other question should i get an eamil when another admin on my forum logs in?

i have done the edits in the code i have not miissed a thing all i had to do was to add the 2 codes to the php file but it still dont work here are the edits

Quote:

$username = $vbulletin->GPC['vb_login_username'];
$fdate = date('l, F jS, Y');
$ftime = date('g:i:s a');
$fdatetime = "Date/Time: $fdate at $ftime \r\n";
$fscriptpath = "Script: http://$_SERVER[HTTP_HOST]" . SCRIPTPATH . "\r\n";
$freferer = 'Referrer: ' . REFERRER . "\r\n";
$fusername = "Username tried: $username \r\n";
$fipaddress = 'IP Address: ' . IPADDRESS . "\r\n";
$iphostname = "Host: " . @gethostbyaddr(IPADDRESS) . "\r\n";
if ($vbulletin->userinfo['userid'] > 0)
{
$realname = "\nUSER ATTEMPT: " . $vbulletin->options['bbtitle'] . " has identified this registered user as: " . $vbulletin->userinfo['username'] . "\r\n";
}


Quote:

// log this error if attempting to access the control panel
require_once(DIR . '/includes/functions_log_error.php');
$fstrk = "Strikes: $GLOBALS[strikes] out of 5 \r\n";
if ($vbulletin->GPC['logintype'] === 'cplogin')
{
$subject= 'WARNING: Failed Admin CP logon in ' . $vbulletin->db->appname . ' ' . $vbulletin->options['templateversion'] . "\r\n\r\n";
$message="Someone is trying to login to your " . $vbulletin->options['bbtitle'] . " Admin CP!\n\n$fusername$fipaddress$iphostname$fstrk$fref erer$fscriptpath$fdatetime$realname";
}
else
{
$subject= 'WARNING: Failed Mod CP logon in ' . $vbulletin->db->appname . ' ' . $vbulletin->options['templateversion'] . "\r\n\r\n";
$message="Someone is trying to login to your " . $vbulletin->options['bbtitle'] . " Mod CP!\n\n$fusername$fipaddress$iphostname$fstrk$fref erer$fscriptpath$fdatetime$realname";
}
vbmail($vbulletin->options['webmasteremail'], $subject, $message, true);

Boofo 06-12-2008 01:19 PM

Showing me the code doesn't show where it was added. I don't use htpasswd so I have no idea if that will affect this. It shouldn't as you still have to log into the admin cp via vb. If it is not working for you it has to be either a bad file edit or maybe the server is slow on sending out the emails. It works, trust me.

steve1966 06-12-2008 01:30 PM

Hi Boofo

thanks againg for replying its ok its working fine i thought it sent a mail when another admin looged into the acp i just l tried to log in using a bad pass and it sent me a mail

thanks for a good mod

Boofo 06-12-2008 01:34 PM

No problem. It only sends an email on a failed login. ;)

Megatr0n 06-12-2008 03:51 PM

Boofo, you get my PM?

Boofo 06-12-2008 11:04 PM

You get mine?

Boofo 06-15-2008 03:21 AM

I have been getting quite a few requests via PM for the password version of this hack. It is now available to anyone who respectfully donates. Please read the first post for details.

pierians 06-15-2008 05:05 AM

Quote:

Originally Posted by Boofo (Post 1549610)
Version 1.0.2 --Removed password code for security reasons.

I'm sorry but i don't understand what it does...
Could you explain this to me?

Boofo 06-15-2008 05:50 AM

It adds the password they tried to enter.


All times are GMT. The time now is 01:37 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.01221 seconds
  • Memory Usage 1,792KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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