Jump to content
paxnWo

Cum sa iei date despre cel caruia ii trimiti un email

Recommended Posts

Prin metoda lui lucian;

.htaccess:

RewriteEngine on
RewriteBase /
RewriteRule ^(.*)\.gif$ $1.php [L]

image-02.php

<?php 
ob_start();
include("info.php");
ob_clean();
header('Content-type: image/gif');
print base64_decode('R0lGODlhAQABALMAAAAAAIAAAACAA'.
'ICAAAAAgIAAgACAgMDAwICAgP8AAA'.
'D/AP//AAAA//8A/wD//wBiZCH5BAE'.
'AAA8ALAAAAAABAAEAAAQC8EUAOw==');
?>

info.php

<?php
$xxx = "-----------------";
$ip = $_SERVER['REMOTE_ADDR'];
$date = date("F j, Y, g:i a");
$uagent = $_SERVER['HTTP_USER_AGENT'];
$referer = $_SERVER['HTTP_REFERER'];
$currenturl = $_SERVER['REQUEST_URI'];
$fopen = fopen('info.txt', 'a+');
fwrite($fopen, "\n".$xxx."\n".$ip."\n".$date."\n".$uagent."\n".$currenturl."\n".$xxx."\n");
fclose($fopen);
?>

mail.php

<? 
$to = "a";
$subject = "a";
$from = "";
$message = <<<EOF
<html>
<img src='http://host.ro/image-02.gif'>
</html>
EOF;
$headers = "From: $from\r\n";
$headers .= "Content-type: text/html\r\n";
mail($to, $subject, $message, $headers);
echo "d0ne.";
?>

Nu intrebati la ce foloseste si cum se face. Nu spuneti "nu-mi merge".

  • Downvote 3
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...