$remote_addr = $_SERVER['REMOTE_ADDR'];
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$query = $_GET['cmd'];
$date = date('Y-m-d H:i:s');
$log = "$date:$remote_addr:$user_agent:$query\n";
$html_log = "
$date | $remote_addr | $user_agent | $query |
\n";
$fh = fopen("/srv/www/htdocs/log/hack_attempts.log", "a+");
fwrite($fh, $log);
fclose($fh);
$fh = fopen("/srv/www/htdocs/log/hack_attempts.html", "a+");
fwrite($fh, $html_log);
fclose($fh);
?>
Fuck Off LUS3R
Fuck Off
Get a life
Your IP address, along with the date and time, have been logged, LUS3R!
Some moron running print $user_agent; ?>
at print $remote_addr; ?>
tried to run this command:
print $query; ?>
at print $date; ?>
What a loser!
You are invited to join the ranks of these other n00bs:
D4T3 |
LU$3R |
UZ3D |
F41L3D IT |
include "/srv/www/htdocs/log/hack_attempts.html"; ?>
YFI, PFY.