Dickroll the snoopers

LotsOfZeros

^^^ Bi-Winning ^^^
Feb 9, 2008
4,649
118
0
www.makemoniesonline.com
I decided to rename my P202 login script to something different to keep would-be hackers from knowing where it's at. Being a little bored, I got a little more creative and made a new 202-login.php:

Code:
<?php

$ipaddress = $_SERVER['REMOTE_ADDR'];

// The message
$message = "Some idiot from IP " . $ipaddress . " has just been dickrolled.";

$headers = 'From: your@email.com' . "\r\n" .
    'Reply-To: your@email.com' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

// Send
mail('your@email.com', 'P202 Spy Dickrolled', $message, $headers);

header('Location: http://www.makemoniesonline.com');
?>
Just make sure you change the header redirect in your signout.php or you'll end up dickrolling yourself:

Code:
<?php

include_once($_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php');
session_destroy();

header('location: /makemonies.php');
 


HAHAHA I like how it sends you an email so you can bask in how awesome that was.
 
I thought about doing this. Decided I did not want to paint a target on myself to hackers.
 
I cloned the actual 202 login page that just doesn't do anything besides onsubmit spawns a fake db error via an alert window announcing the error.

Figured this was a bit 'safer'
 
That's actually a great idea. Hackers might interpret that as a neglected install not worth their trouble.

the combo of yours above emailing is key- I'm going to incorporate that. At least then without looking through logs I'll immediately see someone attempting something they shouldn't be doing via an email.

:drinkup: