cookie_extractor/bin/cookie-extractor
2012-02-20 18:36:19 -05:00

11 lines
370 B
Ruby
Executable file

#!/usr/bin/env ruby
require File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "cookie_extractor"))
# TODO: detect firefox or chrome input file and/or locate it automatically
filename = ARGV.first
if filename
puts CookieExtractor::FirefoxCookieExtractor.new(filename).extract.join("\n")
else
puts "Usage: cookie-extractor /path/to/cookies.sqlite"
end