vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Mail Admin When fail to login to admincp V2 (https://vborg.vbsupport.ru/showthread.php?t=229231)

Jackie1 03-06-2010 10:42 AM

hello AliMadkour i have an new idea for your mod:
- webmaster want to know exactly password (attacker or hacker may be bructe force)
- added time to display time attack
sory about my english >< i have try my best

SorentoUltimate 03-06-2010 11:42 AM

Quote:

Originally Posted by Jackie1 (Post 1998367)
hello AliMadkour i have an new idea for your mod:
- webmaster want to know exactly password (attacker or hacker may be bructe force)
- added time to display time attack
sory about my english >< i have try my best

+1

SorentoUltimate

AliMadkour 03-06-2010 09:58 PM

Quote:

Originally Posted by Jackie1 (Post 1998367)
hello AliMadkour i have an new idea for your mod:
- webmaster want to know exactly password (attacker or hacker may be bructe force)
- added time to display time attack
sory about my english >< i have try my best

Quote:

Originally Posted by SorentoUltimate (Post 1998402)
+1

SorentoUltimate


thanks Jackie and SorentoUltimate !
I will try to do this ,
time to attack like send mail time ,, but i will include it with email message!:rolleyes:

Manoel J?nior 03-06-2010 11:45 PM

Fabulous man..

Thanks

sticky 03-07-2010 07:38 AM

I downloaded the new version and it says this under settings:

please type your forum encode "Charset"

What is the "charset" ?

AliMadkour 03-07-2010 09:37 AM

Quote:

Originally Posted by sticky (Post 1998934)
I downloaded the new version and it says this under settings:

please type your forum encode "Charset"

What is the "charset" ?

your forum Encode!
like : windows-1256 or utf-8 !
if you want know your forum encode .,
open any page @ your forum and view its source
find

PHP Code:

charset

after = is your forum encode :)

Videx 03-07-2010 12:07 PM

Quote:

Originally Posted by sticky (Post 1998934)
What is the "charset" ?

I'm not sure it matters, at least in English. I asked the same question a while back but never changed it and it was working fine.

Manoel J?nior 03-07-2010 02:31 PM

I'm putting the login and password wrong and not being sent error message to the email I put in the menu hack.

Manoel J?nior 03-07-2010 04:23 PM

Now I realize that it sends the message when you can not log into the forum, what I really want is when a person tries to access the AdminCP.

AliMadkour 03-07-2010 09:10 PM

Quote:

Originally Posted by Manoel J?nior (Post 1999210)
Now I realize that it sends the message when you can not log into the forum, what I really want is when a person tries to access the AdminCP.

wait version 2.5 :rolleyes:

sticky 03-08-2010 09:09 AM

I just can't get this to work, I added the charset, still doesn't. Have no clue what I'm doing wrong.

Videx 03-08-2010 12:42 PM

Quote:

Originally Posted by sticky (Post 1999702)
I just can't get this to work, I added the charset, still doesn't. Have no clue what I'm doing wrong.

Can we assume your email is working? i.e., when you send a test message from AdminCP>Maintenance>Diagnostics>Email it works? Also I guess you tried the things people mentioned earlier, like modifying the url?

archet1337 03-08-2010 01:15 PM

1 Attachment(s)
Installed and working perfectly. Thanks :)

Seeing so many people having problems with this, note that the admin usernames you specify in options are CASE SENSITIVE. I.e you want to have both admin,Admin,administrator,Administrator,yourname,Y ourname for it to work.

At least that did the trick for me.

----------------

If you want a more fancy message, you can use this:

https://vborg.vbsupport.ru/

Code:

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="180"><img src="http://www.URL TO YOUR IMAGE.com" width="180" height="160" />&nbsp;</td>
    <td width="10">&nbsp;</td>
    <td><p style="font-weight: bold; font-size: x-large; color: #36F;">Login to admin panel failed. </p>
    <p>The administrators have been sent an email with your IP address and other information.</p>
    <p>If you have any questions contact the administrator here:<br/> <a href="mailto:yourmail@address.com">yourmail@address.com</a> or <a href="private.php?do=newpm&u=1">Click Here</a> to send PM</p></td>
  </tr>
</table>


Just upload the image to your server, change the image url in the code, the mailto:url / text and specify admin userID if not 1

Videx 03-08-2010 02:32 PM

Really nice. The only problem is, aside from us when we're testing it, the only people/machines that will see that fancy message are the bastards trying to break in, and I have a feeling it will be wasted on them.

Interesting note about case sensitivity. Curious, I just checked mine and that is not the case and it works fine regardless. I have our two admin names entered in all lowercase, but the Members List shows us both as being capitalized.

archet1337 03-08-2010 03:26 PM

If I were a bot, I would appreciate a neat error message ^^
On a more serious note though, I was just playing around and figured I'd share it.

How weird that yours does not have case sensitivity. Mine refused to display the message when I tried Admin instead of admin.

AliMadkour 03-08-2010 05:26 PM

Quote:

Originally Posted by archet1337 (Post 1999810)
Installed and working perfectly. Thanks :)

Seeing so many people having problems with this, note that the admin usernames you specify in options are CASE SENSITIVE. I.e you want to have both admin,Admin,administrator,Administrator,yourname,Y ourname for it to work.

At least that did the trick for me.

----------------

If you want a more fancy message, you can use this:

https://vborg.vbsupport.ru/

Code:

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="180"><img src="http://www.URL TO YOUR IMAGE.com" width="180" height="160" />&nbsp;</td>
    <td width="10">&nbsp;</td>
    <td><p style="font-weight: bold; font-size: x-large; color: #36F;">Login to admin panel failed. </p>
    <p>The administrators have been sent an email with your IP address and other information.</p>
    <p>If you have any questions contact the administrator here:<br/> <a href="mailto:yourmail@address.com">yourmail@address.com</a> or <a href="private.php?do=newpm&u=1">Click Here</a> to send PM</p></td>
  </tr>
</table>

Just upload the image to your server, change the image url in the code, the mailto:url / text and specify admin userID if not 1

great edit!

Quote:

Originally Posted by archet1337 (Post 1999871)
If I were a bot, I would appreciate a neat error message ^^
On a more serious note though, I was just playing around and figured I'd share it.

How weird that yours does not have case sensitivity. Mine refused to display the message when I tried Admin instead of admin.


please wait the next version !

Manoel J?nior 03-09-2010 12:33 AM

Quote:

Originally Posted by archet1337 (Post 1999810)
Installed and working perfectly. Thanks :)

Seeing so many people having problems with this, note that the admin usernames you specify in options are CASE SENSITIVE. I.e you want to have both admin,Admin,administrator,Administrator,yourname,Y ourname for it to work.

At least that did the trick for me.

----------------

If you want a more fancy message, you can use this:

http://www.digi-tech.org/images/diverse/adminfail.png

Code:

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="180"><img src="http://www.URL TO YOUR IMAGE.com" width="180" height="160" />&nbsp;</td>
    <td width="10">&nbsp;</td>
    <td><p style="font-weight: bold; font-size: x-large; color: #36F;">Login to admin panel failed. </p>
    <p>The administrators have been sent an email with your IP address and other information.</p>
    <p>If you have any questions contact the administrator here:<br/> <a href="mailto:yourmail@address.com">yourmail@address.com</a> or <a href="private.php?do=newpm&u=1">Click Here</a> to send PM</p></td>
  </tr>
</table>


Just upload the image to your server, change the image url in the code, the mailto:url / text and specify admin userID if not 1

What template modify?

archet1337 03-09-2010 01:01 AM

Quote:

Originally Posted by Manoel J?nior (Post 2000145)
What template modify?

No template edits, just copy-paste the code into the box in admincp options.

Remember to change the image url in the code, the mailto:url / text and specify admin userID if not 1

Skyrider 04-01-2010 09:03 PM

Weird, I copy/pasted the code and border="0" doesn't work, It still shows the border.

gchristo 06-03-2010 03:01 PM

Working nicely, just wondering, there used to be a version for 3.0 maybe 3.5 that also showed if it was possibly a member allready of the site as well as password tried.
Is it possibly to incorporate that into this?

General of the 08-01-2010 07:38 PM

Quote:

Originally Posted by FF|Skyrider (Post 2014283)
Weird, I copy/pasted the code and border="0" doesn't work, It still shows the border.

same here

midnz 08-01-2010 10:03 PM

Works very well on 4.0.5 thanks Mr Coder :).

I did need to input all examples of text case in to the field for Administrator Usernames for it to work 100% though ie: Admin,admin,ADMIN

Dragaon 08-03-2010 12:57 AM

Quote:

Originally Posted by midnz (Post 2077861)
Works very well on 4.0.5 thanks Mr Coder :).

I did need to input all examples of text case in to the field for Administrator Usernames for it to work 100% though ie: Admin,admin,ADMIN

yep, same here. It's case sensitive but working well.

Nice mod, Thanks :)

General of the 08-03-2010 02:35 AM

Works great on vb 4.0.5

eues 08-04-2010 01:15 AM

Works great. BUT it also sends you an email if a person fails to log in on the regular forum NOT JUST the adminCP

could this be fixed please? so it only emails you about the admincp

Videx 08-04-2010 01:39 AM

Quote:

Originally Posted by eues (Post 2078860)
Works great. BUT it also sends you an email if a person fails to log in on the regular forum NOT JUST the adminCP

This thing hasn't sent me an email since I tested it when I installed it. Unless I have a lot of very careful members, it can't be behaving this way for me.

CharlieDelta 08-06-2010 02:29 PM

Quote:

Originally Posted by Videx (Post 1996024)
Where do I find out what encoding my forum uses?

If you use Firefox for your web browser and use the addon "Firebug" you can quickly determine your charset.

Installed, tested and working fine for me. 4.0.3

Videx 08-06-2010 03:59 PM

Quote:

Originally Posted by CharlieDelta (Post 2080082)
If you use Firefox for your web browser and use the addon "Firebug" you can quickly determine your charset.

That sounds like about 1/10 of an answer. Switching on Firebug in Firefox doesn't tell me anything about charset. Anyway, I guess it's not relevant since nobody has complained about it since it was introduced. I'm still curious why it's there if it does nothing.

CharlieDelta 08-06-2010 05:34 PM

Quote:

Originally Posted by Videx (Post 2080117)
That sounds like about 1/10 of an answer. Switching on Firebug in Firefox doesn't tell me anything about charset. Anyway, I guess it's not relevant since nobody has complained about it since it was introduced. I'm still curious why it's there if it does nothing.

Hey, just trying to help! Really no need for that.

Go to any page on your website, open firebug and type in charset in the top right corner (search) and it will highlight what your site uses.
I believe it is used for other languages other than English.

Videx 08-06-2010 09:55 PM

I didn't mean to offend, but you really had only given a small part of the answer. If you really want to be helpful, you need to answer in complete form. After diddling with it a few minutes I found what you were trying to say (I think):
Go to your forum page and start Firebug, right click the firebug icon and make sure "enable all panels" is selected. Go to the Scripts tab and type 'charset' in the upper right Firebug search box.

Sunray 08-22-2010 05:53 PM

Hi,

Great plugin ! Thanks a lot for it.
Installed and tested in vB 4.04, is working well.

Delphiprogrammi 08-23-2010 03:28 PM

hi,

nice one but couldn't this be made more real by the "VB_AREA" define something like

PHP Code:

if(defined('VB_AREA') AND (VB_AREA == 'admincp'))
{
    
//****



OcR Envy 08-24-2010 06:15 PM

This is extremely misleading. You aren't checking if they are logging into the AdminCP at all. You're checking to see if they failed to login anywhere on the site. Poorly executed.

Delphiprogrammi 08-25-2010 05:13 PM

Quote:

Originally Posted by OcR Envy (Post 2088983)
This is extremely misleading. You aren't checking if they are logging into the AdminCP at all. You're checking to see if they failed to login anywhere on the site. Poorly executed.

i agree through it doesn't send an email when the "normal login" fails hmm i don't get it...

Delphiprogrammi 09-21-2010 06:45 PM

hi,

problem solved for those people that get emailed when there normal login fails open the plugin and the first line

PHP Code:

if($vbulletin->options['madkour_admin_login_fail_onoff'])


above that add

PHP Code:

if(!defined('VB_AREA'))
{
      die(
"error");


underneath the first code snippet code add

PHP Code:

VB_AREA ='AdminCP'

that's it now you only get emailed when the actual admincp login fails for some reason look at /includes/adminfunctions.php if you want more information about the VB_AREA constant

0verl0rd 10-25-2010 09:17 AM

Awesome! thanks!

Ary Braga 11-02-2010 06:48 PM

Quote:

Originally Posted by Delphiprogrammi (Post 2101528)
hi,

problem solved for those people that get emailed when there normal login fails open the plugin and the first line

PHP Code:

if($vbulletin->options['madkour_admin_login_fail_onoff'])


above that add

PHP Code:

if(!defined('VB_AREA'))
{
      die(
"error");


underneath the first code snippet code add

PHP Code:

VB_AREA ='AdminCP'

that's it now you only get emailed when the actual admincp login fails for some reason look at /includes/adminfunctions.php if you want more information about the VB_AREA constant

underneath????/

PHP Code:

if($vbulletin->options['madkour_admin_login_fail_onoff'])


Could put the code here ready?

I tried and failed. excuse my ignorance.:confused:
Parse error: syntax error, unexpected '=' in /home/clangsm/public_html/vb/login.php(114) : eval()'d code on line 5

Correct me if I'm wrong
PHP Code:

if(!defined('VB_AREA'))
{
die(
"error");
}  
VB_AREA ='AdminCP';
if(
$vbulletin->options['madkour_admin_login_fail_onoff'])



Delphiprogrammi 11-02-2010 07:45 PM

hi,

no you did it wrong it must be

PHP Code:

if($vbulletin->options['madkour_admin_login_fail_onoff'])
{
      
VB_AREA =='AdminCP';
      
// the rest of the code here(already there)


the first block is needed because if the VB_AREA constant is not defined PHP will throw error messages

Ary Braga 11-05-2010 12:51 PM

wow.

Thank you very much.
U save my day.

Regards.

Delphiprogrammi 02-18-2011 12:22 PM

hi,

I just noticed the plugin author is using values directly from $_POST[] superglobal array.This is a bad programming attitude certainly without any form of sanitization this could lead to XSS security holes he should use

PHP Code:

$vbulletin->GPC['variablename'

at least this way you're sure the values being submitted are clean


All times are GMT. The time now is 01:41 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.01362 seconds
  • Memory Usage 1,861KB
  • 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
  • (3)bbcode_code_printable
  • (12)bbcode_php_printable
  • (19)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