vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Get an e-mail if someone is trying to access your Admin CP (With IP address) (https://vborg.vbsupport.ru/showthread.php?t=32707)

Hooper 11-29-2001 02:02 AM

[QUOTE]Originally posted by timmiman
i had a problem, when i use the right password, he sends the email too! what do i wrong?

scopeman 11-29-2001 02:10 AM

o.k thank for your reply, i exactly look at the code again.

sorry for my bad english, i am a german boy:)

scopeman 11-29-2001 02:18 AM

ok i found the error. i had the code placed befor not behind the

if (md5($loginpassword)!=$bbuserinfo[password]) {

thanks for your 1a support here :D

Hooper 11-29-2001 02:21 AM

[QUOTE]Originally posted by timmiman
ok i found the error. i had the code placed befor not behind the

if (md5($loginpassword)!=$bbuserinfo[password]) {

thanks for your 1a support here :D

Lesane 11-29-2001 10:22 AM

Does anyone know where 2 put this in sessions.php of 2.0.3 because the 2.0.3 sessions.php doesnt have this line:

PHP Code:

    if (md5($loginpassword)!=$bbuserinfo[password]) { 


GameCrash 11-29-2001 12:05 PM

This is because 2.0.3 didn't have password encryption... The line should be

PHP Code:

if ($loginpassword!=$bbuserinfo[password]) { 


Lesane 11-29-2001 01:05 PM

[QUOTE]Originally posted by GameCrash
This is because 2.0.3 didn't have password encryption... The line should be

PHP Code:

if ($loginpassword!=$bbuserinfo[password]) { 


VirtueTech 12-08-2001 08:27 PM

I don't think I need to install this hack if I use htaccess to protect the directory ..correct?

Because if they don't get past the HTACCESS then they won't be able to trip the code to email me.

JJR512 12-08-2001 09:49 PM

You might want to use this hack anyway. If someone does manage to get past the .htaccess password block, you'll never know just from that. But unless you use the same password for the .htaccess block as you do for your admin account, after they break past the .htaccess block, they'll trip this hack next.

Prezident 12-10-2001 02:38 PM

I was just thinking about this the other night.

I have other directories on my webserver that are protected by .htaccess, and thought it would be nice to have people who were not able to authenticate within the 3 try limit to be sent to a custom error page that would also send me an email with some information about their IP address.

I know this is not related to vBulletin, but this hack is what got me thinking about that.

LuBi 12-12-2001 05:50 AM

great lil hack! but is it only supposed to work if they type in my username? Thats the only way I got the email...

fineclicks 12-15-2001 01:09 AM

Sorry...wrong thread.

voogru 12-26-2001 02:46 AM

SWEET hack MAN :)

alaincc 12-26-2001 05:58 AM

[QUOTE]Originally posted by Kathy
So I'm assuming it looks like this?
Code:

    if (md5($loginpassword)!=$bbuserinfo[password]) {
            $ipaddress=iif(getenv("REMOTE_ADDR")!="",getenv("REMOTE_ADDR"),$HTTP_HOST);
                        $iphostname = @gethostbyaddr($ipaddress);
                        $message="Someone is trying to login using your admin account!\n\nUsername he tried to use: $loginusername\nPassword he tried to use: $loginpassword (".md5($loginpassword)." in encryption)\n\nThe IP address is: $ipaddress\nThe host is: $iphostname";
                        mail($webmasteremail,"Warning: vBulletin Admin Login Tried",$message,"From: \"$bbtitle Admin CP\" <$webmasteremail>");

                        eval("standarderror(\"".gettemplate("error_wrongpassword")."\");");

In other words...leaving all the original code...and just adding those lines in the right place?

matde 12-26-2001 08:48 AM

Thank you,

very cool hack!!!

matde

Rose 12-28-2001 02:02 PM

Great hack! I can't wait to use it. I just installed it down the the letter, but it doesn't seem to be working. I reread posts and read that the email doesn't come immediately, but it's been a day! :) Any possible reasons?

Destee 12-29-2001 02:33 AM

nice and easy ... thanks FireFly

Bedhead 12-29-2001 08:10 AM

Another job well done.

Thanks Firefly!

Duke Of Lion 12-31-2001 01:20 AM

Doesn't seem to work for me... I am running version 2.2.1
Can anyone post the script for version 2.2.1?

Would be very gratefull,

Thanxxx

over 01-03-2002 11:21 AM

sweet hack :) very useful for security purposes

Rose 01-03-2002 12:33 PM

Why are some people following everything perfectly and getting a working hack, while others follow it perfectly and get nothing?

:confused:



Duke of Lion and I are getting nothing. I assume he's not getting errors (as I'm not), either. Is it version 2.2.1?

Admin 01-03-2002 01:16 PM

v2.2.1, yes.
If you did everything like you should I can't help you, sorry. :(

Rose 01-03-2002 05:24 PM

Ah well. Thanks anyway, Firefly. There are a couple hacks like this that give me problems, but nothing major. I'm not getting errors, so it's okay. I'm just not getting. *lol* For instance, I can't seem to get the 'locationbit' hack to work, or the 'flag' hack to work. Maybe it's my board. :s *lol*

Again, thanks anyway. Great job on all the hacks you do!

WildWayz 01-07-2002 12:35 PM

Ta m8 - works well :)

Any chance of having it email any failed attempt with any username?

James

DroppedAtBirth 01-07-2002 06:00 PM

Greak Hack :D

Keith 01-15-2002 10:52 PM

Doesn't work for me either.

My server is on PHP3, not 4. That wouldn't have anything to do with it, would it?

I'm running:

VBulleting 2.2.1 (the latest)
VBPortal (beta version)


P.S. Rose is a babe :D

Shaede 01-18-2002 03:50 PM

Its very easy to implement and works perfectly. A nice, simple, and extremely effective hack! Thanks! :)

Rose 01-18-2002 06:14 PM

[QUOTE]Originally posted by Keith
Doesn't work for me either.

My server is on PHP3, not 4. That wouldn't have anything to do with it, would it?

I'm running:

VBulleting 2.2.1 (the latest)
VBPortal (beta version)


P.S. Rose is a babe :D

Shenlong 01-18-2002 06:25 PM

GREAT hack, thanks firefly again..another wonderfuly done and informitive hack. With this new hack I see everyone who is browsing around my administrator area, very useful for figuring out hackers

StarBuG 01-18-2002 06:26 PM

What about checking if the user has a boardcookie on his pc?
If so read out the username and send it in the email too! ;)

THAT Would be much better!

Hehe

Greetings

StarBuG

Ghostsuit 01-18-2002 06:42 PM

Excellent Hack works great.

Just for the record. I'm using vBulleting 2.2.1 and vBP 3.0 pr8 so works fine with that.

Shenlong 01-18-2002 06:50 PM

[QUOTE]Originally posted by StarBuG
What about checking if the user has a boardcookie on his pc?
If so read out the username and send it in the email too! ;)

THAT Would be much better!

Hehe

Greetings

StarBuG

SugarChick 01-29-2002 10:41 PM

Cough I changed the "he" to "they" lol

Username he tried to use: SugarChick
Password he tried to use: SugarChick

1) to be politically correct...and
2) unless I got a sex change I'm not a man and it looks kinda funny lol

lol imma go sit down in that corner over there now

Sweet hack ty! lol

Works great with 2.2.2 incase anyone was wondering ;)

Brian Cruz 01-30-2002 08:03 PM

Hmm, this worked fine on 2.2.1, but since I upgraded to 2.2.2 and reinstalled this hack, it stopped working!

Stoned Gecko 02-07-2002 12:48 AM

Not working for me. Any ideas?

LuBi 02-07-2002 01:07 AM

Can we get this to work on 2.2.2 anyone willing to give it a try?

Lucky 02-08-2002 09:45 AM

Works great with 2.2.2

Thanks buddy!

Birdie501 02-12-2002 01:30 PM

Hi,

it doesn't work! What can I do?

Thanks!

Jamer 02-12-2002 05:26 PM

Ban their ip address!

Birdie501 02-13-2002 07:15 AM

Hi,

i edited the session.php. If i try to log in the admin panel with wrong username and password, nothing happens! I don't get an email. Could it be that my hosters uses an other command for sending emails?

Thanks!


All times are GMT. The time now is 07:02 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.01333 seconds
  • Memory Usage 1,790KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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