ronin-rb / ronin-support

A support library for Ronin. Like activesupport, but for hacking!
https://ronin-rb.dev
GNU Lesser General Public License v3.0
27 stars 9 forks source link

Add a `Ronin::Support::Network::HTTP::CookieJar` class #456

Open postmodern opened 1 year ago

postmodern commented 1 year ago

Add a CookieJar class which can organize cookies, and query the cookies for a given URL, matching the URL's host and path to the cookie's Domain and Path constraints. This will allow us to add a cookie_jar: option to Ronin::Support::Network::HTTP#initialize and transparently track session cookies.

Aniket-508 commented 1 year ago

I would like to work on this. Can you assign it to me? @postmodern

postmodern commented 1 year ago

@Aniket-508 unfortunately, no. In the past whenever I assigned an issue to a new contributor they always disappeared and the issue never got completed.

Aniket-508 commented 1 year ago

Hey, I promise it will be completed within max 3 days. I genuinely want to contribute.

postmodern commented 1 year ago

@Aniket-508 feel free to start working on this issue, but be warned there are a lot of edge-cases with implementing a CookieJar claass, such as querying cookies by Domain (.example.com also matches sub-domains of example.com) and Path attributes. This code will need full YARD documentation and RSpec tests, which should test every edge-case of every public method. I'm not sure how much Ruby experience you have, but will probably take at least a week of work.