Skip to content

Instantly share code, notes, and snippets.

@scpike
Created June 28, 2012 00:04

Revisions

  1. scpike created this gist Jun 28, 2012.
    7 changes: 7 additions & 0 deletions open_cookie.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    This will decode your rails cookie

    > curl -c - localhost:3000

    <copy cookie>

    > ruby -e "require 'base64'; puts Marshal.load(Base64.decode64('<copy here>'.split('--').first))"