firetools/README.md
2017-11-07 23:09:25 +01:00

1 KiB

curlfire

Run curl with the current firefox cookies. This is useful for interacting with logged in websites.

Attribution

This code is Adapted from this Stack Exchange answer

Usage

# Fetch google with the cookies from the default profile
curlfire http://www.google.com/

# Fetch google with the cookies from the blah profile
curlfire -P blah http://www.google.com/

# Getting cookies
cookiefire > /tmp/cookies
curl -b /tmp/cookies http://www.google.com/

Installation

cd ~
git clone https://github.com/talwrii/curlfire
echo 'PATH=$PATH:~/curlfire' >> ~/.bashrc

Alternative and prior work

  • Adapted from this stack overflow answer
  • Firebug and friends allow you to copy requests as curl. This can be suitable for debugging.
  • Cookies can be exported manually from within firefox

All of these approaches can be problematic when automating tasks.