Skip to content

Instantly share code, notes, and snippets.

@welsh
Last active August 29, 2015 13:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save welsh/9522081 to your computer and use it in GitHub Desktop.
Save welsh/9522081 to your computer and use it in GitHub Desktop.
Utility script to determine if session sticky with mod_cluster isn't being respected.
dwelsh:Desktop dwelsh$ python cookie-buster.py JSESSIONIDD 'http://showcase.richfaces.org/' 5
###########################################################################
# Starting Cookie Buster #
###########################################################################
Config:
URL: http://showcase.richfaces.org/
Cookie Name: JSESSIONIDD
Max Attempts: 5
###########################################################################
Finding initial cookie value...
Shutting Down
Cookies Found:
JSESSIONID : EGzzOM+bbXHlgur45cq+kvMt
###########################################################################
# Finished Cookie Buster #
###########################################################################
dwelsh:Desktop dwelsh$ python cookie-buster.py JSESSIONID 'http://showcase.richfaces.org/' 5
###########################################################################
# Starting Cookie Buster #
###########################################################################
Config:
URL: http://showcase.richfaces.org/
Cookie Name: JSESSIONID
Max Attempts: 5
###########################################################################
Finding initial cookie value...
Found. Storing value: 3I-fmOuwgMRFOm1bsIuujpqq
Attempt: 1 => Success Match
Attempt: 2 => Success Match
Attempt: 3 => Success Match
Attempt: 4 => Success Match
Attempt: 5 => Success Match
Success
Unable to bust cookie after 5 attempts.
###########################################################################
# Finished Cookie Buster #
###########################################################################
dwelsh:Desktop dwelsh$ python cookie-buster.py JSESSIONID 'http://showcase.richfaces.org/' 5
###########################################################################
# Starting Cookie Buster #
###########################################################################
Config:
URL: http://showcase.richfaces.org/
Cookie Name: JSESSIONID
Max Attempts: 5
###########################################################################
Finding initial cookie value...
Found. Storing value: Ha2JAlGw93hiY3ORjewENkyd
Attempt: 1 => Success Match
Attempt: 2 => Success Match
Attempt: 3 => Success Match
Attempt: 4 => Failure Mismatch!
Failure
Cookie Value Found: 3I-fmOuwgMRFOm1bsIuujpqq
###########################################################################
# Finished Cookie Buster #
###########################################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment