Injecting Custom Cookies

Pieter's Avatar

Pieter

29 Aug, 2012 11:01 AM

Is it possible to 'Inject' Custom cookies into the framework before scanning?

--Pieter

  1. Support Staff 1 Posted by Tasos Laskos on 29 Aug, 2012 03:00 PM

    Tasos Laskos's Avatar

    If you're using the CLI: --cookie-string='ArTken=cookievalue'
    If you're doing it programatically then:

    # must be before the first access to HTTP
    Options.cookie_string = ArTken=cookievalue'
    

    otherwise, you can at any, time do:

    HTTP.update_cookies( [ Cookie.new( 'http://url.here/path', 'ArToken' => 'cookievalue' ) ] )

    Or did you mean something else?

    PS. No need to create GitHub issues for questions, asking here will suffice.

  2. 2 Posted by Pieter on 29 Aug, 2012 03:16 PM

    Pieter's Avatar

    Thanks! Thats what i was looking for.

  3. Tasos Laskos closed this discussion on 29 Aug, 2012 03:44 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac