Skip to content

Instantly share code, notes, and snippets.

@joswr1ght
Created September 11, 2025 23:28
Show Gist options
  • Select an option

  • Save joswr1ght/61f9b072fd724c6433ca3964ded469d5 to your computer and use it in GitHub Desktop.

Select an option

Save joswr1ght/61f9b072fd724c6433ca3964ded469d5 to your computer and use it in GitHub Desktop.
Simple PHP Script to Log Request Data (aka "Cookie Catcher")
<html>
<?php
file_put_contents("cookies.log", json_encode(array(
"GET"=>$_GET,
"POST"=>$_POST,
"headers"=>getallheaders()))."\n",
FILE_APPEND);
?>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment